@import url("/card-assets/game-card.css");

@font-face {
  font-family: "Press Start 2P";
  src: url("/card-assets/pixel-font.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Same palette and typography as src/styles.css. */
  --color-bg-internal: #e0e0c0;
  --color-bg-external: #7d82a4;
  --color-primary: #2db36b;
  --color-primary-light: #00d0cc;
  --color-bg-logo: #218c95;
  font-family: "Press Start 2P", "Courier New", monospace;
  color: #111;
  background: var(--color-bg-external);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  padding: 32px;
  display: grid;
  place-items: center;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid #111;
  outline-offset: 6px;
}
.pixel-frame {
  border: 2px solid #111;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Cpath d='M2 1h1v1H2zM1 2h1v1H1zM3 2h1v1H3zM2 3h1v1H2z' fill='black'/%3E%3C/svg%3E")
    2 / 2 / 1;
  border-radius: 16px;
}
.page {
  width: 100%;
  max-width: 720px;
  background: #111;
  box-shadow: 3px 3px 8px 2px #0004;
}
.page-accent {
  border-image-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Cpath d='M2 1h1v1H2zM1 2h1v1H1zM3 2h1v1H3zM2 3h1v1H2z' fill='%232db36b'/%3E%3C/svg%3E");
  margin: 0px;
  padding: 0px;
  border-radius: 16px;
}
.page-surface {
  border: 2px solid var(--color-primary-light);
  background: var(--color-bg-internal);
}
.page-content {
  border: 2px solid #111;
  padding: 28px;
}
header {
  margin-bottom: 36px;
  text-align: center;
}
.brand {
  display: inline-block;
  background: var(--color-bg-logo);
  border: 2px solid #111;
  box-shadow:
    0 0 0 2px var(--color-primary-light),
    0 0 0 4px #111;
  padding: 12px;
  color: #fff;
  text-shadow: -2px 2px #111;
  font-size: 24px;
  text-decoration: none;
}
.eyebrow {
  margin: 22px 0 0;
  font-size: 9px;
  line-height: 1.8;
}
.card-detail {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.card-art {
  aspect-ratio: 13 / 18;
}
h1 {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.effect {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.copy-limit {
  margin: 0 0 28px;
  font-size: 9px;
  line-height: 2;
}
.copy-limit strong {
  font-weight: inherit;
}
.deck-button {
  display: inline-flex;
  border-radius: 4px !important;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: white;
  padding: 12px;
  text-decoration: none;
  font-size: 10px;
  line-height: 1.8;
}
.other-cards {
  margin-top: 36px;
  border-top: 2px solid #111;
  padding-top: 20px;
}
.other-cards h2 {
  margin: 0 0 16px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
}
.other-cards div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.other-cards a {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  place-items: center;
  border: 2px solid #111;
  text-decoration: none;
  font-size: 11px;
}
.other-cards a:hover {
  background: var(--color-primary-light);
}
@media (max-width: 600px) {
  body {
    padding: 16px;
  }
  .page-content {
    padding: 22px 16px;
  }
  .brand {
    font-size: 20px;
  }
  .card-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .card-art {
    width: 150px;
    margin: 0 auto;
  }
  .card-info {
    text-align: center;
  }
  h1 {
    font-size: 14px;
  }
  .deck-button {
    width: 100%;
  }
}
