:root {
  --background: #282C34;
  --blue: #61AFEF;
  --green: #98C379;
  --purple: #C678DD;
  --white: #DCDFE4;

  --container-width: 1300px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--white);
  font-family: Consolas, monospace;
  font-size: 1em;
  justify-content: center;
  text-align: center;
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
  min-height: 100vh;
}

header,
footer {
  cursor: default;
  justify-content: center;
  text-align: center;
  padding: 10px 0;
}

.footer-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 24px;
  position: relative;
  font-size: 0.9em;
  opacity: 0.9;
}

.site-title {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  background: var(--blue);
  color: var(--background);
}

a::selection {
  background: var(--blue);
  color: var(--background);
}

p {
  text-align: justify;
}

h2 {
  color: var(--purple);
}

h2::selection {
  background: var(--purple);
  color: var(--background);
}

.title {
  color: var(--white);
  text-align: left;
  font-size: clamp(0.4rem, 1.9vw, 1.1rem);
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto 20px;
  line-height: 1.1;
  padding-bottom: 0.1em;
  font-family: monospace;
  white-space: pre;
  overflow: hidden;
}

.left {
  text-align: left;
}

.intro {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: left;
}

.prompt {
  color: var(--green);
}

::selection {
  background: var(--white);
  color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- grade de jogos (home) ---- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(322px, 100%), 322px));
  justify-content: center;
  gap: 48px;
  margin: 30px 0;
  padding: 0 20px;
  text-align: left;
}

.game-card {
  border: 1px solid var(--blue);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-card .shot-link {
  display: block;
  line-height: 0;
  border-bottom: 1px solid var(--blue);
}

.game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 672;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.game-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.15em;
}

.game-card-body h3 a {
  background: none;
  color: inherit;
}

.game-card-body h3 a:hover {
  background: none;
  text-decoration: underline;
}

.game-card-body p {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.45;
  flex: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.75em;
  padding: 2px 7px;
  border: 1px solid var(--white);
  opacity: 0.75;
  white-space: nowrap;
}

.play-btn {
  display: inline-block;
  align-self: flex-start;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 6px 14px;
  font-weight: bold;
}

.play-btn:hover {
  background: var(--green);
  color: var(--background);
}

.sudoghu-card { border-color: #8f74c9; }
.sudoghu-card .shot-link { border-bottom-color: #8f74c9; }
.sudoghu-card .play-btn { border-color: #5774ff; color: #93a9ff; }
.sudoghu-card .play-btn:hover { background: #5774ff; color: #0b0f2e; }

.ghutermo-card { border-color: #34ac90; }
.ghutermo-card .shot-link { border-bottom-color: #34ac90; }
.ghutermo-card .play-btn { border-color: #ceac74; color: #ceac74; }
.ghutermo-card .play-btn:hover { background: #ceac74; color: #2b1f14; }

