/* The main page's own look, over tapis.css: its title, the fan of game
   cards, and each game's card face. */

.title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  font: 700 clamp(38px, 11vw, 66px) / 1 var(--ui);
  letter-spacing: 0.04em;
  animation: sway 3.2s ease-in-out infinite;
}

.title span { color: #fff; text-shadow: 0 5px 0 #a3332c, 0 9px 0 rgba(0, 0, 0, 0.35); }
.title span:last-child { color: #ffe066; text-shadow: 0 5px 0 #a86b00, 0 9px 0 rgba(0, 0, 0, 0.35); }
.title small { font-size: 0.42em; color: #dcefe4; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4); }

@keyframes sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-4px); }
}

#jeux-cards { width: min(460px, 100%); height: clamp(170px, 32dvh, 250px); flex-shrink: 0; }

.panel p.about { font-size: 13px; opacity: 0.75; margin-top: -4px; }

@media (orientation: landscape) and (max-height: 520px) {
  .menu .title { grid-row: 1; font-size: clamp(30px, min(12dvh, 6vw), 56px); }
  .menu #jeux-cards { grid-row: 2; height: clamp(110px, 48dvh, 200px); }
}

/* ------------------------------------------------------------- game cards */

.front.jeu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8%;
  color: var(--ink);
}

/* Soc en Sac: its title, a green diamond, three of its words. */
.jeu-0 { --lv: #2f9e44; }

.jeu .j-name {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font: 700 calc(var(--cw) * 0.17) / 1 var(--ui);
  letter-spacing: 0.03em;
}

.jeu .j-name b:first-child { color: #c8423a; }
.jeu .j-name b:last-child { color: #c98a00; }
.jeu .j-name small { font-size: 0.55em; color: #5c6b66; }

.jeu .j-dia {
  width: 15%;
  aspect-ratio: 1;
  background: var(--lv);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.jeu .j-sub { font: 700 calc(var(--cw) * 0.12) / 1 var(--read); color: #5c6b66; }

/* Rummikub: its name, then a série and a suite on little tiles. */
.c-noir { --tc: #1d1d1f; }
.c-rouge { --tc: #e03131; }
.c-bleu { --tc: #1c7ed6; }
.c-orange { --tc: #f08c00; }

.jeu .j-word { font: 700 calc(var(--cw) * 0.15) / 1 var(--ui); color: #c8423a; letter-spacing: 0.02em; }
.jeu .j-tiles { display: flex; gap: 4%; width: 100%; justify-content: center; }

.jeu .j-tiles b {
  width: 22%;
  padding: 6% 0 8%;
  text-align: center;
  font: 700 calc(var(--cw) * 0.15) / 1 var(--ui);
  color: var(--tc);
  border-radius: calc(var(--cw) * 0.03);
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px #d6ccb4, 0 calc(var(--cw) * 0.015) 0 rgba(0, 0, 0, 0.25);
}
