/* Styles of ezelia.com. A night sky in Germy's pink; the game cards keep Germiz's own aqua. */

@font-face {
  font-family: 'Lilita One';
  src: url('fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --night: #130926;
  --plum: #1f1040;
  --panel: #2b1754;
  --panel-dark: #21103f;
  --line: rgba(255, 255, 255, 0.16);
  --ink: #fff7fc;
  --ink-soft: #cfc1ea;
  --pink: #ff5fb8;
  --pink-light: #ff8fd0;
  --pink-dark: #b8257a;
  --gold: #ffd98a;
  --title: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --text: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* The two languages are both in the page: the one <html> does not name is hidden. */
html[lang='en'] [lang='fr'],
html[lang='fr'] [lang='en'] {
  display: none;
}

html {
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(255, 95, 184, 0.34) 0%, rgba(255, 95, 184, 0) 70%),
    radial-gradient(46% 34% at 0% 46%, rgba(46, 224, 240, 0.16) 0%, rgba(46, 224, 240, 0) 70%),
    radial-gradient(46% 34% at 100% 70%, rgba(155, 95, 255, 0.2) 0%, rgba(155, 95, 255, 0) 70%),
    linear-gradient(180deg, var(--plum) 0%, var(--night) 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.wrap {
  width: min(980px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- Bubbles drifting up behind everything ---------- */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bubbles img {
  position: absolute;
  bottom: -110px;
  opacity: 0.22;
  animation: rise linear infinite;
}

.bubbles img:nth-child(1) { left: 6%; width: 34px; animation-duration: 21s; animation-delay: -3s; }
.bubbles img:nth-child(2) { left: 17%; width: 72px; animation-duration: 29s; animation-delay: -14s; }
.bubbles img:nth-child(3) { left: 31%; width: 26px; animation-duration: 18s; animation-delay: -9s; }
.bubbles img:nth-child(4) { left: 46%; width: 48px; animation-duration: 25s; animation-delay: -20s; }
.bubbles img:nth-child(5) { left: 61%; width: 30px; animation-duration: 19s; animation-delay: -6s; }
.bubbles img:nth-child(6) { left: 72%; width: 84px; animation-duration: 32s; animation-delay: -25s; }
.bubbles img:nth-child(7) { left: 84%; width: 40px; animation-duration: 23s; animation-delay: -12s; }
.bubbles img:nth-child(8) { left: 93%; width: 58px; animation-duration: 27s; animation-delay: -17s; }

@keyframes rise {
  to {
    transform: translateY(-125vh) rotate(40deg);
  }
}

/* ---------- Top bar: the two languages ---------- */
.top {
  display: flex;
  justify-content: flex-end;
  padding-block: 14px;
}

.langs {
  display: flex;
  background: rgba(10, 4, 24, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.langs a {
  font: 700 14px var(--text);
  color: var(--ink-soft);
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 7px 12px;
  min-width: 44px;
}

.langs a:hover {
  color: #fff;
}

.langs a[aria-current] {
  background: #fff;
  color: var(--panel-dark);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 8px 0 56px;
}

/* The studio's logo, its name included. Its head is black: a soft light behind it keeps it apart
   from the night sky. */
.logo {
  position: relative;
  width: min(360px, 78vw);
  margin: 0 auto;
}

.logo::before {
  content: '';
  position: absolute;
  inset: -4% 6% 22%;
  background: radial-gradient(closest-side, rgba(255, 220, 240, 0.34), rgba(255, 220, 240, 0));
  z-index: -1;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 14px rgba(10, 4, 24, 0.55));
}

.tagline {
  font-family: var(--title);
  font-size: clamp(23px, 3.8vw, 36px);
  line-height: 1.2;
  margin: 18px auto 12px;
  max-width: 18em;
  color: #fff;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 0 auto 30px;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font-family: var(--title);
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(120, 10, 70, 0.6);
  padding: 8px 26px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8fd0 0%, var(--pink) 45%, #ee3d9d 100%);
  border: 3px solid #fff;
  box-shadow:
    0 5px 0 var(--pink-dark),
    0 12px 18px rgba(10, 4, 24, 0.45);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 var(--pink-dark),
    0 16px 22px rgba(10, 4, 24, 0.45);
}

.button:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 var(--pink-dark),
    0 4px 8px rgba(10, 4, 24, 0.45);
}

.button.big {
  font-size: clamp(27px, 4.6vw, 38px);
  padding: 12px 42px 16px;
  border-width: 4px;
  box-shadow:
    0 8px 0 var(--pink-dark),
    0 18px 26px rgba(10, 4, 24, 0.5);
}

.button.big:hover {
  box-shadow:
    0 10px 0 var(--pink-dark),
    0 22px 30px rgba(10, 4, 24, 0.5);
}

.button.big:active {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 var(--pink-dark),
    0 6px 12px rgba(10, 4, 24, 0.5);
}

/* ---------- The games ---------- */
.games {
  padding-bottom: 56px;
}

.games h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  text-align: center;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel-dark));
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(10, 4, 24, 0.45);
  overflow: hidden;
}

/* The pictures are the games' own: Germiz's water, its logo and its pieces. */
.art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 45%, #2ef0f7 0%, #1fb4cf 45%, #12779a 100%);
  overflow: hidden;
}

.art-germiz img {
  width: 76%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(4, 45, 60, 0.35));
  transition: transform 0.2s ease;
}

