/* Server Owner Tycoon - the site's look (Jordan, 22 Oct 2026): the old site's light blue #E2EFFF with solid
   #c2ddff bands, navy text, no panels, the game's bold menu headings, the trailer end card's dark button,
   an Apple-style frosted header. Plain CSS, no framework. The motion is Jordan's picks (22 Oct): 1-5, 8, and from 7 the cards fanning in. */

/* Self-hosted fonts, both SIL Open Font License 1.1 (fonts/LICENSES.txt) */
@font-face { font-family: "Bowlby One"; src: url(fonts/BowlbyOne-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { --ink: #12324a; --deep: #0f2a3f; --navy: #053B5A; --text: #1d3446; --band: #c2ddff; --lift: #0b2233; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--text); font: 19px/1.65 Lato, sans-serif; background: #E2EFFF; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0 0 .45em; color: var(--navy); font-family: "Bowlby One", sans-serif; font-weight: 400; line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 36px); }
p { margin: 0 0 1.2em; }

/* (1) section titles in the game's style: all caps, a thick navy outline, a white-to-sky-blue fill.
   site.js adds .game-title and data-text; the outline is the title itself, the fill is drawn over it. */
h2.game-title { position: relative; z-index: 0; text-transform: uppercase; letter-spacing: .03em; color: var(--navy);
                /* a ring of navy copies, not -webkit-text-stroke: its miter joins spike on sharp letters */
                text-shadow: 0.110em 0.000em 0 var(--navy), 0.102em 0.042em 0 var(--navy), 0.078em 0.078em 0 var(--navy), 0.042em 0.102em 0 var(--navy), 0.000em 0.110em 0 var(--navy), -0.042em 0.102em 0 var(--navy), -0.078em 0.078em 0 var(--navy), -0.102em 0.042em 0 var(--navy), -0.110em 0.000em 0 var(--navy), -0.102em -0.042em 0 var(--navy), -0.078em -0.078em 0 var(--navy), -0.042em -0.102em 0 var(--navy), -0.000em -0.110em 0 var(--navy), 0.042em -0.102em 0 var(--navy), 0.078em -0.078em 0 var(--navy), 0.102em -0.042em 0 var(--navy), 0 .17em 0 var(--navy); }
h2.game-title::after { content: attr(data-text); position: absolute; inset: 0; text-shadow: none;
                       background: linear-gradient(#ffffff 30%, #9fd8ff 75%, #6cc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* (4) the trailer end card's dark button, chunkier, lifting on hover with a hard shadow */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .6em 1.2em; border: 3px solid #fff; border-radius: 14px;
       background: var(--ink); color: #fff; font: 700 18px Lato, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
       box-shadow: 0 5px 0 var(--lift); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: #1b4566; transform: translateY(-3px); box-shadow: 0 8px 0 var(--lift); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--lift); }
.btn img { width: auto; height: 1.35em; }
.btn-big { padding: .8em 1.6em; font-size: 21px; border-width: 4px; border-radius: 16px; box-shadow: 0 7px 0 var(--lift); }
.btn-big:hover { box-shadow: 0 11px 0 var(--lift); }
.btn-light { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-light:hover { background: #f2f8ff; }

/* like the game's server list items */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.chips li { padding: .3em .8em; border: 1px solid #9fcfae; border-radius: 10px; background: #bde1c8; color: #17663a; font-size: 16px; font-weight: 700; }
/* screenshots and loops float on a soft shadow; (4) they lift on hover; (8) a click opens the viewer */
.shot { border-radius: 14px; box-shadow: 0 12px 30px rgb(5 59 90 / .22); transition: transform .2s, box-shadow .2s; }
img.shot { cursor: zoom-in; }
.keyart:focus-visible, img.shot:focus-visible { outline: 3px solid #ffb400; outline-offset: 4px; }
.shot:hover { transform: translateY(-5px); box-shadow: 0 9px 0 rgb(5 59 90 / .35); }
/* the old site's section bands: solid #c2ddff, full width, straight edges */
.band { position: relative; z-index: 0; }
.band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--band); }

/* (3) short lines as cards or icon lists, each with a game icon */
.cards { display: grid; gap: 12px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.cards li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 2px solid var(--navy); border-radius: 14px; background: #fff;
            font-size: 17px; line-height: 1.4; box-shadow: 0 4px 0 var(--navy); transition: transform .15s, box-shadow .15s; }
.cards li:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--navy); }
.cards img { width: 40px; height: 40px; flex: none; }
.icon-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 1.2em; padding: 0; list-style: none; font-weight: 700; }
.icon-list li { display: flex; align-items: center; gap: 10px; }
.icon-list img { width: 40px; height: 40px; }
.icon-list.pixel img { width: 32px; height: 32px; image-rendering: pixelated; } /* 32 px pixel icons at 1:1 */
.plugin-row { display: grid; grid-template-columns: repeat(8, minmax(0, 48px)); gap: 8px; margin: 0 0 1.2em; } /* 16 icons: two full rows at every width */
.plugin-row img { width: 100%; height: auto; transition: transform .15s; }
.plugin-row img:hover { transform: translateY(-4px) rotate(-4deg); }

/* (7) the hero: the six pillars one at a time, big enough to read; a tab picks one, and site.js moves on by itself */
.keyart { position: relative; aspect-ratio: 16 / 9; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgb(5 59 90 / .22); }
.keyart img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.keyart img.on { opacity: 1; }
.ka-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 14px; }
.ka-tabs button { padding: .3em .6em; border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy);
                  font: 400 13px/1.2 "Bowlby One", sans-serif; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.ka-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
/* the hint that the tabs can be picked (Jordan, 23 Oct); it fades once a tab is picked, and says Tap on touch screens */
.ka-hint { display: flex; align-items: flex-end; gap: 2px; width: fit-content; margin: 6px 64px 0 auto; color: var(--navy);
           font: 400 15px/1 "Bowlby One", sans-serif; transform: rotate(-4deg); transition: opacity .4s; }
.ka-hint svg { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ka-hint.gone { opacity: 0; }
.hint-tap { display: none; }
@media (hover: none) { .hint-click { display: none; } .hint-tap { display: inline; } }

/* (2) scroll reveal: site.js adds .reveal (and .from-right on every other section), then .show in view */
.reveal { opacity: 0; transform: translateX(-48px); transition: opacity .8s ease, transform .8s ease; }
.reveal.from-right { transform: translateX(48px); }
.reveal.show { opacity: 1; transform: none; }

/* (8) the screenshot viewer */
#viewer { width: min(1320px, 96vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
#viewer::backdrop { background: rgb(4 18 31 / .86); }
#viewer figure { margin: 0; }
#viewer img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 5px solid #fff; border-radius: 12px; background: #0f2a3f; }
#viewer figcaption { margin-top: 10px; color: #fff; font-size: 17px; text-align: center; }
#viewer button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%;
                 background: var(--ink); color: #fff; font: 700 30px/1 Lato, sans-serif; cursor: pointer; box-shadow: 0 4px 0 var(--lift); }
#viewer .v-prev { left: -26px; top: 45%; }
#viewer .v-next { right: -26px; top: 45%; }
#viewer .v-close { right: -18px; top: -18px; width: 44px; height: 44px; font-size: 26px; }

/* nothing moves for visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Apple-style: a frosted, near-white shade of the page that stays on top */
header { position: sticky; top: 0; z-index: 5; background: rgb(242 248 255 / .8); border-bottom: 1px solid rgb(5 59 90 / .12);
         -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
header .logo img { width: auto; height: 54px; }
nav { display: flex; gap: 10px; margin-left: auto; font-weight: 700; }
nav a { padding: .25em .9em; border: 2px solid transparent; border-radius: 999px; color: var(--navy); text-decoration: none; transition: border-color .2s; }
nav a.on { border-color: var(--navy); } /* the section you're in (assets/nav.js) */
nav a:hover { color: #021c2b; }
header .btn { padding: .4em .95em; border-width: 2px; font-size: 16px; box-shadow: 0 3px 0 var(--lift); }

footer { padding: 56px 0 28px; background: var(--deep); color: #fff; text-align: center; }
footer h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.klaviyo-form-X9CbyC { max-width: 640px; min-height: 60px; margin: 0 auto; } /* Klaviyo draws its own form and styles here */
.klaviyo-form-X9CbyC form { background: transparent !important; } /* its box is set to the old footer's #135378 in Klaviyo's editor */
.klaviyo-form-X9CbyC * { font-family: Lato, sans-serif !important; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 18px; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; transition: transform .15s; }
.social a:hover { transform: translateY(-3px); }
.social img { width: 28px; height: 28px; object-fit: contain; }
.fine { margin: 0; color: rgb(255 255 255 / .85); font-size: 16px; }
.fine a { font-weight: 700; }

@media (max-width: 820px) {
  body { font-size: 18px; }
  nav { display: none; }
  header .wrap { justify-content: space-between; height: 64px; }
  header .logo img { height: 46px; }
  header .btn { padding: .35em .7em; font-size: 14px; }
  .btn-big { font-size: 18px; padding: .7em 1.2em; }
  #viewer .v-prev { left: 4px; } #viewer .v-next { right: 4px; } #viewer .v-close { right: 4px; }
}
