/* Every page's frame (Pages/Shared/_Layout.cshtml), over site.css (which has what goes inside the panel): the banner, the menu, the log in, the panel, the boxes
   and the footer, drawn here to match the 2012 pictures (their colors were sampled from them); the only artwork kept is the µt (img/logo-ut.svg, traced from the logo
   art), a few game sprites (img/battle) and the pictures inside the Account and Quick Links boxes. The font is Jost, a free Futura like the artwork's (wwwroot/fonts).
   Below 900px the boxes go under the panel; below 700px the menu and the log in go under the banner. */
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format('woff2'); }   /* (served from here: wwwroot/fonts, SIL Open Font License) */
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format('woff2'); }
:root {
  --orange: #cf581e; --orange-2: #c54c0e; --blue: #2e9aec; --blue-2: #1a8fd9; --green: #3fae2a;
  --ink: #fff; --dim: #b0b0b0; --tab: #c2ccd2;   /* (the tab names were #8a8a8a on the glass, too faint to read: now well clear of it) */
  --gloss: linear-gradient(180deg, #4e4e4e 0, #3a3a3a 42%, #1e1e1e 50%, #262626 62%, #3d3d3d 100%);
  --panel: linear-gradient(180deg, #2f2f2f 0, #262626 140px, #232323 100%);
  --box: linear-gradient(180deg, #404040 0, #2b2b2b 31%, #151515 55%, #1d1d1d 68%, #333 100%);
  --head: 'Jost', 'Century Gothic', 'Futura', Verdana, sans-serif;
}
body.nl { font-family: var(--head); font-size: 15px;   /* one family for everything: Jost (the headings' Futura look) for the text too */ background: radial-gradient(ellipse at 50% 0, #2a2f33 0, #1e1e1e 60%) #1e1e1e no-repeat; min-height: 100vh; }
#Page { max-width: 1600px; margin: 0 auto; padding: 10px 16px 24px; box-sizing: border-box; overflow-x: clip; }   /* (clip: the panels sliding in from the side (?back=1) must not make a horizontal scrollbar while they move) */
.nl-skip { position: absolute; left: -9999px; } .nl-skip:focus { left: 12px; top: 8px; z-index: 9; background: #000; padding: 6px 10px; }
.nl a:focus-visible, .nl button:focus-visible, .nl input:focus-visible { outline: 2px solid #ffd84a; outline-offset: 2px; }
/* the public test copy of the game (UTANKS_TEST_SITE; the owner, 2026-12-06: "a TEST giant in the banner so people know"): an amber caution strip above the header on every page, in the page's flow, so it
   never lies over the menu or the log in; the game pages' thin bar has a small badge instead (.gb-test). Nothing of it is in the page when the setting is off. */
.test-site { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 24px; margin: 0 0 10px; padding: 6px 16px; border-radius: 12px; color: #111; text-align: center;
  background: repeating-linear-gradient(-45deg, #ffc400 0 24px, #f0ae00 24px 48px); box-shadow: inset 0 0 0 2px #000, 0 3px 8px rgba(0, 0, 0, .6); }
.test-site b { font: 500 64px/1 var(--head); letter-spacing: 14px; margin-right: -14px; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.test-site span { font: 500 19px/1.25 var(--head); }
@media (max-width: 700px) { .test-site { margin-bottom: 8px; padding: 4px 10px; } .test-site b { font-size: 44px; letter-spacing: 10px; margin-right: -10px; } .test-site span { font-size: 15px; } }
.gb-test { flex: none; padding: 4px 10px 4px 13px; border-radius: 6px; background: #ffc400; color: #111; font: 500 19px/1 var(--head); letter-spacing: 3px; box-shadow: inset 0 0 0 2px #000; }

/* ---- the banner: drawn here, no picture. A field with blue edges (banner.js's little battle in it, under a dim veil and the old art's glow), the µt drawn over it
   (img/logo-ut.svg, traced from Logos Raw.png), the tagline as text, the log in on glass on the right, and the glossy menu bar under it. Any width, phones too. ---- */
.nl-head { position: relative; margin: 0 auto; height: 246px; }
.nl-banner { position: absolute; inset: 0 0 auto; height: 178px; }   /* (no stack of its own: the µ runs down over the menu bar, as it did in the art) */
.nl-field { position: absolute; left: 14px; right: 6px; top: 20px; height: 152px; border-radius: 22px; overflow: hidden; background: #2b2f31;
  box-shadow: -6px 0 0 0 #2aa8e8, 6px 0 0 0 #2aa8e8, -6px 0 10px 1px rgba(42, 168, 232, .45), 6px 0 10px 1px rgba(42, 168, 232, .45), 0 6px 14px rgba(0, 0, 0, .6); }
.nl-battle { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nl-field::after { content: ''; position: absolute; inset: 0; pointer-events: none;   /* the veil: dims the battle to the art's faded battlefield, with its teal glow along the top and a light beam from the logo */
  background: linear-gradient(104deg, transparent 18%, rgba(150, 215, 225, .12) 26%, rgba(150, 215, 225, .2) 31%, rgba(150, 215, 225, .1) 38%, transparent 50%),
              linear-gradient(180deg, rgba(80, 120, 126, .55) 0, rgba(96, 140, 142, .55) 14%, rgba(50, 66, 70, .45) 30%, rgba(34, 36, 38, .45) 45%, rgba(34, 36, 38, .4) 75%, rgba(52, 52, 52, .45) 100%); }
.nl-logo { position: absolute; left: 20px; top: -4px; width: 380px; height: 176px; z-index: 2; text-decoration: none; }   /* (the link's area stops above the menu bar: it used to lie over "home" and "tournaments" and take their clicks) */
.nl-logo img { position: absolute; left: 0; top: 0; height: 250px; width: auto; pointer-events: none; }   /* (the µ's tail runs down over the bar: it is drawn there, but a click there is the bar's) */
.nl-tag { position: absolute; left: 62px; top: 138px; font: 400 36px/1 var(--head); letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 0 6px rgba(0, 0, 0, .7);
  background: linear-gradient(180deg, #6fd0f5 0, #3fa7cf 60%, #2b86b0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nl-tag i { font-style: normal; background: linear-gradient(180deg, #ffd21a 0, #f59a08 55%, #e56d00 100%); -webkit-background-clip: text; background-clip: text; }
.nl-nav { position: absolute; left: 14px; right: 6px; top: 181px; height: 37px; display: flex; align-items: stretch; padding-left: 44px; border-radius: 8px; background: var(--gloss);
  box-shadow: -6px 0 0 0 #2a9ee0, 6px 0 0 0 #2a9ee0, 0 3px 8px rgba(0, 0, 0, .6); z-index: 1; }
.nl-nav a { display: flex; align-items: center; white-space: nowrap; padding: 0 23px; font: 500 20px/1 var(--head); color: #5cb8e6; text-decoration: none; text-shadow: 0 1px 2px #000; border-right: 1px dotted #6a6a6a; }
.nl-nav a:hover, .nl-nav a.on { color: #fff; background: linear-gradient(180deg, rgba(92, 184, 230, .16), rgba(92, 184, 230, 0) 50%, rgba(92, 184, 230, .1)); }
.nl-nav a.nl-play { color: #9be37f; }
.nl-nav a.nl-play:hover, .nl-nav a.nl-play.on { color: #fff; background: linear-gradient(180deg, rgba(110, 220, 80, .22), rgba(110, 220, 80, 0) 50%, rgba(110, 220, 80, .14)); }
.nl-account { position: absolute; right: 22px; top: 89px; transform: translateY(-50%);   /* (centred up and down in the banner, which is 178px tall: a taller box (more links, the µCredits line, the provider marks) grows evenly both ways and stays clear of the menu bar at 181px; the owner, 2026-12-01) */
  width: auto; min-width: 150px; max-width: 230px; padding: 9px 11px; border-radius: 12px; z-index: 1; font-size: 12px; text-align: right; color: #d8ecf8; text-shadow: 0 1px 2px #000;
  background: rgba(20, 24, 26, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.nl-login input { display: block; width: 100%; height: 22px; margin: 0 0 5px; padding: 0 9px; box-sizing: border-box; border: 1px solid #5a5a5a; border-radius: 11px;
  background: linear-gradient(180deg, #2a2a2a, #3c3c3c); color: #fff; font: 12px Verdana, sans-serif; text-align: right; }
.nl-login input::placeholder { color: #8a8a8a; }
.nl-login-row { display: flex; justify-content: space-between; gap: 4px; margin-top: 8px; white-space: nowrap; }
.pill { display: inline-block; margin: 0; padding: 2px 8px; border: 0; border-radius: 10px; font: 11px/1.3 var(--head); color: #fff; text-decoration: none; cursor: pointer; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.pill.orange { background: linear-gradient(180deg, #f07a2a, #b94a0c); } .pill.blue { background: linear-gradient(180deg, #3ab0ff, #1470c8); } .pill.green { background: linear-gradient(180deg, #5fd23c, #2c8a17); }
.pill:hover { filter: brightness(1.15); color: #fff; }
.nl-login-sso { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 6px; font: 11px/1 var(--head); color: #8a8a8a; } .nl-login-sso span { margin-right: 3px; } .nl-login-sso form { margin: 0; display: flex; }
.nl-sso { width: 22px; height: 22px; padding: 0; margin: 0; border: 1px solid #5a5a5a; border-radius: 50%; background: linear-gradient(180deg, #4e4e4e, #262626); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.nl-sso:hover { filter: brightness(1.2); border-color: #8fd0ff; } .nl-sso.sso-discord { color: #8c9eff; }
.nl-who { margin-bottom: 6px; } .nl-who b { color: #fff; }
/* The links stand in two tidy columns, each on one line, with the µCredits balance on a row of its own above them and any notice (an invitation, new shield points, a medal to assign) across both
   columns (the owner, 2026-12-01: "that top bar is getting mighty crowded and hard to read"). */
.nl-links { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 4px 12px; }
.nl-links a, .nl-links button.link { color: #8fd0ff; text-decoration: none; font-size: 12px; margin: 0; padding: 0; white-space: nowrap; }
.nl-links form.inline { margin: 0; display: block; }
.nl-links .nl-bal { grid-column: 1 / -1; order: -2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-bottom: 3px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #d8ecf8; }
.nl-links .nl-bal b { color: #fff; font-size: 13px; }
.nl-links a.warn { grid-column: 1 / -1; order: -1; white-space: normal; }
.nl-links .nl-pair { white-space: nowrap; } .nl-links .nl-count { margin-left: 5px; } .nl-links a:hover, .nl-links button.link:hover { color: #fff; }
@media (max-width: 1200px) { .nl-nav a { padding: 0 15px; font-size: 18px; } }   /* (eight items fit on one line from 960 up when signed in) */
@media (max-width: 960px) { .nl-nav a { padding: 0 14px; font-size: 17px; } }

/* ---- the columns ---- */
.nl #Columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 18px; margin: 10px 0 0 7px; align-items: start; }
.nl #Main { display: block; min-width: 0; }
.nl #Side { width: auto; margin: 0; }
.nl #Columns.staff-wide { grid-template-columns: minmax(0, 1fr); }   /* (a staff page: the whole width, no public boxes beside it) */

/* the panel and the boxes: a dark card on its colored edge, with its name in a faint glass tab over the top right, as the pictures drew them */
.nl-panel, .nl-box { position: relative; border-radius: 20px 24px 24px 20px; box-shadow: -7px 0 0 0 var(--edge), 0 6px 14px rgba(0, 0, 0, .55); }
.nl-panel { --edge: var(--orange); background: var(--panel); margin-top: 26px; padding: 18px 30px 34px; min-height: 420px; }
.nl-box { --edge: var(--blue); background: var(--box); margin-top: 26px; padding: 14px 14px 16px; }
.nl-box.orange { --edge: var(--orange-2); }
.nl-box.green { --edge: var(--green); }
.nl-invite .invite-link { width: 100%; box-sizing: border-box; margin-bottom: 6px; font-size: 13px; }
.nl-invite .invite-line { margin: 6px 0 0; font-size: 13px; line-height: 1.5; } .nl-invite .tank-awards { margin-right: 6px; }
.nl-tab { position: absolute; right: 36px; bottom: 100%; margin: 0; padding: 3px 18px 2px; min-width: 90px; text-align: right; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); color: var(--tab); font: 500 14px/18px var(--head); letter-spacing: .02em; }
.nl-tab a { color: inherit; text-decoration: none; } .nl-tab a:hover { color: #fff; }   /* (the My Tanks box's tab is a way to the page) */
.nl .PanelBody { width: auto; overflow-x: auto; }
.nl .PanelBody h3, .nl .news h3 { font-family: var(--head); font-weight: 500; font-size: 18px; }
.nl .PanelBody p { line-height: 1.6; }
.nl .btn, .nl button:not(.link):not(.pill):not(.force-btn):not(.hk-clear):not(.hk-key):not(.danger):not(.nl-big):not(.nl-sso) { font-family: var(--head); font-size: 15px; border-radius: 8px; padding: 6px 18px; background: var(--gloss); border: 1px solid #5a7f99; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.nl .btn:hover, .nl button:not(.link):not(.pill):not(.force-btn):not(.hk-clear):not(.hk-key):not(.danger):not(.nl-big):not(.nl-sso):hover { border-color: #8fd0ff; filter: brightness(1.12); }
.nl button.danger { font-family: var(--head); font-size: 15px; border-radius: 8px; padding: 6px 18px; background: linear-gradient(180deg, #5a2a2a, #3a1616); border: 1px solid #ff7a7a; color: #ffd0d0; } .nl button.danger:hover { border-color: #ffb0b0; background: linear-gradient(180deg, #7a3a3a, #4a1a1a); }   /* (Delete my account: red, not like every other button) */

/* Account: the four battlefields from the old picture, and the two buttons as real ones */
.nl-shots { aspect-ratio: 299 / 238; margin: -4px 0 8px; background: url(/img/bg-register.png) 50% 0 / 100% auto no-repeat; }   /* (the old picture down to its painted buttons, which are real ones under it) */
.nl-pair { display: flex; justify-content: space-between; gap: 10px; }
.nl-pair span { flex: 1; display: flex; flex-direction: column; align-items: center; color: #cfd8de; font: 13px var(--head); gap: 3px; }
.nl-discord { margin: 10px 0 2px; text-align: center; font: 13px var(--head); } .nl-discord a { color: #8c9eff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } .nl-discord a:hover { color: #b8c4ff; text-decoration: underline; }
.nl-big { display: block; width: 100%; padding: 5px 0; border-radius: 18px; text-align: center; color: #fff; text-decoration: none; font: 500 17px/1.2 var(--head); text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 4px rgba(0, 0, 0, .5); }
.nl-big.blue { background: linear-gradient(180deg, #5cc6ff 0, #2a9be6 48%, #1678c6 52%, #2b8fd8 100%); }
.nl-big.green { background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); }
.nl-big:hover { filter: brightness(1.12); color: #fff; }
/* Watch a recording (Replay.cshtml): the site's panel, narrow and centred over the game stage; the client's own lobby stays out of sight */
.nl-watch { width: min(600px, 100%); margin: 40px auto 0; min-height: 0; padding-bottom: 26px; }
.nl-watch-lead { font-size: 16px; line-height: 1.5; margin: 6px 0 0; }
.nl-watch-actions { display: grid; gap: 14px; margin: 22px 0 16px; }
.nl .nl-watch button.nl-big { padding: 11px 0; border: 0; border-radius: 18px; box-shadow: none; font: 500 19px/1.2 var(--head); cursor: pointer; }   /* (the site's plain-button rule would grey them) */
.nl .nl-watch button.nl-big.green { background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); }
.nl .nl-watch button.nl-big.blue { background: linear-gradient(180deg, #5cc6ff 0, #2a9be6 48%, #1678c6 52%, #2b8fd8 100%); }
.nl-watch-status { min-height: 1.4em; margin: 0 0 8px; color: #ffd27a; font-weight: 500; }
.nl-watch-status:empty { display: none; }
body.site-watch #lobby { display: none !important; }
.nl-profile { padding: 4px 6px; line-height: 1.6; } .nl-profile p { margin: 0 0 10px; }
/* My Tanks: a row a tank, its best rank under its name and a play button at the end */
.nl-mytanks { list-style: none; padding: 0; margin: 0 0 8px; }
.nl-mytanks li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; margin: 0; padding: 7px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nl-mytanks li:last-child { border-bottom: 0; }
.nl-mytanks .name { font: 500 16px/1.2 var(--head); color: #fff; text-decoration: none; } .nl-mytanks .name:hover { color: #8fd0ff; }
.nl-mytanks .dim { grid-row: 2; font-size: 12px; }
.nl-mytanks form { display: contents; }   /* (the play button posts the tank; the button itself sits in the grid) */
.nl-mytanks .mt-awards { grid-row: 3; grid-column: 1 / span 2; margin-top: 4px; min-width: 0; } .nl-mytanks .mt-awards .tank-awards { margin-left: 0; gap: 3px; }   /* (the tank's medals, small, on a row of their own under the rank: pictures only, one line that scrolls sideways when the box is too narrow (site.css .tank-awards; the owner, 2026-12-05); a tank not played yet has none) */
.nl-mytanks .pill { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; padding: 4px 14px; border-radius: 12px; }
/* the box's tanks can be dragged into any order (site.js adds is-sortable and the move buttons; the owner, 2026-11-24): the buttons show on hover and on focus, and always on a screen with no hover (touch) */
.nl-mytanks.is-sortable li { grid-template-columns: 1fr auto auto; cursor: grab; } .nl-mytanks.is-sortable li.mt-dragging { opacity: .45; } .nl-mytanks.is-sortable .mt-awards { grid-column: 1 / span 3; }
.nl-mytanks .mt-move { grid-row: 1 / span 2; grid-column: 3; display: flex; flex-direction: column; gap: 2px; opacity: 0; }
.nl-mytanks li:hover .mt-move, .nl-mytanks li:focus-within .mt-move { opacity: 1; }
.nl-mytanks .mt-move button { font-size: 10px; line-height: 1; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; } .nl-mytanks .mt-move button:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .nl-mytanks .mt-move { opacity: 1; } .nl-mytanks .mt-move button { padding: 6px 10px; } }
.mt-order-note { margin: 0 0 6px; font-size: 12px; }
.nl-small-links { font-size: 12px; margin: 4px 0 0 !important; }

/* Quick Links: glossy bars, each with its color and the old picture's little scene at its right end */
.nl-quick { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 2px; }
.nl-quick a { --c: #ff8c1a; position: relative; display: flex; align-items: center; height: 31px; padding: 0 0 0 12px; border-radius: 10px; overflow: hidden; background: var(--gloss);
  box-shadow: -6px 0 0 0 var(--c), 0 2px 4px rgba(0, 0, 0, .5); margin-left: 6px; color: var(--c); text-decoration: none; font: 500 18px/1 var(--head); text-shadow: 0 1px 2px #000; }
.nl-quick a::after { content: ''; position: absolute; right: 0; top: 0; width: 96px; height: 31px; background: url(/img/bg-quicklinks.png) no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px); mask-image: linear-gradient(90deg, transparent, #000 34px); opacity: .9; }
.nl-quick a:hover { filter: brightness(1.18); }
.nl-quick .q-manual { --c: #ff8c1a; } .nl-quick .q-manual::after { background-position: -186px -2px; }   /* (the sprite's rows are 31px at y 2, 43, 86 and 130; their scenes end at x 282) */
.nl-quick .q-top, .nl-quick .q-weekly { --c: #ffd22a; } .nl-quick .q-top::after, .nl-quick .q-weekly::after { background-position: -186px -43px; }
.nl-quick .q-maps { --c: #86e33c; } .nl-quick .q-maps::after { background-position: -186px -86px; }
.nl-quick .q-discord { --c: #8c9eff; } .nl-quick .q-discord::after { -webkit-mask-image: none; mask-image: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238c9eff' d='M20.3 4.4A19.8 19.8 0 0 0 15.4 3l-.2.4a18 18 0 0 1 4.3 2.1 14.5 14.5 0 0 0-15 0A18 18 0 0 1 8.8 3.4L8.6 3a19.7 19.7 0 0 0-4.9 1.4C.6 9 .1 13.5.3 17.9a19.9 19.9 0 0 0 6 3l1.3-2a12.8 12.8 0 0 1-2-1l.5-.4a14.2 14.2 0 0 0 11.8 0l.5.4-2 1 1.3 2a19.8 19.8 0 0 0 6-3c.4-5.1-.7-9.6-3.4-13.5zM8.5 15.2c-1.2 0-2.1-1.1-2.1-2.4s1-2.4 2.1-2.4c1.2 0 2.2 1.1 2.1 2.4 0 1.3-.9 2.4-2.1 2.4zm7 0c-1.2 0-2.1-1.1-2.1-2.4s.9-2.4 2.1-2.4 2.2 1.1 2.1 2.4c0 1.3-.9 2.4-2.1 2.4z'/%3E%3C/svg%3E") no-repeat right 12px center / 24px 24px; }
.nl-quick .q-app { --c: #5cb8e6; } .nl-quick .q-app::after { display: none; }
.nl-quick .q-editor { --c: #c27cff; } .nl-quick .q-editor::after { background: url(/img/quick-tiles.png) -64px 0 / 256px 608px; }

/* Tournaments: the last one's top five in medal colors (the names in their force's), then the countdown to the next */
.nl-last { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin: 0 4px 4px; }
.nl-tourney ol { list-style: none; margin: 0; padding: 4px 10px; border-radius: 14px; background: linear-gradient(180deg, #3a3a3a, #2c2c2c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 3px 8px rgba(0, 0, 0, .5); }
.nl-tourney li { display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; border-bottom: 1px solid rgba(0, 0, 0, .35); box-shadow: 0 1px 0 rgba(255, 255, 255, .04); font: 500 16px var(--head); text-shadow: 0 1px 2px #000; overflow: hidden; white-space: nowrap; }
.nl-tourney li:last-child { border: 0; box-shadow: none; }
.nl-tourney .place { width: 32px; flex: none; font-size: 13px; color: #b0b0b0; } .nl-tourney .p1 .place { color: #ffc21a; } .nl-tourney .p2 .place { color: #c8c8f0; } .nl-tourney .p3 .place { color: #ff8c1a; }
.nl-tourney .p1 { font-size: 18px; }
.nl-next { margin-top: 12px; text-align: center; color: #cfd8de; font: 13px var(--head); } .nl-next .tnext { color: #fff; font-size: 15px; }
.nl-more { display: block; text-align: center; margin-top: 6px; font-size: 13px; }

/* Coming soon: the promised features, a line each */
.nl-soon { list-style: none; margin: 0; padding: 2px 4px; }
.nl-soon li { margin: 0; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); line-height: 1.35; }
.nl-soon li:last-child { border-bottom: 0; }
.nl-soon b { display: block; font: 500 15px/1.3 var(--head); color: #ffb050; }
.nl-soon span { display: block; color: var(--dim); font-size: 12px; }

/* Game News: the old box's lines, scrolling when there are many */
.rss { max-height: 300px; padding: 4px 6px; overflow-y: auto; }
.rss a { display: block; color: #fff; text-decoration: none; font-size: 13px; margin-bottom: 10px; text-shadow: 0 1px 2px #000; } .rss a:hover { color: #ffb050; }
.rss .hd { display: block; color: #ffb050; font-size: 12px; }

/* ---- the footer: the old bar's links as text ---- */
.nl-foot { margin: 26px 7px 0; padding: 10px 22px; border-radius: 18px; background: var(--box); box-shadow: -7px 0 0 0 var(--blue-2), 7px 0 0 0 var(--blue-2), 0 6px 14px rgba(0, 0, 0, .55);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.nl-foot nav { display: flex; flex-wrap: wrap; gap: 4px 34px; }
.nl-foot nav a { color: #fff; text-decoration: none; font: 15px var(--head); } .nl-foot nav a:hover { color: #8fd0ff; } .nl-foot .mu { color: #2e9aec; }
.nl-copy { color: #b0b0b0; font: 13px var(--head); } .nl-copy a { color: #9a9a9a; } .nl-copy a:hover { color: #fff; }

/* ---- smaller screens ---- */
@media (max-width: 900px) {
  .nl #Columns { grid-template-columns: minmax(0, 1fr); }
  .nl #Side { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 18px; }
}
/* on a phone the boxes under the panel are the account and the tournaments only: Quick Links (the map tools need a computer) and Game News (the home page has it) stay on wider screens */
@media (max-width: 700px) { .nl-wide-only { display: none; } }
@media (max-width: 700px) {
  .nl #Page { padding: 6px 10px 18px; }
  /* the banner at half size, the battle still in it; the menu and the log in under it */
  .nl-head { height: auto; display: flex; flex-direction: column; }
  .nl-banner { position: relative; height: 112px; }
  .nl-field { left: 8px; right: 4px; top: 10px; height: 92px; border-radius: 16px; }
  .nl-logo { left: 10px; top: -2px; width: 220px; height: 100px; }
  .nl-logo img { height: 120px; }
  .nl-tag { left: 30px; top: 70px; font-size: 19px; }
  .nl-nav, .nl-account { position: static; width: auto; height: auto; }
  .nl-nav { flex-wrap: wrap; justify-content: space-between; padding: 0; margin: 4px 0 0; border-radius: 12px; box-shadow: -5px 0 0 0 var(--blue-2), 5px 0 0 0 var(--blue-2); }
  .nl-nav a { padding: 11px 8px; font-size: 15px; border-right: 0; }
  .nl-account { transform: none; margin-top: 8px; padding: 0; font-size: 13px; text-align: left; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nl-login { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nl-login input { height: 34px; margin: 0; font-size: 15px; border-radius: 10px; text-align: left; padding: 0 10px; }
  .nl-login-row { grid-column: 1 / -1; margin: 0; gap: 8px; }
  .nl-login-sso { justify-content: center; font-size: 14px; } .nl-sso { width: 34px; height: 34px; font-size: 19px; }
  .nl-login-row .pill { flex: 1; font-size: 15px; padding: 7px 0; border-radius: 10px; text-align: center; }
  .nl-links { display: block; } .nl-links .nl-bal { display: inline; border: 0; padding: 0; margin: 0; } .nl-links form.inline { display: inline; }
  .nl-links a, .nl-links button.link { font-size: 14px; margin: 0 12px 0 0; }
  .nl #Columns { margin-left: 6px; }
  .nl-panel { padding: 16px 16px 26px; min-height: 0; }
  .nl-foot { margin-left: 6px; margin-right: 6px; }
  .nl-foot nav { gap: 6px 18px; }
}

.nl-tutorial .tp-loading { color: var(--dim); margin: 6px 0; }
.nl-tutorial .tp-meta { color: var(--dim); font-size: 13px; }
.nl-tutorial .tp-title { margin: 2px 0 6px; font: 500 21px/1.15 var(--head); color: var(--ink); }
.nl-tutorial .tp-say { font-size: 14px; line-height: 1.45; color: #e8e8e8; max-width: none; }
.nl-tutorial .tp-facts { border-left-color: var(--blue); background: rgba(46, 154, 236, .1); color: #cfe6f8; }
.nl-tutorial .tp-more > summary { color: #9fd0ff; cursor: pointer; font-weight: 600; margin: 4px 0; }
.nl-tutorial .tp-goals li.done { color: #9be37f; }
.nl-tutorial .tp-hint { color: #ffd27a; }
.nl-tutorial .tp-after { background: rgba(63, 174, 42, .18); color: #b9f0a6; }
.nl-tutorial .tp-dots i.done { background: var(--green); }
.nl-tutorial .tp-dots i.now { outline-color: #ffd27a; }
/* (the site's plain-button rule would grey these) */
.nl .nl-tutorial button.tp-btn, .nl .nl-tutorial a.tp-btn { border: 0; border-radius: 16px; padding: 6px 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .5); font: 500 14px/1.2 var(--head); color: #fff; background: linear-gradient(180deg, #5a5a5a, #3c3c3c 48%, #2c2c2c 52%, #3c3c3c); }
.nl .nl-tutorial button.tp-btn:hover:not(:disabled), .nl .nl-tutorial a.tp-btn:hover { filter: brightness(1.2); }
.nl .nl-tutorial button.tp-btn:disabled { opacity: .4; box-shadow: none; }
.nl .nl-tutorial button.tp-next.ready, .nl .nl-tutorial a.tp-play { background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); }
.nl .nl-tutorial button.tp-btn:focus-visible, .nl .nl-tutorial a.tp-btn:focus-visible { outline: 2px solid #ffd84a; outline-offset: 2px; }
@media (max-width: 1200px) { .nl-nav a { padding: 0 12px; } }
@media (max-width: 1100px) { .nl-nav a { padding: 0 9px; font-size: 16px; white-space: nowrap; } }   /* (ten items with "how to play", "most wanted" and "my tanks" wrapped to two lines at 1040) */
@media (max-width: 960px) { .nl-nav a { padding: 0 9px; font-size: 16px; } }

/* the bar under the header for somebody playing as a guest (Play now): the account is kept 14 days unless it is claimed */
.guest-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 6px 16px; background: #3a2c10; border-bottom: 1px solid #7a5a1c; color: #ffd98a; font-size: 14px; text-align: center; }
.guest-bar .btn { margin: 0; padding: 3px 14px; }

/* ---- the game pages (Game and Tutorial): a thin bar in place of the banner, the menu and the account box, so the game fits the screen with its buttons. The game client
   (uTanksWebClient/src/fit.ts) scales the 1024 x 576 screen down to the room under the bar when the window is smaller than it. ---- */
body.site-compact #Page { max-width: none; padding: 0 8px; }
.nl-gamebar { display: flex; align-items: center; gap: 6px 14px; height: 40px; margin: 0 -8px; padding: 0 16px; box-sizing: border-box; background: var(--gloss); border-bottom: 2px solid var(--blue-2); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); font: 500 15px/1 var(--head); white-space: nowrap; overflow: hidden; }
.nl-gamebar a { color: #8fd0ff; text-decoration: none; } .nl-gamebar a:hover { color: #fff; }
.gb-logo { display: flex; align-items: center; height: 100%; } .gb-logo img { height: 30px; width: auto; display: block; }
.gb-page { color: #fff; font-size: 17px; }
.gb-grow { flex: 1; }
.gb-who { color: #d8ecf8; font-size: 14px; }
.nl-gamebar a.gb-go { padding: 4px 14px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.nl-gamebar a.gb-go:hover { filter: brightness(1.12); }
.nl-gamebar a.gb-manual { padding: 4px 14px; border-radius: 12px; color: #fff; background: linear-gradient(180deg, #3ab0ff, #1470c8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }   /* (the Tutorial's link to the manual: a blue button beside the green Play for real) */
.nl-gamebar a.gb-manual:hover { filter: brightness(1.12); color: #fff; }
@media (max-width: 600px) { .gb-who, .site-tutorial .gb-page, .nl-gamebar a:not(.gb-go):not(.gb-logo):not(.gb-manual) { display: none; } }

/* the Tutorial page (Tutorial.cshtml): the game on the left, the lesson panel (filled in by the game client, src/tutorial/panel.ts) in a strip on its right. The panel is as
   high as the room under the bar: the lesson text scrolls inside its own box, the goals and the Back / Skip / Next buttons stay in view under it. On a narrow screen the
   panel goes under the game. */
#TutorialLayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 10px; align-items: start; margin: 4px 0 0; }
#TutorialMain { min-width: 0; }
#TutorialPanel.nl-tutorial { --edge: var(--green); display: flex; flex-direction: column; width: auto; max-width: none; height: calc(100vh - 50px); min-height: 0; margin: 0 6px 0 0; padding: 12px 14px 12px 16px; font-size: 14px; }
.nl-tutorial .nl-tab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* (the bar names the page) */
.nl .nl-tutorial .tp-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: visible; }
.nl-tutorial .tp-scroll { flex: 1 1 auto; min-height: 60px; overflow-y: auto; padding-right: 6px; }
.nl-tutorial .tp-pin { flex: none; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nl-tutorial .tp-pin .tp-goals { margin: 4px 0; font-size: 14px; }
.nl-tutorial .tp-pin .tp-locked, .nl-tutorial .tp-pin .tp-hint, .nl-tutorial .tp-pin .tp-after { margin: 4px 0; font-size: 13px; }
.nl-tutorial .tp-buttons { gap: 6px; margin-top: 8px; }
.nl-tutorial .tp-facts { font-size: 13px; }
/* the goals, the hint and the buttons of the lesson, under the game (panel.ts puts them there on a wide screen; on a narrow one they stay in the panel) */
#TutorialDock { box-sizing: border-box; max-width: 1024px; margin: 6px 0 0; padding: 8px 12px 10px; border-radius: 6px; background: rgba(0, 0, 0, .35); border-top: 2px solid var(--green); }
/* a fixed height, set by panel.ts / fit.ts from the longest lesson (and capped so the game keeps 640 pixels at a 1040 x 700 window): the game and the Back / Skip / Next row stay where they are from one lesson to the next */
#TutorialDock { overflow: hidden; }
#TutorialDock .tp-pin { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
#TutorialDock.tp-cols .tp-goals { grid-template-columns: 1fr 1fr; column-gap: 18px; align-items: start; grid-auto-flow: row; }
#TutorialDock[hidden] { display: none; }
#TutorialDock .tp-goals { margin: 2px 0 4px; font-size: 14px; }
#TutorialDock .tp-locked, #TutorialDock .tp-hint, #TutorialDock .tp-after { margin: 4px 0; font-size: 13px; }
#TutorialDock .tp-buttons { gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.nl-tutorial .tp-skipped { font-size: 13px; color: #ffd27a; } .nl-tutorial .tp-skipped a { color: #9fd0ff; }
@media (max-width: 900px) {
  #TutorialLayout { grid-template-columns: minmax(0, 1fr); }
  #TutorialPanel.nl-tutorial { height: auto; max-height: 70vh; margin: 8px 6px 12px; }
}

/* the menu stays on one line on a narrow screen and scrolls sideways instead (UI critique 27) */
@media (max-width: 900px) { .nl-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; } .nl-nav a { white-space: nowrap; flex: 0 0 auto; } }

/* ---- the phone header (below 900px): the brand, a Play button and a menu button; the menu drops down full width with every link as a large tap target (Pages/Shared/_Layout) ---- */
.nl-mbar { display: none; }
.nl-menu { display: contents; }   /* (on a wide screen the wrapper is no box: the nav and the account sit where they always did) */
@media (max-width: 900px) {
  .nl-head { position: relative; z-index: 20; height: auto; display: block; }
  .nl-banner { display: none; }
  .nl-mbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 10px; border-radius: 12px; background: var(--gloss); box-shadow: -5px 0 0 0 var(--blue-2), 5px 0 0 0 var(--blue-2), 0 3px 8px rgba(0, 0, 0, .6); }
  .nl-mlogo { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; min-height: 44px; color: #fff; text-decoration: none; font: 500 22px/1 var(--head); text-shadow: 0 1px 2px #000; }
  .nl-mlogo img { height: 34px; width: auto; flex: none; }
  .nl-mlogo span { overflow: hidden; text-overflow: ellipsis; }
  .nl-mplay { flex: none; display: flex; align-items: center; justify-content: center; min-width: 84px; min-height: 44px; padding: 0 18px; box-sizing: border-box; border-radius: 22px; color: #fff; text-decoration: none; font: 500 19px/1 var(--head); text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    background: linear-gradient(180deg, #7ee35a 0, #43b52a 48%, #2a8c18 52%, #3aa424 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, .5); }
  .nl-mplay:hover { filter: brightness(1.12); color: #fff; }
  .nl .nl-menu-btn { flex: none; display: none; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 22px; border: 1px solid #5a7f99; background: var(--gloss); color: #8fd0ff; font: 500 16px/1 var(--head); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
  .nl .nl-menu-btn:hover { border-color: #8fd0ff; filter: brightness(1.12); }
  .nl-js .nl-menu-btn { display: inline-flex; }
  .nl-burger { display: inline-flex; flex-direction: column; gap: 4px; } .nl-burger i { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s, opacity .15s; }
  .nl-menu-btn[aria-expanded="true"] .nl-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); } .nl-menu-btn[aria-expanded="true"] .nl-burger i:nth-child(2) { opacity: 0; } .nl-menu-btn[aria-expanded="true"] .nl-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nl-menu { display: block; }
  .nl-js .nl-menu { display: none; position: absolute; left: 0; right: 0; top: 62px; max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 12px; border-radius: 12px; background: #1b1d1f; border: 1px solid #3c4a53; box-shadow: 0 10px 24px rgba(0, 0, 0, .7); }
  .nl-js .nl-menu.open { display: block; }
  .nl-menu .nl-nav { display: flex; flex-direction: column; flex-wrap: nowrap; overflow: visible; margin: 8px 0 0; padding: 0; border-radius: 10px; box-shadow: none; }
  .nl-menu .nl-nav { background: #272a2d; position: static; height: auto; width: auto; }
  .nl-menu .nl-account { position: static; top: auto; right: auto; transform: none; width: auto; text-align: left; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nl-js .nl-menu .nl-nav { margin-top: 0; }
  .nl-menu .nl-nav a { flex: none; min-height: 48px; padding: 0 14px; font-size: 19px; border-right: 0; border-bottom: 1px dotted #4a4a4a; white-space: nowrap; }
  .nl-menu .nl-nav a:last-child { border-bottom: 0; }
  .nl-menu .nl-account { margin-top: 10px; padding: 10px 12px; font-size: 15px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 10px; }
  .nl-menu .nl-who { margin-bottom: 4px; font-size: 16px; }
  .nl-menu .nl-links { display: flex; flex-direction: column; }
  .nl-menu .nl-links .nl-bal { display: flex; justify-content: flex-start; order: 0; border-top: 0; border-left: 0; border-right: 0; padding: 0; margin: 0; } .nl-menu .nl-links a.warn { order: 0; } .nl-menu .nl-links .nl-pair { display: contents; }
  .nl-menu .nl-links a, .nl-menu .nl-links button.link { display: flex; align-items: center; min-height: 48px; margin: 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: none; border-top: 0; border-left: 0; border-right: 0; font-family: var(--head); text-align: left; width: 100%; cursor: pointer; }
  .nl-menu .nl-links form { margin: 0; } .nl-menu .nl-links form button.link { border-bottom: 0; }
  .nl-menu .nl-login { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nl-menu .nl-login input { height: 44px; margin: 0; padding: 0 10px; font-size: 15px; border-radius: 10px; text-align: left; }
  .nl-menu .nl-login-row { grid-column: 1 / -1; margin: 0; gap: 8px; } .nl-menu .nl-login-row .pill { flex: 1; font-size: 15px; border-radius: 10px; }
  .nl-menu .nl-login-sso { justify-content: center; font-size: 14px; }
  .nl-menu .nl-login-row .pill { min-height: 44px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .nl-menu .nl-sso { width: 44px; height: 44px; }
  .nl-menu .nl-login-sso { margin-top: 10px; }
}

/* ---- Top Charts: a dropdown in the nav (open on hover or keyboard focus, no script); in the phone menu its choices are always shown, indented under it ---- */
.nl-dd { position: relative; display: flex; }
.nl-dd-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 190px; flex-direction: column; border-radius: 0 0 8px 8px; background: #1b1d1f; border: 1px solid #3c4a53; box-shadow: 0 8px 18px rgba(0, 0, 0, .7); z-index: 10; }
.nl-dd:hover .nl-dd-menu, .nl-dd:focus-within .nl-dd-menu { display: flex; }
.nl-nav .nl-dd-menu a { padding: 12px 18px; font-size: 17px; border-right: 0; border-bottom: 1px dotted #4a4a4a; white-space: nowrap; }
.nl-nav .nl-dd-menu a:last-child { border-bottom: 0; }
.nl-dd-right .nl-dd-menu { left: auto; right: 0; }   /* (Play is the last item: its menu opens leftwards so the nav does not clip it) */
@media (max-width: 900px) {
  .nl-dd { display: block; }
  .nl-dd-menu, .nl-dd:hover .nl-dd-menu { display: flex; position: static; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, .18); }
  .nl-menu .nl-nav .nl-dd-menu a { min-height: 44px; padding-left: 32px; font-size: 17px; border-bottom: 1px dotted #4a4a4a; }
  .nl-menu .nl-nav .nl-dd-menu a:last-child { border-bottom: 1px dotted #4a4a4a; }
  .nl-nav .nl-dd { flex: 0 0 auto; }
}

/* ---- the main menu's More (site.js, "the main menu's More"; the owner, 2026-12-04: "we should detect this overflow"): on a wide screen the links that do not fit the bar move,
   from the right, into a More drop-down at its end, beside Play, which always stays in the bar. It opens on a click or tap only (not on hover), and closes on Escape, a click
   outside or focus leaving it. Without script there is no More: the bar scrolls sideways instead of hiding Play past its end. Below 900px the phone menu lists them all. ---- */
@media (min-width: 901px) {
  .nl-nav { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .nl-nav.nl-fit { overflow: visible; }   /* (the script is fitting the bar: the hover menus may hang below it again) */
}
.nl-nav .nl-dd.nl-more[hidden] { display: none; }
.nl-nav .nl-keep, .nl-nav .nl-more { flex: none; }
.nl-nav .nl-more-btn { display: flex; align-items: center; height: 100%; margin: 0; padding: 0 23px; border: 0; border-right: 1px dotted #6a6a6a; border-radius: 0; background: none; font: 500 20px/1 var(--head); color: #5cb8e6; text-shadow: 0 1px 2px #000; white-space: nowrap; cursor: pointer; }
.nl-nav .nl-more-btn::after { content: ''; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }   /* (a small down arrow: it opens a list) */
.nl-nav .nl-more-btn:hover, .nl-nav .nl-more-btn.on, .nl-nav .nl-more-btn[aria-expanded="true"] { color: #fff; background: linear-gradient(180deg, rgba(92, 184, 230, .16), rgba(92, 184, 230, 0) 50%, rgba(92, 184, 230, .1)); }
.nl-nav .nl-dd.nl-more .nl-more-menu { display: none; }
.nl-nav .nl-dd.nl-more.open .nl-more-menu { display: flex; }
.nl-nav .nl-more-menu .nl-dd { display: block; }   /* (Top Charts moved into More: its own choices shown under it, indented, as in the phone menu) */
.nl-nav .nl-more-menu .nl-dd .nl-dd-menu { display: flex; position: static; min-width: 0; border: 0; border-radius: 0; box-shadow: none; background: rgba(0, 0, 0, .18); }
.nl-nav .nl-more-menu .nl-dd .nl-dd-menu a { padding-left: 32px; font-size: 16px; }
.nl-nav .nl-more-menu .nl-dd:not(:last-child) .nl-dd-menu a:last-child { border-bottom: 1px dotted #4a4a4a; }
@media (max-width: 1200px) { .nl-nav .nl-more-btn { padding: 0 12px; font-size: 18px; } }
@media (max-width: 1100px) { .nl-nav .nl-more-btn { padding: 0 9px; font-size: 16px; } }