.card:hover .art-germiz img,
.card:hover .board {
  transform: scale(1.04);
}

.board {
  position: relative;
  display: block;
  width: 82%;
  aspect-ratio: 3.8 / 2.215;
  transition: transform 0.2s ease;
}

.board img {
  position: absolute;
  display: block;
  height: auto;
}

/* Flat-topped cells in columns, every other column half a cell lower; rows further down come later and overlap. */
.board img:nth-child(1) { left: 0.53%; top: 3.16%; width: 25.26%; }
.board img:nth-child(2) { left: 3.68%; top: 3.16%; width: 18.95%; }
.board img:nth-child(3) { left: 36.84%; top: 0%; width: 26.32%; }
.board img:nth-child(4) { left: 74.21%; top: 3.16%; width: 25.26%; }
.board img:nth-child(5) { left: 77.37%; top: 3.16%; width: 18.95%; }
.board img:nth-child(6) { left: 18.42%; top: 18.28%; width: 26.32%; }
.board img:nth-child(7) { left: 55.79%; top: 21.44%; width: 25.26%; }
.board img:nth-child(8) { left: 0.53%; top: 39.73%; width: 25.26%; }
.board img:nth-child(9) { left: 37.37%; top: 39.73%; width: 25.26%; }
.board img:nth-child(10) { left: 74.21%; top: 39.73%; width: 25.26%; }
.board img:nth-child(11) { left: 18.95%; top: 58.01%; width: 25.26%; }
.board img:nth-child(12) { left: 25.26%; top: 63.88%; width: 12.63%; }
.board img:nth-child(13) { left: 55.79%; top: 58.01%; width: 25.26%; }
.board img:nth-child(14) { left: 58.95%; top: 58.01%; width: 18.95%; }

/* The piece about to be placed. */
.board .ghost {
  opacity: 0.6;
  animation: ghost 1.6s ease-in-out infinite;
}

@keyframes ghost {
  50% {
    opacity: 0.25;
  }
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex: 1;
  padding: 18px 20px 24px;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  font-size: 32px;
  line-height: 1.1;
}

.card-body > p:not(.kicker) {
  color: var(--ink-soft);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.card .button {
  margin-top: auto;
}

/* ---------- Footer ---------- */
footer {
  padding: 26px 0 34px;
  background: rgba(10, 4, 24, 0.5);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.foot-name {
  font-family: var(--title);
  font-size: 24px;
  color: var(--ink);
}

footer a {
  margin-inline-start: 8px;
  color: var(--pink-light);
  text-underline-offset: 3px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .hero {
    padding-bottom: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles img,
  .board .ghost {
    animation: none;
  }

  .button,
  .art-germiz img,
  .board {
    transition: none;
  }
}
