@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
:root {
  color-scheme: dark;
  --bg: #081e24;
  --panel: #102b30;
  --cream: #f5f1df;
  --muted: #adc0bb;
  --gold: #e9bd72;
  --mint: #b8dbc0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--cream);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.header {
  height: 110px;
  padding: 0 5.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}
.brand-logo{display:block;width:230px;max-width:50vw;height:auto;border-radius:4px}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 5.4px;
  margin-top: 8px;
}
.brand-icon {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--mint);
  border-radius: 50%;
  color: var(--mint);
  font-size: 27px;
  position: relative;
}
.brand-icon span {
  font-size: 18px;
  position: absolute;
  right: -6px;
  top: 0;
  background: var(--bg);
}
.edition {
  font-size: 14px;
  color: var(--muted);
}
.spark {
  color: var(--gold);
  margin: 0 16px;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px;
  font-size: 14px;
}
.quiet:hover {
  color: var(--cream);
}
main {
  max-width: 1600px;
  margin: auto;
}
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-copy {
  position: relative;
  padding: 78px 0 50px 8%;
  width: 55%;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.eyebrow {
  letter-spacing: 2.4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 22px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 5.5vw, 84px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
h1 em {
  color: var(--mint);
  font-weight: 500;
}
.intro {
  font-size: 16px;
  line-height: 1.8;
  color: #c0ceca;
  margin-bottom: 30px;
}
.primary {
  border: 0;
  border-radius: 5px;
  background: var(--gold);
  color: #172c2d;
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 25px #0002;
}
.primary:hover {
  background: #f8d599;
}
.hero-note {
  font-size: 12px;
  color: #91aaa6;
  margin-top: 22px;
}
.scene-note {
  position: absolute;
  bottom: 40px;
  right: 8%;
  font-size: 9px;
  letter-spacing: 3px;
  color: #abc5c0;
}
.games-section {
  padding: 38px 8% 60px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
}
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-bottom: 0;
}
.platform-note {
  font-size: 12px;
  color: #8fa8a4;
  padding-bottom: 7px;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.game-card {
  border: 1px solid #c4e9d51b;
  border-radius: 9px;
  overflow: hidden;
  background: #102a2e;
  transition:
    transform 0.2s,
    border-color 0.2s;
  text-align: left;
  padding: 0;
  color: var(--cream);
  width: 100%;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: #e9bd7277;
}
.card-art {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.card-art canvas {
  width: 100%;
  height: 100%;
}
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 1px solid #ffffff25;
  border-radius: 3px;
  background: #0c2226bd;
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #f5f1df;
}
.card-copy {
  padding: 21px 20px 18px;
}
.card-copy h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  margin-bottom: 9px;
  font-weight: 500;
}
.card-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 44px;
  margin-bottom: 20px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff12;
  padding-top: 14px;
  font-size: 12px;
}
.best {
  font-size: 11px;
  color: #91aaa6;
}
.play-label {
  color: var(--gold);
  font-weight: 600;
}
.bottom-note {
  margin: 0 8%;
  padding: 36px 0 44px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: 1px solid #ffffff14;
}
.bottom-note h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 9px;
}
.bottom-note p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.little-star {
  font-size: 36px;
  color: var(--gold);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5.4%;
  border-top: 1px solid #ffffff12;
  color: #829c98;
  font-size: 11px;
}
footer .quiet {
  font-size: 11px;
}
#arcade {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
  min-height: 100svh;
}
.game-header {
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff20;
}
.game-header h2 {
  font-size: 25px;
}
.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8px;
  gap: 20px;
}
.hud div {
  min-width: 75px;
}
.hud div:last-child {
  text-align: right;
}
.hud span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.hud strong {
  font-size: 30px;
  color: var(--gold);
}
.hud p {
  font-size: 14px;
  text-align: center;
  color: var(--muted);
  margin: 0;
  max-width: 440px;
}
#playfield {
  position: relative;
  height: min(62svh, 570px);
  min-height: 280px;
  overflow: hidden;
  background: #102f38;
  border: 1px solid #ffffff20;
  border-radius: 12px;
}
#game-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
}
.game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 16px;
}
.game-controls button {
  width: 68px;
  height: 52px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  background: #193a3e;
  color: var(--cream);
  font-size: 20px;
  touch-action: none;
  user-select: none;
}
.game-controls span {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 350px;
}
.save-note {
  font-size: 11px;
  color: #829c98;
  text-align: center;
  margin-top: 20px;
}
.overlay {
  position: absolute;
  inset: 0;
  background: #071e24ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  text-align: center;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.overlay h2 {
  font-size: 42px;
  margin-bottom: 20px;
}
.overlay p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 440px;
}
.overlay .eyebrow {
  color: var(--gold);
  margin-bottom: 14px;
}
#board {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 10px;
  padding: 24px;
  align-content: center;
  justify-content: center;
}
.memory-tile {
  width: clamp(50px, 11vw, 95px);
  height: clamp(56px, 12vw, 100px);
  border-radius: 8px;
  border: 1px solid #c4e9d53b;
  background: linear-gradient(145deg, #31544e, #163b3d);
  color: var(--gold);
  font-size: 36px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.memory-tile.revealed {
  background: #eff0da;
  color: #18383b;
  transform: rotateY(0);
}
.memory-tile.matched {
  background: #9bccae;
  color: #123b30;
  opacity: 0.8;
}
.light-tile {
  width: clamp(42px, 9vw, 66px);
  height: clamp(42px, 9vw, 66px);
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #15362f;
  font-size: 25px;
  color: #58786c;
  box-shadow: inset 0 -5px 12px #0003;
}
.light-tile.on {
  color: #fff3b3;
  background: #8f662e;
  box-shadow:
    0 0 22px #ffd16a44,
    inset 0 0 18px #ffde7055;
}
html {
  scroll-behavior: smooth;
}
@media (min-width: 1600px) {
  .header,
  footer {
    padding-left: max(5.4%, calc((100vw - 1440px) / 2));
    padding-right: max(5.4%, calc((100vw - 1440px) / 2));
  }
}
@media (max-width: 1000px) {
  .game-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-art {
    height: 210px;
  }
  .hero-copy {
    width: 64%;
  }
  .edition {
    display: none;
  }
  .hero {
    height: 570px;
  }
}
@media (max-width: 600px) {
  .header {
    height: 84px;
    padding: 0 6%;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 22px;
  }
  .brand small {
    font-size: 8px;
  }
  .hero {
    height: 700px;
  }
  .hero-copy {
    padding: 42px 7%;
    width: 100%;
    background: linear-gradient(#081e24b0, transparent);
  }
  h1 {
    font-size: 55px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .intro {
    font-size: 14px;
  }
  .hero-note {
    font-size: 11px;
  }
  .scene-note {
    bottom: 20px;
    right: 7%;
    font-size: 8px;
  }
  .games-section {
    padding: 30px 6%;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .platform-note {
    display: block;
    margin-top: 14px;
    font-size: 11px;
  }
  .game-cards {
    gap: 12px;
  }
  .card-art {
    height: 150px;
  }
  .card-copy {
    padding: 16px 12px;
  }
  .card-copy h3 {
    font-size: 21px;
  }
  .card-copy p {
    font-size: 12px;
    min-height: 64px;
  }
  .card-bottom {
    display: block;
  }
  .best {
    display: block;
    margin-top: 8px;
  }
  .tag {
    font-size: 8px;
    left: 10px;
    top: 10px;
  }
  .bottom-note {
    gap: 10px;
    padding: 30px 0;
  }
  .bottom-note h3 {
    font-size: 21px;
  }
  .bottom-note p {
    font-size: 12px;
    line-height: 1.7;
  }
  .little-star {
    font-size: 25px;
  }
  footer {
    padding: 20px 6%;
    flex-wrap: wrap;
    gap: 8px;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  #arcade {
    padding: 0 12px;
  }
  .game-header {
    height: 70px;
  }
  .game-header h2 {
    font-size: 22px;
  }
  .hud {
    padding: 16px 4px;
    gap: 8px;
  }
  .hud p {
    font-size: 12px;
  }
  .hud strong {
    font-size: 25px;
  }
  .hud div {
    min-width: 52px;
  }
  .hud span {
    font-size: 8px;
  }
  #board {
    padding: 12px;
    gap: 8px;
  }
  .overlay h2 {
    font-size: 32px;
  }
  .overlay p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
