/* Smackneck Studios — main stylesheet
   Fixed 960px layout, dark chrome, Arial. Collapses to a single column under 980px. */

* { box-sizing: border-box; }

/* Accent colours. Smackneck Studios is red; Smackneck Mobile (html.div-mobile) swaps them for blue. */
:root {
  --accent: #c41f1f; --accent-dark: #8e1313; --accent-light: #d93030; --accent-hot: #ff6b6b; --accent-code: #ff8f8f;
  --accent-grad: linear-gradient(#c62020, #8c0f0f);
}
html.div-mobile {
  --accent: #1f7fd1; --accent-dark: #135a9c; --accent-light: #3b95e3; --accent-hot: #6bbcff; --accent-code: #8fcaff;
  --accent-grad: linear-gradient(#2a8be0, #0f4f8c);
}

html { background: #000; }

body {
  margin: 0;
  font: 12px/18px Arial, Helvetica, sans-serif;
  color: #c7c7c7;
  /* dark bands either side of the page column */
  background-color: #050505;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 6px),
    linear-gradient(90deg,
      #030303 0,
      #121212 calc(50% - 640px),
      #1e1e1e calc(50% - 500px),
      #2a2a2a calc(50% - 482px),
      #000 calc(50% - 480px),
      #000 calc(50% + 480px),
      #2a2a2a calc(50% + 482px),
      #1e1e1e calc(50% + 500px),
      #121212 calc(50% + 640px),
      #030303 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; max-width: 100%; }

#wrap { width: 960px; margin: 0 auto; background: #000; min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- header ---------- */

#header { position: relative; height: 96px; background: #000; }
#logo { position: absolute; left: 14px; top: 8px; display: flex; align-items: center; gap: 10px; }
#logo img { height: 80px; width: auto; }
#logo .wordmark { font: bold 15px/16px Arial, sans-serif; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
#logo .wordmark span { display: block; font-size: 10px; color: #8a8a8a; letter-spacing: 3px; }
#logo:hover { text-decoration: none; }

#search {
  position: absolute; right: 12px; top: 0;
  background: linear-gradient(#262626, #141414);
  border: 1px solid #000; border-top: 0;
  border-radius: 0 0 5px 5px;
  padding: 5px 8px 6px;
  box-shadow: inset 0 -1px 0 #333;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #ccc;
}
#search input {
  width: 160px; height: 18px; padding: 1px 5px;
  background: #3a3a3a; border: 1px solid #111; color: #fff;
  font: 11px Arial, sans-serif;
  box-shadow: inset 0 1px 2px #000;
}
#search button {
  width: 18px; height: 18px; padding: 0; cursor: pointer;
  border: 1px solid #000; background: linear-gradient(#5a5a5a, #2b2b2b);
  border-radius: 2px; color: #ddd; font-size: 10px; line-height: 16px;
}

#nav { position: absolute; right: 8px; bottom: 6px; margin: 0; padding: 0; list-style: none; display: flex; }
#nav > li { position: relative; }
#nav > li > a { display: block; padding: 8px 14px; font-size: 13px; color: #b5b5b5; }
#nav > li > a:hover, #nav > li.active > a { color: #fff; text-decoration: none; }
#nav > li.active > a { font-weight: bold; }
#nav ul {
  display: none; position: absolute; right: 0; top: 100%; z-index: 50;
  min-width: 170px; margin: 0; padding: 4px 0; list-style: none;
  background: #111; border: 1px solid #2c2c2c; box-shadow: 0 3px 8px rgba(0,0,0,.8);
}
#nav li:hover > ul, #nav li:focus-within > ul { display: block; }
#nav ul a { display: block; padding: 5px 12px; color: #c7c7c7; }
#nav ul a:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
#nav-toggle { display: none; }

/* ---------- hero slider ---------- */

#slider { position: relative; height: 340px; background: #000; overflow: hidden; border-bottom: 6px solid #111; }
#slider .slide {
  position: absolute; inset: 0;
  background: #000 center / cover no-repeat;
  opacity: 0; transition: opacity .7s; pointer-events: none;
}
#slider .slide.on { opacity: 1; pointer-events: auto; }
#slider .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); }
#slider .caption {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 340px;
  /* see-through version of the sidebar widget header gradient */
  background: linear-gradient(rgba(46,46,46,.85), rgba(27,27,27,.82) 55%, rgba(20,20,20,.8));
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  padding: 8px 10px 10px;
}
#slider .caption h3 { margin: 0 0 4px; font-size: 20px; line-height: 24px; color: #ddd; }
#slider .caption p { margin: 0 0 8px; color: #fff; font-weight: bold; font-size: 12px; line-height: 16px; }
#slider .pager {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  background: rgba(40,40,40,.85); border: 1px solid #000; padding: 6px 7px; display: flex; gap: 3px;
}
#slider .pager button {
  width: 17px; height: 17px; padding: 0; cursor: pointer;
  font: bold 10px/17px Arial, sans-serif; color: #fff;
  border: 0; background: #444;
}
#slider .pager button.on { background: var(--accent); }
#slider .pager button:hover { background: #666; }
#slider .pager button.on:hover { background: var(--accent-light); }

