/* A mid-2000s Flash portal: glossy bars, bevelled panels, small Verdana. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #d8d8d8;
  font: 12px/1.5 Verdana, Tahoma, Geneva, sans-serif;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 6px),
    radial-gradient(ellipse at top, #2c2f38 0%, #121318 70%) fixed;
  background-color: #121318;
}

a {
  color: #ffb12b;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 2px solid #000;
  background: linear-gradient(#ff9a1f 0%, #f07800 49%, #d65c00 50%, #b84a00 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.logo .mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: linear-gradient(#c40000, #6e0000);
  font-size: 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.logo .word {
  font: bold italic 28px/1 "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: -1px;
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #7a2c00;
}

.logo em {
  color: #ffe36b;
}

.klimb {
  padding: 6px 14px;
  border: 1px solid #000;
  border-radius: 14px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 1px 1px 0 #000;
  white-space: nowrap;
  background: linear-gradient(#5ec8ff 0%, #1c8fd6 49%, #0a6fb3 50%, #0a5a91 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

.klimb:hover {
  background: linear-gradient(#8fdcff 0%, #35a6ec 49%, #1585cc 50%, #0f6fae 100%);
}

main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}

.tagline {
  margin: 16px 0;
  color: #9aa0ad;
  text-align: center;
}

.panel {
  border: 1px solid #000;
  border-radius: 6px;
  background: #23252c;
  box-shadow:
    inset 0 1px 0 #3d404a,
    0 3px 10px rgba(0, 0, 0, 0.6);
}

.panel h1 {
  margin: 0;
  padding: 4px 12px;
  border-bottom: 1px solid #000;
  border-radius: 6px 6px 0 0;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#5b5f6c 0%, #42454f 50%, #353841 51%, #2b2d35 100%);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px;
  list-style: none;
}

.game {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid #0c0d10;
  border-radius: 4px;
  background: linear-gradient(#30333c, #26282f);
  box-shadow: inset 0 1px 0 #454956;
}

.thumb {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 120px;
  height: 138px;
  overflow: hidden;
  border: 2px solid #000;
  outline: 1px solid #565a66;
  background: #05060c;
  color: #3d404a;
  font: bold 64px/1 "Trebuchet MS", Verdana, sans-serif;
  text-decoration: none;
}

.thumb.cave {
  background: #05060c url("/cave/assets/bitmaps/BGS1.png") center / 250px auto;
}

.thumb img {
  position: absolute;
  image-rendering: pixelated;
}

.thumb .ship {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) scale(1.5);
}

.thumb .foe {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.thumb.invady {
  background:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent),
    radial-gradient(1px 1px at 90px 60px, #ccc 50%, transparent),
    radial-gradient(1px 1px at 45px 100px, #aaa 50%, transparent),
    radial-gradient(1px 1px at 100px 120px, #fff 50%, transparent),
    radial-gradient(1px 1px at 12px 75px, #999 50%, transparent),
    #000;
}

.thumb .ufo {
  top: 14px;
  left: 50%;
  width: 56px;
  transform: translateX(-50%);
}

.thumb.invady .foe {
  top: 50px;
  width: 30px;
}

.thumb.invady .ship {
  bottom: 10px;
  width: 40px;
  transform: translateX(-50%);
}

.info h2 {
  margin: 0;
  color: #ffd23f;
  font: bold 16px/1.2 "Trebuchet MS", Verdana, sans-serif;
  text-shadow: 1px 1px 0 #000;
}

.info p {
  margin: 4px 0;
}

.info .meta {
  color: #8d93a0;
  font-size: 11px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px !important;
}

.play {
  padding: 4px 18px;
  border: 1px solid #000;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  background: linear-gradient(#8fe03a 0%, #4fae12 49%, #3d9408 50%, #2f7604 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.play:hover {
  background: linear-gradient(#aaf05a 0%, #62c41e 49%, #4caa10 50%, #3a8a08 100%);
}

.soon h2 {
  color: #8d93a0;
}

footer {
  padding: 16px;
  color: #6b707c;
  font-size: 10px;
  text-align: center;
}
