/* =============================================================================
   Last Ride Freeroam -- the site
   =============================================================================
   Built to sit next to CrazyBob's without looking out of place: the same shape
   and the same palette, taken from that site's own theme (Arthemia) rather
   than guessed at --

       page backdrop  #505050      the grey the 940px column floats on
       page block     #ececec      the column itself
       content        #ffffff      the white sheet the words sit on
       links          #3c78a7      steel blue, underlined only on hover
       navbar         #141414      dark strip, bold uppercase white
       rules          #C8DBEA      pale blue lines and borders
       body text      #666         grey, not black

   No framework, no build step, no JavaScript. Three pages and this file.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #505050;
    color: #666;
    font: 16px/1.7 Calibri, Verdana, Arial, sans-serif;
}

img { border: 0; }

a:link, a:visited { color: #3c78a7; text-decoration: none; }
a:hover, a:active { color: #FF8A00; text-decoration: underline; }

/* --- the 940 column --------------------------------------------------- */

#page {
    position: relative;     /* the trailer card hangs off its right edge */
    width: 1000px;
    margin: 0 auto;
    padding: 10px 10px 0;
    background: #ececec;
}

/* --- banner -----------------------------------------------------------
   The shape CrazyBob's uses: a wide strip with the city behind it, the mark
   on the left, and the characters standing on the right-hand end. Layered in
   CSS rather than flattened into one picture, so a piece can be swapped or
   nudged without opening an image editor.                                    */

#banner {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0c1420 url(img/banner-sky.jpg) center top / cover no-repeat;
    margin: -10px -10px 0;
    border: 0;
}

/* The city is scenery, and scenery must not compete with the words in front
   of it: a dark wash from the left holds the wordmark up. */
#banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
                rgba(10,10,14,0.86) 0%,
                rgba(10,10,14,0.58) 34%,
                rgba(10,10,14,0.12) 62%,
                rgba(10,10,14,0.00) 100%);
}

#banner .mark {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    /* Anton: condensed, heavy, made for exactly this. Impact stands in if the
       font has not arrived yet, so the words never flash as body text. */
    font-family: Anton, Impact, "Arial Narrow", sans-serif;
    font-size: 42px;
    line-height: 1.06;
    letter-spacing: 1px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.85);
}

#banner .mark .ln:nth-child(1) { color: #E01B0C; }
#banner .mark .ln:nth-child(2) { color: #FFE000; }
#banner .mark .ln:nth-child(3) { color: #FF9000; }

/* Each line steps in from the one above, which is the shape the mark has in
   game -- three initials falling on a diagonal rather than stacking. */
#banner .mark .ln { display: block; }
#banner .mark .ln:nth-child(2) { margin-left: 0.62em; }
#banner .mark .ln:nth-child(3) { margin-left: 1.24em; }

/* The initial is the same colour as its line, only larger -- which is what
   makes the three of them read as L, R, F at a glance. */
#banner .mark b { font-weight: inherit; font-size: 1.3em; }

#banner .car {
    position: absolute;
    z-index: 3;
    left: 152px;
    bottom: 86px;
    width: 148px;
    height: auto;
    filter: drop-shadow(0 8px 9px rgba(0,0,0,0.55));
}

#banner .cop {
    position: absolute;
    z-index: 4;
    right: 30px;
    bottom: 0;
    height: 220px;
    width: auto;
    /* He is lit from the front in the original and the banner behind him is
       night, so a little shadow under him settles him into it. */
    filter: drop-shadow(-6px 0 10px rgba(0,0,0,0.55));
}

/* --- navigation ------------------------------------------------------- */

#navbar {
    background: #141414;
    margin: 0 -10px;
    position: relative;
}

#navbar ul { list-style: none; }
#navbar > ul::after { content: ""; display: block; clear: both; }

#navbar li { float: left; border-right: 1px solid #333; }

#navbar a, #navbar a:visited {
    display: block;
    padding: 8px 16px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#navbar a:hover { background: #FF8A00; color: #fff; text-decoration: none; }
#navbar a.here { background: #FF8A00; color: #fff; }

/* --- the white sheet -------------------------------------------------- */

#content {
    background: #fff;
    border: 1px solid #ccc;
    border-top: 0;
    padding: 22px 26px 30px;
}

h1 {
    font-size: 26px;
    font-weight: normal;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 1px solid #C8DBEA;
    margin-bottom: 4px;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    color: #E07000;
    margin: 22px 0 6px;
}