/* "Discover more" link with the little boxed arrow */
.more { display: inline-flex; align-items: center; gap: 6px; float: right; color: #fff; font-size: 12px; text-decoration: underline; }
.more::after {
  content: "\25B6"; display: inline-block; width: 13px; height: 13px;
  background: #fff; color: #000; font-size: 7px; line-height: 13px; text-align: center; text-decoration: none;
}
.more:hover { color: var(--accent-hot); }
.clear::after { content: ""; display: table; clear: both; }

/* ---------- page columns ---------- */

#body { display: flex; gap: 12px; padding: 10px 6px 30px 10px; background: #1a1a1a; flex: 1; }
#main { width: 678px; flex: none; }
#side { width: 260px; flex: none; }
#body.full #main { width: 100%; }

#main h1 { margin: 0 0 15px; font-size: 36px; line-height: 40px; color: #c7c7c7; letter-spacing: -.5px; }
#main h2.sub { margin: 0 0 15px; font-size: 18px; line-height: 20px; font-style: italic; color: #fff; }
#main h2 { margin: 25px 0 12px; font-size: 30px; line-height: 34px; color: #c7c7c7; }
#main h3 { margin: 18px 0 8px; font-size: 16px; color: #fff; }
#main h4 { margin: 14px 0 6px; font-size: 13px; color: #fff; }
#main p { margin: 0 0 15px; }
#main ul.txt, #main ol.txt { margin: 0 0 15px; padding-left: 22px; }
#main ul.txt li { list-style: square; }
#main ul.txt li::marker { color: var(--accent); }
#main a:not(.more):not(.btn) { text-decoration: underline; }
#main hr { border: 0; border-top: 1px solid #000; border-bottom: 1px solid #2c2c2c; margin: 20px 0; }
#main code { background: #000; color: var(--accent-code); padding: 0 4px; font: 11px Consolas, monospace; }
#main figure { margin: 0 0 15px; }
#main figure img { display: block; margin: 0 auto; }
#main figcaption { text-align: center; font-size: 11px; color: #8d8d8d; margin-top: 4px; }
#main blockquote {
  margin: 0 0 15px; padding: 10px 14px; background: #111; border-left: 4px solid var(--accent);
  font-size: 14px; line-height: 20px; color: #fff; font-style: italic;
}
#main blockquote cite { display: block; margin-top: 6px; font-size: 11px; font-style: normal; color: #999; }
.yt { position: relative; padding-top: 56.25%; margin: 0 0 15px; background: #000; border: 1px solid #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* change markers  [+] [-] [*] [!] */
ul.changes { list-style: none; padding: 0; margin: 0 0 15px; border: 1px solid #000; background: #121212; }
ul.changes li { padding: 4px 8px 4px 34px; position: relative; border-top: 1px solid #222; }
ul.changes li:first-child { border-top: 0; }
ul.changes li::before {
  position: absolute; left: 6px; top: 5px; width: 20px; height: 14px;
  font: bold 9px/14px Arial, sans-serif; text-align: center; color: #fff;
}
ul.changes li.add::before { content: "NEW"; background: #2c7a1c; }
ul.changes li.rem::before { content: "DEL"; background: #8e1313; }
ul.changes li.chg::before { content: "CHG"; background: #3d5f8a; }
ul.changes li.fix::before { content: "FIX"; background: #9a6b12; }

/* ---------- home: game banners (black-label bullets) ---------- */

.banner {
  display: block; position: relative; height: 168px; margin-bottom: 12px;
  background: #222 center / cover no-repeat; border: 1px solid #000; overflow: hidden;
}
.banner:hover { text-decoration: none; }
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); }
.banner .bar {
  position: absolute; left: 0; right: 0; top: 0; height: 46px;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.55) 60%, rgba(0,0,0,0));
  display: flex; align-items: center; padding-left: 10px; gap: 10px;
}
.banner .bar img { max-height: 34px; max-width: 260px; width: auto; filter: drop-shadow(0 1px 2px #000); }
.banner .bar b { font-size: 26px; color: #fff; letter-spacing: -1px; font-weight: normal; }
.banner .labels { position: absolute; left: 10px; top: 54px; }
.banner .labels span {
  display: table; margin-bottom: 2px; padding: 1px 6px 1px 5px;
  background: #000; color: #fff; font-size: 11px; line-height: 15px; border: 1px solid #333;
}
.banner .status {
  position: absolute; right: 0; top: 8px; padding: 2px 8px;
  background: var(--accent); color: #fff; font: bold 10px/14px Arial, sans-serif; text-transform: uppercase;
}
/* same dark gradient as the sidebar widget headers (e.g. Latest News) */
.banner .more {
  position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; text-decoration: none;
  background: linear-gradient(#2e2e2e, #1b1b1b 55%, #141414);
  border: 1px solid #000; box-shadow: inset 0 1px 0 #3a3a3a;
}
.banner:hover .more { color: #fff; text-decoration: underline; }

/* ---------- sidebar ---------- */

.promo { display: block; margin-bottom: 8px; padding: 6px 6px 6px; border: 1px solid #000; position: relative; min-height: 84px; }
.promo.red { background: linear-gradient(#c62020, #8c0f0f); }
.promo.green { background: linear-gradient(#0b8a1d, #056312); }
.promo.blue { background: linear-gradient(#2a8be0, #0f4f8c); }
.promo.grey { background: linear-gradient(#4a4a4a, #262626); }
.promo.purple { background: linear-gradient(#7a3fd1, #46208a); }
/* button with a picture behind it: solid colour on the left (under the text) fading into the picture */
.promo.red { --fade: 198,32,32; }
.promo.green { --fade: 11,138,29; }
.promo.blue { --fade: 31,110,190; }
.promo.grey { --fade: 58,58,58; }
.promo.purple { --fade: 98,48,170; }
.promo.has-bg {
  min-height: 96px;
  background-position: center 42%; background-size: cover; background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.promo.has-bg b { font-size: 26px; line-height: 26px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.promo b { display: block; font: 22px/22px Arial, sans-serif; color: #fff; white-space: pre-line; letter-spacing: -.3px; }
.promo .more { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.35); padding: 1px 4px; border: 1px solid rgba(255,255,255,.3); text-decoration: none; }
.promo:hover { text-decoration: none; filter: brightness(1.08); }

.side-btn { display: block; margin-bottom: 8px; border: 1px solid #000; }
.side-btn img { display: block; width: 100%; height: auto; }
.side-btn:hover img { filter: brightness(1.12); }

.widget { margin-bottom: 8px; }
.widget h2 {
  margin: 0; padding: 4px 10px; font-size: 14px; line-height: 20px; color: #fff;
  background: linear-gradient(#2e2e2e, #1b1b1b 55%, #141414);
  border: 1px solid #000; box-shadow: inset 0 1px 0 #3a3a3a;
}
.widget ul { list-style: none; margin: 0; padding: 4px 6px 2px; }
.widget li { padding: 3px 0; font-size: 11px; line-height: 16px; font-weight: bold; }
.widget li small { display: block; font-weight: normal; color: #7d7d7d; font-size: 10px; }
.widget .shots { padding: 0; }
.widget .shots li { padding: 0; margin-top: 1px; }
.widget .shots a { display: block; border: 1px solid #000; }
.widget .shots img { display: block; width: 100%; height: 96px; object-fit: cover; }
.widget .shots a:hover img { filter: brightness(1.2); }
.widget .tile { display: block; position: relative; border: 1px solid #000; margin-top: 1px; }
.widget .tile img { display: block; width: 100%; height: 86px; object-fit: cover; }
.widget .tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 5px; background: rgba(0,0,0,.7); font-size: 12px; }

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

/* same see-through widget-header gradient as the slider caption */
.post {
  margin-bottom: 14px; padding: 10px 12px 12px;
  background: linear-gradient(rgba(46,46,46,.85), rgba(27,27,27,.82) 55%, rgba(20,20,20,.8));
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.post::after { content: ""; display: block; clear: both; }
#main .post h2.title { margin: 0 0 4px; font-size: 22px; line-height: 26px; color: #fff; }
.post h2.title a { text-decoration: none !important; }
.post h2.title a:hover { color: var(--accent-hot); }
.meta { margin: 0 0 12px; font-size: 11px; color: #858585; }
.meta b { color: #c7c7c7; font-weight: normal; }
.tag {
  display: inline-block; margin-right: 6px; padding: 0 5px;
  font: bold 9px/15px Arial, sans-serif; text-transform: uppercase; color: #fff; background: #444; vertical-align: 2px;
}
.tag.standard { background: #444; }
.tag.feature { background: var(--accent); }
.tag.devlog { background: #3d5f8a; }
.tag.patch { background: #9a6b12; }
.tag.video { background: #6b2a8a; }
.tag.press { background: #2c7a1c; }
.post .thumb { float: left; width: 150px; margin: 2px 12px 6px 0; border: 1px solid #000; }
.post .thumb img { display: block; width: 100%; height: 100px; object-fit: cover; background: #000; }

/* feature: big image with caption box over it */
.post.feature .hero {
  position: relative; height: 260px; margin-bottom: 12px; border: 1px solid #000;
  background: #000 center / cover no-repeat;
}
.post.feature .hero .cap {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  background: rgba(30,30,30,.86); border: 1px solid #000; padding: 8px 10px;
}
#main .post.feature .hero .cap h2 { margin: 0; font-size: 24px; line-height: 28px; color: #fff; }
.post.feature .hero .cap .meta { margin: 2px 0 0; color: #aaa; }

/* dev log: numbered strip */
.post.devlog .strip { display: flex; align-items: stretch; margin-bottom: 12px; border: 1px solid #000; background: #111; }
.post.devlog .strip .num { width: 78px; flex: none; background: linear-gradient(#3d5f8a, #233a57); color: #fff; text-align: center; padding: 6px 0; }
.post.devlog .strip .num small { display: block; font-size: 9px; letter-spacing: 2px; color: #b8cbe4; }
.post.devlog .strip .num b { display: block; font-size: 28px; line-height: 30px; }
.post.devlog .strip .t { padding: 8px 12px; }
.post.devlog .strip h2.title { margin: 0 0 2px; }
.post.devlog .strip .meta { margin: 0; }

/* patch notes: version plate */
.post.patch .plate { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post.patch .plate .ver {
  flex: none; padding: 6px 10px; background: #000; border: 1px solid #9a6b12; color: #f0b648;
  font: bold 16px/18px Consolas, "Courier New", monospace;
}
.post.patch .plate h2.title { margin: 0; }
.post.patch .plate .meta { margin: 0; }

/* press release */
.post.press .frame { background: #e9e9e9; color: #222; padding: 18px 22px; border: 1px solid #000; }
.post.press .frame a { color: var(--accent-dark); }
#main .post.press .frame h2.title { color: #111; }
.post.press .frame h2.title a:hover { color: var(--accent-dark); }
.post.press .frame .meta { color: #666; }
.post.press .frame .meta b { color: #222; }
.post.press .release { font: bold 10px/14px Arial, sans-serif; letter-spacing: 2px; color: var(--accent-dark); margin-bottom: 8px; }
.post.press .frame blockquote { background: #fff !important; color: #222 !important; }
.post.press .frame h3, .post.press .frame h4 { color: #111 !important; }
.post.press .end { text-align: center; margin: 10px 0 0; letter-spacing: 6px; color: #666; }

.readmore { margin-top: -4px; }
.pagination { display: flex; gap: 3px; margin-top: 10px; }
.pagination a, .pagination span { display: block; min-width: 22px; height: 22px; padding: 0 6px; font: bold 11px/22px Arial, sans-serif; text-align: center; background: #333; color: #fff; text-decoration: none !important; border: 1px solid #000; }
.pagination span.on { background: var(--accent); }
.pagination a:hover { background: #555; }
.notice { padding: 10px 12px; background: #111; border: 1px solid #000; color: #aaa; }

/* ---------- game page ---------- */

.quote-panel {
  position: relative; min-height: 210px; margin: 0 0 22px; border: 1px solid #000;
  background: #111 left center / cover no-repeat;
  display: flex; justify-content: flex-end; align-items: center;
}
.quote-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 55%); }
.quote-panel .q { position: relative; width: 55%; padding: 18px 18px 14px; text-align: right; }
.quote-panel .q p { margin: 0 0 12px !important; font-size: 19px; line-height: 24px; color: #fff; }
.quote-panel .q b { display: block; font-size: 20px; font-weight: normal; color: #fff; }
.quote-panel .q small { display: block; font-size: 11px; color: #ccc; margin-top: 2px; }
.game-logo { margin: 0 0 15px; }
.game-logo img { max-height: 120px; width: auto; }
.status-line { display: inline-block; margin: -6px 0 15px; padding: 2px 8px; background: #000; border: 1px solid #333; font-size: 11px; color: #fff; }
.status-line::before { content: "\25CF  "; color: var(--accent); }

.games-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.games-grid .banner { margin: 0; }

/* ---------- contact (after NaturalMotion's Sales page) ---------- */

#photo { height: 260px; background: #111 center / cover no-repeat; border-bottom: 6px solid #111; }
#body.left { gap: 16px; padding-left: 6px; }
#lcol { width: 190px; flex: none; }
#body.left #main { width: auto; flex: 1; min-width: 0; padding-right: 6px; }

#cform label { display: block; margin: 0 0 1px; font-size: 11px; color: #fff; }
#cform input, #cform select, #cform textarea {
  display: block; width: 100%; margin-bottom: 8px; padding: 2px 4px;
  background: linear-gradient(#3e3e3e, #4a4a4a); border: 1px solid #111; color: #fff;
  font: 11px Arial, sans-serif; box-shadow: inset 0 1px 2px #000;
}
#cform input, #cform select { height: 18px; }
#cform select { padding: 0 2px; }
#cform textarea { height: 96px; resize: vertical; }
#cform input:focus, #cform select:focus, #cform textarea:focus { outline: 1px solid var(--accent); }
#cform button {
  width: 92px; height: 20px; margin-top: 2px; cursor: pointer;
  background: linear-gradient(#4a4a4a, #262626); border: 1px solid #000; color: #ddd;
  font: 11px Arial, sans-serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
#cform button:hover { background: var(--accent-grad); color: #fff; }
#cform small { display: block; margin-top: 6px; font-size: 10px; line-height: 13px; color: #777; }
#cform .cf-done { margin: 8px 0 0; padding: 5px 6px; background: #12300d; border: 1px solid #2c7a1c; font-size: 11px; color: #cfe8c8; }

#main h2.it { margin: 18px 0 10px; font-size: 18px; line-height: 20px; font-style: italic; color: #fff; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0 26px; }
.office h3, #main .office h3 {
  margin: 0; padding: 3px 7px; font-size: 12px; line-height: 18px; color: #fff;
  background: linear-gradient(#2e2e2e, #1b1b1b 55%, #141414); border: 1px solid #000; box-shadow: inset 0 1px 0 #3a3a3a;
}
.office .ob { padding: 10px 6px 0; font-size: 11px; line-height: 16px; }
.office .ob p { margin: 0 0 12px !important; }

.c-bar {
  display: flex; align-items: center; gap: 30px; margin: 0 0 14px; padding: 8px 10px;
  background: linear-gradient(#262626, #161616); border: 1px solid #000; box-shadow: inset 0 1px 0 #333, 0 1px 0 #262626;
}
#main .c-bar h2 { margin: 0; font-size: 16px; line-height: 20px; font-style: italic; color: #fff; min-width: 110px; }
.c-bar select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 190px; height: 20px; padding: 0 22px 0 6px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23999'/%3E%3C/svg%3E") right 4px center no-repeat;
  border: 0; color: #fff; font: 11px Arial, sans-serif;
}
.c-bar select option { background: #111; }
.c-topic { display: flex; gap: 16px; align-items: flex-start; }
.c-topic[hidden] { display: none; }
.c-topic .c-text { flex: 1; }
.c-topic .office { width: 200px; flex: none; }

/* lightbox */
#lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; flex-direction: column; cursor: zoom-out; }
#lightbox.on { display: flex; }
#lightbox img { max-width: 92vw; max-height: 84vh; border: 6px solid #fff; background: #fff; }
#lightbox p { color: #ccc; font-size: 11px; }

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

#footer { background: #000; padding: 16px 12px 14px; border-top: 1px solid #222; }
#footer .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#footer .row + .row { margin-top: 14px; }
#footer .logos { display: flex; gap: 22px; align-items: center; }
#footer .logos img { height: 30px; width: auto; opacity: .8; filter: grayscale(1) brightness(1.6); }
#footer .logos a:hover img { opacity: 1; filter: none; }
#footer .links { display: flex; font-size: 11px; }
#footer .links a { text-decoration: underline; padding: 0 9px; border-left: 1px solid #555; line-height: 11px; }
#footer .links a:first-child { border-left: 0; }
#footer .info { font-size: 11px; }
#footer .info b { color: #fff; }
#footer .copy { font-size: 11px; text-align: right; }
#footer .copy span { display: block; margin-top: 8px; }

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

@media (max-width: 980px) {
  body { background: #000; }
  #wrap { width: auto; }
  #header { height: auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  #logo, #search, #nav { position: static; }
  #logo img { height: 56px; }
  #search { order: 3; width: 100%; border: 1px solid #000; border-radius: 4px; }
  #search input { flex: 1; width: auto; }
  #nav-toggle { display: block; background: #222; color: #fff; border: 1px solid #444; padding: 6px 10px; font: bold 12px Arial, sans-serif; cursor: pointer; }
  #nav { display: none; order: 4; width: 100%; flex-direction: column; border-top: 1px solid #222; }
  #nav.open { display: flex; }
  #nav ul { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; }
  #slider { height: 220px; }
  #slider .caption { left: 10px; right: 10px; width: auto; bottom: 46px; }
  #body { flex-direction: column; padding: 12px 16px 24px; }
  #main, #side { width: 100%; }
  #main h1 { font-size: 28px; line-height: 32px; }
  .games-grid { grid-template-columns: 1fr; }
  .post .thumb { width: 110px; }
  .quote-panel .q { width: 100%; }
  #photo { height: 150px; }
  #lcol { width: 100%; order: 2; }
  .offices { grid-template-columns: 1fr; }
  .c-topic { flex-direction: column; }
  .c-topic .office { width: 100%; }
  .c-bar { gap: 12px; flex-wrap: wrap; }
  .quote-panel::before { background: rgba(0,0,0,.65); }
  #footer .row { flex-direction: column; align-items: flex-start; }
  #footer .copy { text-align: left; }
  #footer .logos { flex-wrap: wrap; }
}

/* ---------- privacy policy ---------- */

.policy { max-width: 640px; }
.policy .meta { margin-top: -8px; }
#main .policy h3 { margin: 26px 0 8px; padding-bottom: 4px; font-size: 20px; line-height: 24px; color: #fff; border-bottom: 1px solid #000; box-shadow: 0 1px 0 #2a2a2a; }
#main .policy h4 { margin: 16px 0 6px; font-size: 14px; color: #fff; }
#main .policy h3:target, #main .policy h4:target { color: var(--accent-hot); }
mark.confirm { background: #f0b648; color: #000; padding: 0 3px; font-weight: bold; }
#prerender { max-width: 760px; margin: 0 auto; padding: 20px; }

/* =====================================================================
   DIVISIONS: the splash page, the tab that switches between Smackneck
   Studios and Smackneck Mobile, and everything only Mobile uses.
   ===================================================================== */

/* tab beside the search box: jumps to the other division */
#divtab {
  position: absolute; top: 0; right: 290px; padding: 6px 10px 6px;
  font: bold 11px/15px Arial, sans-serif; color: #fff; text-decoration: none; white-space: nowrap;
  border: 1px solid #000; border-top: 0; border-radius: 0 0 5px 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
#divtab.mobile { background: linear-gradient(#2a8be0, #0f4f8c); }
#divtab.studio { background: linear-gradient(#c62020, #8c0f0f); }
#divtab:hover { filter: brightness(1.15); text-decoration: none; }

/* placeholder Mobile logo (used until Smackneck Mobile > Logo is filled in in the editor):
   the studio mark tinted blue, cropped to the circle, with a wordmark */
.m-logo { display: inline-flex; align-items: center; gap: 10px; }
.m-logo .mark { flex: none; width: 78px; height: 77px; background: center top / 100% auto no-repeat; filter: hue-rotate(205deg) saturate(1.15); }
.m-logo .word { font: bold italic 14px/14px Arial, sans-serif; color: #cfe3f7; text-transform: uppercase; letter-spacing: 2px; }
.m-logo .word b { display: block; font-size: 32px; line-height: 32px; color: #3b9cf0; letter-spacing: 1px; text-shadow: 0 2px 0 #000; }
.m-logo.small { gap: 6px; }
.m-logo.small .mark { width: 30px; height: 30px; }
.m-logo.small .word { font-size: 7px; line-height: 8px; letter-spacing: 1px; }
.m-logo.small .word b { font-size: 14px; line-height: 14px; text-shadow: none; }
.m-logo.big {
  flex-direction: column; gap: 4px; padding: 16px 30px 14px;
  background: linear-gradient(160deg, #1f68ab, #0b2a4d 70%); border: 5px solid #fff; border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,.7);
}
.m-logo.big .mark { width: 150px; height: 148px; }
.m-logo.big .word { font-size: 17px; line-height: 18px; text-align: center; letter-spacing: 4px; }
/* the real Mobile logo (an <img>) at the same sizes as the placeholder */
img.small { height: 30px; width: auto; }
.to-mobile img.small { height: 48px; }
img.big { max-height: 270px; width: auto; }
.m-logo.big .word b { font-size: 44px; line-height: 44px; color: #fff; letter-spacing: 2px; text-shadow: 0 3px 0 #0b2a4d; }

/* ---------- splash (index.html) ---------- */

#wrap.splash { background: #161616; }
#splash { flex: 1; display: flex; align-items: center; padding: 50px 30px; }
.sp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; }
.sp-col { text-align: center; }
.sp-logo { display: flex; height: 280px; align-items: center; justify-content: center; transition: transform .2s; }
.sp-logo:hover { transform: scale(1.03); text-decoration: none; }
.sp-logo img { max-height: 270px; width: auto; }
.sp-col h2 { margin: 22px 0 12px; font-size: 18px; line-height: 22px; }
.sp-col h2 a { color: #fff; }
.sp-col p { max-width: 380px; min-height: 36px; margin: 0 auto 14px; font-style: italic; color: #bbb; }
.sp-visit { font-weight: bold; text-decoration: underline; }
.sp-col.studio .sp-visit:hover { color: #ff6b6b; }
.sp-col.mobile .sp-visit:hover { color: #6bbcff; }
.sp-foot { padding: 14px; text-align: center; font-size: 11px; color: #777; border-top: 1px solid #222; }
.sp-foot a { color: #aaa; text-decoration: underline; }

/* ---------- bits both divisions can show ---------- */

/* store buttons, drawn in CSS */
.store {
  display: inline-flex; flex-direction: column; justify-content: center; height: 36px; padding: 0 12px;
  background: #000; border: 1px solid #5a5a5a; border-radius: 5px;
  font: bold 14px/15px Arial, sans-serif; color: #fff; white-space: nowrap; text-decoration: none !important;
}
.store small { font: 8px/10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: #bbb; }
.store:hover { border-color: #fff; }
.store.soon { border-style: dashed; color: #999; cursor: default; }
.store.soon:hover { border-color: #5a5a5a; }
.stores { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.stores .store { height: 46px; padding: 0 14px; font-size: 18px; line-height: 19px; }
.stores .store small { font-size: 9px; }

/* studio games page: pointer to Mobile */
.to-mobile {
  display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 12px;
  background: linear-gradient(90deg, #0f3559, #111 70%); border: 1px solid #000; border-left: 4px solid #1f7fd1;
  text-decoration: none !important;
}
.to-mobile span { color: #c7c7c7; }
.to-mobile span b { display: block; color: #fff; font-size: 14px; }
.to-mobile:hover { filter: brightness(1.15); }
#footer .xdiv { display: block; margin-top: 4px; color: #888; }
#footer .xdiv a { text-decoration: underline; }
#footer .m-logo { opacity: .85; }
#footer .logos a:hover .m-logo { opacity: 1; }

/* ---------- Smackneck Mobile look ---------- */

html.div-mobile body {
  background-color: #02060c;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 6px),
    linear-gradient(90deg,
      #02050a 0,
      #071527 calc(50% - 640px),
      #0c2340 calc(50% - 500px),
      #133258 calc(50% - 482px),
      #000 calc(50% - 480px),
      #000 calc(50% + 480px),
      #133258 calc(50% + 482px),
      #0c2340 calc(50% + 500px),
      #071527 calc(50% + 640px),
      #02050a 100%);
}
.div-mobile #header {
  height: 112px; border-bottom: 1px solid #000;
  background: radial-gradient(ellipse at 25% 0, #1d548d 0, #0b2440 45%, #050d18 100%);
}
.div-mobile #logo { top: 17px; }
.div-mobile #nav { right: 14px; bottom: 20px; }
.div-mobile #nav > li > a { padding: 8px 15px; font: bold 16px/20px Arial, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: #7f9bbb; }
.div-mobile #nav > li > a:hover, .div-mobile #nav > li.active > a { color: #fff; }
.div-mobile #nav ul { background: #0a1524; border-color: #1c3350; }
.div-mobile #search { background: linear-gradient(#183454, #0b1a2c); box-shadow: inset 0 -1px 0 #24476e; }
.div-mobile #search input { background: #1a2e46; }
.div-mobile #search button { background: linear-gradient(#3b6c9f, #1a3a5f); }

/* slider sits in a frame on the navy band, with arrows and round dots */
.div-mobile #slider { height: 370px; border-bottom: 0; background: linear-gradient(#0b2440, #050d18 85%); }
.div-mobile #slider .slide { background-color: #0f3559; inset: 14px 64px 44px; border: 1px solid #000; box-shadow: 0 4px 14px rgba(0,0,0,.7); }
.div-mobile #slider .caption { background: linear-gradient(rgba(22,48,80,.88), rgba(10,26,44,.86)); }
.div-mobile #slider .pager { left: 50%; bottom: 12px; transform: translateX(-50%); background: none; border: 0; padding: 0; gap: 8px; }
.div-mobile #slider .pager button { width: 15px; height: 15px; border-radius: 50%; font-size: 0; background: #d4dde8; box-shadow: inset 0 -2px 2px rgba(0,0,0,.35); }
.div-mobile #slider .pager button.on { background: var(--accent); }
.div-mobile #slider .arrow {
  position: absolute; top: calc(50% - 15px); transform: translateY(-50%); z-index: 3;
  width: 40px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 56px/56px Arial, sans-serif; color: #fff; text-shadow: 0 2px 4px #000; opacity: .85;
}
.div-mobile #slider .arrow:hover { opacity: 1; color: var(--accent-hot); }
.div-mobile #slider .prev { left: 12px; }
.div-mobile #slider .next { right: 12px; }

.div-mobile #body { background: #121922; }
.div-mobile #body.full { padding: 16px 14px 30px; }
.div-mobile .widget h2, .div-mobile .office h3, .div-mobile #main .office h3, .div-mobile .banner .more {
  background: linear-gradient(#22374f, #15243a 55%, #0f1a2a); box-shadow: inset 0 1px 0 #31507a;
}
.div-mobile .post { background: linear-gradient(rgba(34,55,80,.8), rgba(21,36,58,.78) 55%, rgba(15,26,42,.76)); }
.div-mobile .c-bar { background: linear-gradient(#1c2f47, #111d2d); box-shadow: inset 0 1px 0 #2b4566, 0 1px 0 #1c2a3c; }
.div-mobile #main h1 { color: #dbe6f2; }
.div-mobile #footer { background: #050b14; border-top-color: #13263d; }

/* home + games: card grid */
#main h2.m-tag { margin: 0 0 16px; text-align: center; font-size: 17px; line-height: 22px; font-style: italic; color: #fff; }
#main h2.m-head { margin: 28px 0 12px; padding-bottom: 6px; font-size: 22px; line-height: 26px; color: #dbe6f2; border-bottom: 1px solid #000; box-shadow: 0 1px 0 #233650; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.m-card {
  position: relative; overflow: hidden; padding: 8px 8px 10px;
  background: linear-gradient(#202d3d, #151d28); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.m-img {
  display: flex; align-items: center; justify-content: center; height: 160px;
  background: linear-gradient(160deg, #1f68ab, #0b2a4d) center / cover no-repeat; border: 1px solid #000;
}
.m-img img { max-width: 80%; max-height: 70%; filter: drop-shadow(0 2px 3px #000); }
.m-img b { font-size: 24px; color: #fff; }
.m-img:hover { filter: brightness(1.12); text-decoration: none; }
.ribbon {
  position: absolute; top: 18px; right: -36px; width: 140px; transform: rotate(45deg);
  background: linear-gradient(#f2f5f9, #cfd8e3); color: #10243b; text-align: center;
  font: bold 9px/18px Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.m-status { position: absolute; left: 9px; top: 9px; padding: 2px 7px; background: var(--accent); color: #fff; font: bold 10px/14px Arial, sans-serif; text-transform: uppercase; }
#main .m-card h3 { margin: 10px 0 8px; font-size: 15px; line-height: 18px; text-transform: uppercase; letter-spacing: .5px; }
#main .m-card h3 a { color: #fff; }
#main .m-card a, #main .m-card a:hover { text-decoration: none !important; }
#main .m-card h3 a:hover { color: var(--accent-hot); }
.m-btns { display: flex; gap: 8px; }
.m-more {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 36px;
  background: linear-gradient(#3a4a5e, #222d3b); border: 1px solid #000; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  font: bold 12px Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; color: #dbe6f2; text-decoration: none !important;
}
.m-more:hover { background: var(--accent-grad); color: #fff; }

/* home: news cards */
.m-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 12px; }
.m-post { display: block; background: #0d141d; border: 1px solid #000; text-decoration: none !important; }
.m-post .img { display: block; height: 120px; background: linear-gradient(160deg, #1f68ab, #0b2a4d) center / cover no-repeat; border-bottom: 1px solid #000; }
.m-post .t { display: block; padding: 8px 10px 10px; }
.m-post small { display: block; font-size: 10px; color: #6f86a1; text-transform: uppercase; }
.m-post b { display: block; margin: 2px 0 4px; font-size: 14px; line-height: 17px; color: #fff; }
.m-post .t > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 15px; color: #a9b6c5; }
.m-post:hover b { color: var(--accent-hot); }

@media (max-width: 980px) {
  #divtab { position: static; order: 2; border-top: 1px solid #000; border-radius: 4px; }
  .sp-cols { grid-template-columns: 1fr; gap: 50px; }
  .sp-logo { height: auto; }
  .sp-logo img { max-height: 200px; }
  .div-mobile #header { height: auto; }
  .div-mobile #nav > li > a { font-size: 14px; }
  .div-mobile #slider { height: 240px; }
  .div-mobile #slider .slide { inset: 8px 8px 34px; }
  .div-mobile #slider .arrow { display: none; }
  .div-mobile #body.full { padding: 12px 16px 24px; }
  .m-logo .mark { width: 54px; height: 53px; }
  .m-logo .word b { font-size: 24px; line-height: 24px; }
  .m-grid { grid-template-columns: repeat(2, 1fr); }
  .m-news { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .m-grid { grid-template-columns: 1fr; }
  .m-logo.big .mark { width: 110px; height: 109px; }
  .m-logo.big .word b { font-size: 34px; line-height: 34px; }
}