p { margin: 10px 0; }

.lead { color: #999; font-style: italic; margin-top: 2px; }

/* --- the pale blue notice box ----------------------------------------- */

.box {
    background: #EDF3F8;
    border: 1px solid #C8DBEA;
    padding: 14px 18px;
    margin: 16px 0;
}

.box h2 { margin-top: 0; }

.box.join { background: #DAE7F1; }

code {
    font-family: Consolas, "Courier New", monospace;
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 1px 5px;
    color: #CC0000;
    font-size: 13px;
}

.ip {
    display: inline-block;
    font-family: Consolas, "Courier New", monospace;
    font-size: 20px;
    background: #141414;
    color: #fff;
    padding: 8px 16px;
    letter-spacing: 1px;
}

/* --- tables ----------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; margin: 12px 0; }

th, td {
    text-align: left;
    padding: 9px 11px;
    border-bottom: 1px solid #DAE7F1;
    vertical-align: top;
}

th {
    background: #DAE7F1;
    color: #3c78a7;
    font-weight: bold;
    font-size: 13px;
}

tr:nth-child(even) td { background: #F7FAFC; }
tr:hover td { background: #FFF1E0; }

ul.plain, ol.plain { margin: 8px 0 8px 22px; }
ul.plain li, ol.plain li { margin: 4px 0; }

/* --- VIP tiers -------------------------------------------------------- */

.tier { font-weight: bold; }
.t1 { color: #00A8A8; }   /* Royal    -- the in-game cyan, darkened for white */
.t2 { color: #2E9A38; }   /* Prime    */
.t3 { color: #C87A17; }   /* Elite    */
.t4 { color: #C9A400; }   /* Legendary*/
.t5 { color: #CC0000; }   /* Emperor  */

.price { color: #999; font-size: 13px; margin: 2px 0 6px; }

/* --- buttons ---------------------------------------------------------- */

.btn {
    display: inline-block;
    background: #FF8A00;
    color: #fff !important;
    font-weight: bold;
    padding: 3px 18px;
    border: 1px solid #D97600;
    border-radius: 4px;
    margin: 6px 8px 6px 0;
}

.btn:hover { background: #E01B0C; border-color: #B31509; color: #FFE000 !important; text-decoration: none !important; }

.btn.alt { background: #fff; color: #3c78a7 !important; border-color: #C8DBEA; }
.btn.alt:hover { background: #E01B0C; color: #FFE000 !important; border-color: #B31509; }

/* --- footer ----------------------------------------------------------- */

#footer {
    background: #2c2c2c;
    color: #ccc;
    font-size: 12px;
    padding: 6px 20px;
    border: 1px solid #333;
    border-top: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Half the file, which is the size it was exported at. */
#footer img { width: 105px; height: 44px; display: block; position: relative; z-index: 1; }

/* Centred on the bar itself, not in what is left over after the mark -- which
   is why it was sitting half a logo's width to the right of the middle. */
#footer .copy {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: #FF8A00;
    padding: 0 130px;
}

/* On a narrow bar the two would overlap, so the line goes back in the row. */
@media (max-width: 620px) {
    #footer .copy { position: static; padding: 0; text-align: left; }
}

/* The strip that closes the page, the way a printed page has a margin under
   the last line. It belongs to the page block, not to the footer. */
#page::after {
    content: "";
    display: block;
    height: 30px;
    background: #111;
    border: 1px solid #333;
    border-top: 0;
}

#footer a { color: #8ab4d8; }
#footer a:hover { color: #FF8A00; }

/* --- small screens ---------------------------------------------------- */

@media (max-width: 960px) {
    #page { width: auto; }
    #banner { height: 150px; }
    #banner .mark { font-size: 28px; left: 16px; }
    #banner .car { left: 74px; width: 128px; bottom: 58px; }
    #banner .cop { height: 140px; right: 8px; }
    #navbar li { float: none; border-right: 0; border-bottom: 1px solid #333; }
    #content { padding: 16px; }
    .ip { font-size: 16px; }
}

/* --- the Community dropdown -------------------------------------------
   The same shape CrazyBob's uses: the submenu is in the markup all along,
   hidden, and hover brings it down over the page. No JavaScript -- a menu
   that needs a script to open is a menu that breaks when the script does.  */

#navbar li.has-sub { position: relative; }

#navbar li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 170px;
    background: #141414;
    border: 1px solid #333;
    border-top: 0;
}

#navbar li.has-sub:hover ul { display: block; }

#navbar li li { float: none; border-right: 0; border-top: 1px solid #2b2b2b; }

#navbar li li a, #navbar li li a:visited {
    padding: 7px 16px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

/* --- news posts -------------------------------------------------------- */

.post {
    border-bottom: 1px solid #DAE7F1;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.post:last-child { border-bottom: 0; }

.post h2 { margin-top: 2px; margin-bottom: 4px; }

/* Under the headline, the way a submitted post reads. */
.post .meta {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

/* On a stacked menu there is nothing to hover, so the submenu is simply
   part of the list -- indented, so it still reads as belonging to Community. */
@media (max-width: 960px) {
    #navbar li ul {
        display: block;
        position: static;
        border: 0;
        min-width: 0;
    }

    #navbar li li a { padding-left: 38px; background: #0d0d0d; }
}

/* --- the admin grid ----------------------------------------------------
   Five names to a row, each one a box. Hover turns the box orange and the
   name yellow -- the two colours from the middle and the bottom of the logo,
   which is the pair that reads at a glance without needing a legend.         */

.admins {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin: 18px 0 8px;
}

.admins .adm {
    display: block;
    text-align: center;
    padding: 3px 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #E07000;
    font-size: 13px;
    /* A name can be long and a box cannot grow sideways without breaking the
       row, so a long one is cut with an ellipsis rather than pushing out. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admins .adm:hover {
    background: #E01B0C;
    border-color: #B31509;
    color: #FFE000;
    text-decoration: none;
}

@media (max-width: 960px) { .admins { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .admins { grid-template-columns: repeat(2, 1fr); } }

/* --- the pager ----------------------------------------------------------
   Numbered pages under the news, as every site of that age has. Only pages
   that exist are listed: a "next" pointing at nothing is worse than no next.  */

.pager {
    margin: 22px 0 4px;
    padding-top: 14px;
    border-top: 1px solid #DAE7F1;
}

.pager a, .pager span {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    border-radius: 4px;
    padding: 3px 9px;
    margin-right: 4px;
    background: #EDF3F8;
    border: 1px solid #C8DBEA;
    font-size: 14px;
}

.pager a:hover { background: #FF8A00; border-color: #C96D00; color: #fff; text-decoration: none; }

/* The page you are on is not a link -- there is nowhere for it to go. */
.pager span.on { background: #fff; border-color: #ccc; color: #333; font-weight: bold; }

/* --- admin cards -------------------------------------------------------
   A name in the grid jumps to its card. The picture is optional: if the file
   is not there the img hides itself and the card still reads, which is better
   than a broken-image icon standing in for somebody.                        */

.adm-card {
    border-top: 1px solid #DAE7F1;
    padding: 18px 0 14px;
    text-align: center;
    position: relative;
    /* So a jump from the grid does not put the heading under the navbar. */
    scroll-margin-top: 20px;
}

.adm-card h3 {
    color: #3c78a7;
    font-size: 19px;
    font-weight: normal;
    margin-bottom: 10px;
}

.adm-card img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.adm-card .quote {
    font-style: italic;
    color: #666;
    margin: 10px auto 2px;
    max-width: 620px;
}

.adm-card .top {
    position: absolute;
    right: 0;
    bottom: 14px;
    min-width: 90px;
    text-align: center;
    background: #EDF3F8;
    border: 1px solid #C8DBEA;
    border-radius: 4px;
    padding: 2px 12px;
    font-size: 12px;
}

.adm-card .top:hover { background: #FF8A00; border-color: #C96D00; color: #fff; text-decoration: none; }

/* --- the stats form ----------------------------------------------------- */

.statform { display: flex; gap: 8px; flex-wrap: wrap; }

.statform input {
    flex: 1;
    min-width: 200px;
    padding: 7px 12px;
    border: 1px solid #C8DBEA;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}

.statform input:focus { outline: 2px solid #FF8A00; outline-offset: -2px; }
.statform .btn { margin: 0; cursor: pointer; font: inherit; font-weight: bold; }

/* --- anything that is pressed says so under the cursor ------------------ */

.btn,
.pager a,
.admins .adm,
.adm-card .top,
#navbar a,
button { cursor: pointer; }

/* --- the donation panel -------------------------------------------------
   The shape UIF uses for this: one bordered block holding what a donation
   buys, the name it is credited to, and the tiers as buttons with the price
   written on them. Everything a person needs to decide, before the long
   description of what each tier actually gives.                             */

.donate {
    background: #F4F7FA;
    border: 2px solid #FF8A00;
    border-radius: 6px;
    padding: 18px 22px 22px;
    margin: 18px 0 26px;
}

.donate h2 { margin-top: 0; color: #CC0000; }

.donate h3 {
    text-align: center;
    color: #CC0000;
    font-size: 18px;
    margin: 18px 0 2px;
}

.donate .price { text-align: center; }

.namebox {
    display: block;
    width: 260px;
    margin: 0 auto;
    padding: 7px 12px;
    font: inherit;
    border: 1px solid #FF8A00;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}

.namebox:focus { outline: none; border-color: #CC0000; }

/* The field is wrapped so the spinner can sit inside its right-hand edge,
   where the tick and the cross land afterwards. */
/* The field centred itself with "margin: 0 auto"; once it is inside a wrapper
   the wrapper is what has to do it, or everything below shifts left as soon as
   the spinner appears. */
.namewrap {
    position: relative;
    display: block;
    width: 260px;
    margin: 0 auto;
}

.namewrap .namebox { width: 100%; margin: 0; }

.namespin {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -7px;
    border: 2px solid #E4E9EF;
    border-top-color: #FF8A00;
    border-radius: 50%;
    display: none;
    animation: namespin 0.7s linear infinite;
}

.namebox.checking + .namespin { display: block; }

@keyframes namespin { to { transform: rotate(360deg); } }

/* Checked against the server: a cross for a name nobody has registered, a tick
   for one that is there. The mark sits inside the field, on the right. */
.namebox.bad, .namebox.ok {
    background-repeat: no-repeat;
    background-position: right 9px center;
    padding-right: 30px;
}

.namebox.bad {
    border-color: #CC0000;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 2 L12 12 M12 2 L2 12' stroke='%23CC0000' stroke-width='2.4' stroke-linecap='round'/></svg>");
}

.namebox.ok {
    border-color: #2A8B31;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M2 7.5 L5.5 11 L12 3' fill='none' stroke='%232A8B31' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.tier-btn {
    display: block;
    min-width: 150px;
    text-align: center;
    padding: 9px 14px;
    border: 2px solid #999;
    border-radius: 6px;
    font-weight: bold;
}

.tier-btn span { display: block; font-weight: normal; font-size: 13px; }

.tier-btn:hover { text-decoration: none; }

/* The exact colours the tiers have in game. */
.tb2 { background: #3BBD44; border-color: #2A8B31; color: #fff !important;
       text-shadow: 0 1px 2px rgba(0,0,0,0.45); }

.tb3 { background: #DB881A; border-color: #A56312; color: #fff !important;
       text-shadow: 0 1px 2px rgba(0,0,0,0.45); }

.tb4 { background: #E0B400; border-color: #A98800; color: #fff !important;
       text-shadow: 0 1px 0 rgba(255,255,255,0.5); }

.tb5 { background: #FF0000; border-color: #B50000; color: #fff !important;
       text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.tier-btn:hover { filter: brightness(1.08); }

@media (max-width: 520px) { .tier-btn { min-width: 44%; } }

/* --- the length chooser -------------------------------------------------
   Opened by pressing a tier: its lengths, what each costs, and the total once
   one is picked. It is a price list that adds up, not a checkout -- there is
   nothing behind it yet and it does not pretend there is.                    */

.lenbox {
    margin: 16px auto 0;
    max-width: 520px;
    background: #fff;
    border: 1px solid #C8DBEA;
    border-radius: 6px;
    overflow: hidden;
}

.lenhead {
    padding: 8px 14px;
    font-weight: bold;
    text-align: center;
}

.lenrows { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }

.len {
    flex: 1 1 46%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F4F7FA;
    border: 1px solid #C8DBEA;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}

.len:hover { background: #FFF1E0; border-color: #FF8A00; }

/* The one chosen, so a second glance at the page still says which. */
.len.on { background: #FF8A00; border-color: #D97600; color: #fff; }

.len .d { }
.len .p { font-weight: bold; }

#total {
    border-top: 1px solid #DAE7F1;
    padding: 10px 14px;
    text-align: center;
    margin: 0;
}

/* The odd one out keeps the width of a single button and centres itself under
   the pair above, rather than stretching across the row. */
.lenrows .len:last-child:nth-child(odd) {
    flex: 0 0 46%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 520px) { .len { flex: 1 1 100%; } }

/* --- the icon on the Home tab ------------------------------------------- */

#navbar .ico {
    width: 13px;
    height: 13px;
    fill: currentColor;
    vertical-align: -2px;
    margin-right: 6px;
}

/* --- the table on Home --------------------------------------------------
   The row headings name the parts of the server, so they are the server's red
   rather than the grey the other headings use.                               */

#content table th[scope="row"], .whats th {
    color: #CC0000;
    background: #fff;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
    border-right: 1px solid #DAE7F1;
    white-space: nowrap;
}

.whats td, .whats th { border-bottom: 1px solid #C8DBEA; }
.whats tr:hover td, .whats tr:hover th { background: #FFF6EC; }

/* --- the VIP comparison -------------------------------------------------
   Five columns of tiers with a row per thing you get. The point of it is the
   row: two tiers side by side on one line, rather than two lists to hold in
   your head at once.

   Light, plain, and the page's own. It is deliberately not built to resemble
   any other server's -- a table that could be mistaken for somebody else's is
   a table worth changing.                                                    */

.cmp {
    margin: 0 0 26px;
    background: #fff;
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    overflow: hidden;
}

.cmp th, .cmp td { text-align: center; border-bottom: 1px solid #E4EDF4; }

.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* The rows. Bigger than they were: this is the part of the page somebody
   actually reads before deciding. */
.cmp td {
    padding: 13px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2C3742;
    background: #fff;
}

.cmp tr:nth-child(even) td { background: #FAFCFE; }
.cmp tr:hover td, .cmp tr:hover th { background: #FFF6EC; }

/* The tier names, a clear step above the rows. */
.cmp th {
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    padding: 15px 10px;
    background: #F4F8FB;
    border-bottom: 1px solid #D6E2EC;
}

/* The left column: what the thing is. */
.cmp th.feat, .cmp td.feat {
    text-align: left;
    width: 34%;
    background: #fff;
    border-right: 1px solid #E4EDF4;
    color: #2C3742;
    font-weight: 600;
    font-size: 16px;
    white-space: normal;
}

.cmp th.feat {
    color: #CC0000;
    font-size: 22px;
    padding: 15px 14px;
    background: #fff;
}

/* A band along the top of each column, in the tier's own colour, and the
   name in the same. Full strength: five muted shades read as one idea in
   five tints, which is the opposite of telling them apart.

   Legendary's word is a shade deeper than its band -- bright gold on white
   is a colour nobody can read, so the band carries the brightness. */
/* An outline around the letters. This is what lets the colour run at full
   strength on a light page -- and it settles the gold, which without it has
   to be dulled to stay readable. Four offset shadows rather than
   -webkit-text-stroke: the stroke property eats into the letterform and is
   not everywhere, these draw the outline and leave the weight alone. */
.cmp th.t1, .cmp th.t2, .cmp th.t3, .cmp th.t4, .cmp th.t5 {
    text-shadow:
        -1.5px -1.5px 0 #1A1A1A,
         1.5px -1.5px 0 #1A1A1A,
        -1.5px  1.5px 0 #1A1A1A,
         1.5px  1.5px 0 #1A1A1A;
}

.cmp th.t1 { color: #00E0E0; box-shadow: inset 0 4px 0 #00D4D4; }
.cmp th.t2 { color: #2BE048; box-shadow: inset 0 4px 0 #1ED138; }
.cmp th.t3 { color: #FF9000; box-shadow: inset 0 4px 0 #FF8A00; }
.cmp th.t4 { color: #FFD200; box-shadow: inset 0 4px 0 #FFC800; }
.cmp th.t5 { color: #FF2020; box-shadow: inset 0 4px 0 #FF1A1A; }

/* Yes and no, both meant. The cross was so quiet it read as a blank. */
.cmp .y { color: #18B52C; font-weight: bold; font-size: 19px; }
.cmp .n { color: #EE0000; font-weight: bold; font-size: 18px; }

/* The command itself, beside the plain-English name of what it does. Quieter
   than the row it sits in -- you read the sentence first and the command only
   when you have decided you want it. */
.cmd {
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 600;
    color: #B85C00;
    background: #FFF4E6;
    border: 1px solid #F3DCC0;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* A line under a table that qualifies it. */
.note {
    margin: -14px 0 26px;
    font-size: 15px;
    line-height: 1.55;
    color: #5A6673;
}

@media (max-width: 760px) {
    .cmp td, .cmp th.feat, .cmp td.feat { font-size: 14px; padding: 10px 8px; }
    .cmp th { font-size: 17px; padding: 12px 6px; }
    .cmp th.feat { font-size: 17px; }
    .cmp th.feat, .cmp td.feat { width: 40%; }
}

/* --- the Discord page, in two columns ----------------------------------- */

.dsplit { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.dleft { flex: 1 1 300px; }
.dright { flex: 0 0 340px; max-width: 100%; }
.dright iframe { border-radius: 6px; display: block; }

@media (max-width: 700px) { .dright { flex: 1 1 100%; } }

/* --- the SA-MP mark on the banner --------------------------------------- */

/* On the bar, in the black at the end of the links. */
#navbar .samp {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 30px;
    opacity: 0.9;
}

@media (max-width: 960px) { #navbar .samp { display: none; } }

/* The name over a card, in the server's red. */
.adm-card h3 { color: #CC0000; }

/* --- paying ------------------------------------------------------------- */

.payform { margin-top: 10px; }

.paybtn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: 0;
    padding: 4px;
    font: inherit;
    cursor: pointer;
}

.paybtn img { display: block; }
.paybtn:hover img { filter: brightness(1.06); }

.paybtn .amt {
    font-weight: bold;
    font-size: 19px;
    color: #333;
}

.warn {
    margin-top: 8px;
    color: #CC0000;
    font-size: 13px;
}

/* A refusal, with the cross in front of it. Red text alone reads as a note;
   people skim notes. The cross is what stops them. */
.warn .no {
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    margin-right: 3px;
}

/* What the purchase will do to a tier he already has -- days added, or a tier
   replaced. It sits above the PayPal buttons, so it has to be read as part of
   the price and not as small print under it. */
.price.standing {
    margin: 0 0 10px;
    padding: 9px 11px;
    background: #FBF4E6;
    border-left: 3px solid #DB881A;
    border-radius: 3px;
    color: #5A4423;
    font-size: 13px;
    line-height: 1.45;
}

/* --- the lengths, in the colour of the tier they belong to --------------
   The generic orange was fine until four tiers used it: pressing Prime and
   getting an orange highlight says nothing about which tier you are in. Each
   box now answers in its own colour, the same one on its heading.            */

.lenbox.tb2 .len:hover { background: #E8F7E9; border-color: #3BBD44; }
.lenbox.tb2 .len.on    { background: #3BBD44; border-color: #2A8B31; color: #fff; }

.lenbox.tb3 .len:hover { background: #FBEEDB; border-color: #DB881A; }
.lenbox.tb3 .len.on    { background: #DB881A; border-color: #A56312; color: #fff; }

.lenbox.tb4 .len:hover { background: #FDF6D6; border-color: #E5C200; }
.lenbox.tb4 .len.on    { background: #E0B400; border-color: #A98800; color: #fff; }

.lenbox.tb5 .len:hover { background: #FBE3E3; border-color: #FF0000; }
.lenbox.tb5 .len.on    { background: #FF0000; border-color: #B50000; color: #fff; }

/* --- the Become Admin strip on the admin page --------------------------- */

.become {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #FFF6EC;
    border: 1px solid #FFB866;
    border-radius: 6px;
    padding: 9px 14px;
    margin: 14px 0 4px;
}

.become .btn { margin: 0; }

/* The box the pay button is drawn into on the Unban and Admin pages. */
.paybox { text-align: center; margin-top: 14px; min-height: 30px; }

/* --- the name, then Continue -------------------------------------------- */

.nameform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nameform .namebox { margin: 0; }
.nameform .btn { margin: 0; padding: 3px 18px; }

/* --- the PayPal SDK buttons --------------------------------------------- */

/* PayPal draws its own buttons in frames; this only sets how wide the stack is
   allowed to get, so the card button sits under the PayPal one at a sensible
   width instead of stretching across the whole panel. */
.ppbuttons { max-width: 320px; margin: 0 auto; }

.paid {
    background: #E8F7E9;
    border: 1px solid #3BBD44;
    border-radius: 6px;
    padding: 10px 14px;
    color: #1F5E24;
    text-align: center;
}

/* The live player count, in the gap between the links and the logo.
   Icon, label and number are all the same white: Void asked for one colour,
   and a number that stands out from its own label reads as a warning.

   The bar is built out of floats, not flex: the links are an ordinary block
   that clears them, so anything after it starts on a new line and margin-left
   auto has nothing to push against. That is what put the count underneath the
   links. It is lifted out of the flow the same way the logo is -- pinned to
   the right, clear of it by the logo's own width. */
#navbar #live {
    position: absolute;
    right: 150px;             /* the logo is 72px wide at right:16px */
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: #fff;
}

#navbar #live b { color: #fff; font-weight: 700; }

/* Sized from the text, so it lines up whatever the bar's font size is. */
#navbar #live svg {
    width: 1.15em;
    height: 1.15em;
    fill: currentColor;
    flex: none;
}

/* Nothing to say, no space taken. */
#navbar #live:empty { display: none; }

/* The count is lifted out of the flow, so the links know nothing about it and
   would happily run underneath it. This is the corner they are not allowed
   into: the links are floats, and a float that no longer fits drops to the
   next line instead of overlapping. So the bar wraps rather than printing
   "Download SA-MP" through "Players: 100".

   The reserve is the whole corner -- where the count ends (150px) plus how
   wide it can ever get. Three digits is the widest it can be, because the
   server has a hundred slots, and the count grows leftward from a fixed right
   edge, so the logo is never what it reaches. */
@media (min-width: 961px) {
    #navbar > ul { padding-right: 290px; }
}

/* Below this the links reach the end of the bar and there is no gap left to
   sit in. Pinned, it would be printed over "Download SA-MP"; so it drops into
   the flow underneath instead, which is ugly but readable, and only happens on
   a window nobody browses the site in. */
@media (max-width: 960px) {
    #navbar #live {
        position: static;
        transform: none;
        display: flex;
        padding: 9px 16px;
        border-top: 1px solid #333;
        font-size: 13px;
        gap: 5px;
    }
}

/* --- "Coming 1-5 October" -------------------------------------------------
   Stands where the server address will go. Pink because it is the one thing
   on the page that is a promise rather than a fact, and it should not be
   mistaken for either the address or the heading above it.                  */

.soon {
    margin: 14px 0 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #E6007E;
}

@media (max-width: 760px) { .soon { font-size: 17px; } }

/* --- the trailer card ------------------------------------------------------
   A still of the video and a button, in the empty margin to the right of the
   page. Nothing from YouTube loads until it is clicked -- the still is
   YouTube's own image and the player only arrives if somebody asks for it.

   The margin only exists on a wide screen: the page is 1000px, so a 1280px
   laptop has 140px a side, which is not a video. Below 1460px the card drops
   into the page instead, under Connect, where there is room for it.         */

#trailer {
    margin: 0 0 22px;
}

#trailer .tube {
    position: relative;
    background: #000;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

#trailer .tube iframe { width: 100%; height: 100%; border: 0; display: block; }

/* The still, and the triangle over it. A button rather than a link: it does
   something on the page instead of going somewhere. */
#trailer .tubeplay {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

#trailer .tubeplay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.82;
    transition: opacity 0.15s;
}

#trailer .tubeplay:hover img { opacity: 1; }

#trailer .tri {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin: -15px 0 0 -11px;
    border-left: 26px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    pointer-events: none;
}

#trailer .tubebtn {
    display: block;
    margin-top: 8px;
    padding: 9px 10px;
    background: #F08A24;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}

#trailer .tubebtn:hover { background: #d9771a; color: #fff; }

/* Wide enough for a margin: out of the page and into it. 1460 is the 1000px
   page plus 230 a side, which is the narrowest this reads at. */
@media (min-width: 1460px) {
    #trailer {
        position: absolute;
        right: -222px;
        top: 250px;
        width: 206px;
        margin: 0;
    }
}

/* --- retired ----------------------------------------------------------- */
.retired-bar { background: #222; color: #FFE000; padding: 8px 12px; margin: 0 0 14px;
  font-size: 14px; border-left: 4px solid #E01B0C; }
.retired-bar a { color: #fff; text-decoration: underline; margin-left: 6px; }
.quote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid #E01B0C;
  background: #fff; font-size: 20px; font-style: italic; color: #222; }
.quote span { display: block; font-size: 14px; font-style: normal; color: #777; margin-top: 6px; }
#farewell .btn { margin: 0 8px 8px 0; }
