@font-face {
  font-family: "Cinzel";
  src: url("./fonts/Cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("./fonts/Cinzel-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("./fonts/Cinzel-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("./fonts/Cinzel-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("./fonts/IMFellEnglish-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("./fonts/IMFellEnglish-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Metamorphous";
  src: url("./fonts/Metamorphous-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Socle commun aux 3 jeux (identite "taverne medievale" partagee). */
  --parchment: #e8d3a0;
  --parchment-dark: #cbaa6f;
  --wood-dark: #2b1a0e;
  --wood: #4a2f1c;
  --wood-light: #6b4526;
  --gold: #c9a349;
  --gold-bright: #e8c874;
  --ink: #2a1a10;

  --font-display: "Metamorphous", serif;
  --font-heading: "Cinzel", serif;
  --font-body: "IM Fell English", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--wood-dark);
  color: var(--parchment);
  font-family: var(--font-body);
}

body {
  background:
    radial-gradient(ellipse at top, rgba(255, 220, 160, 0.06), transparent 55%),
    linear-gradient(180deg, #150c06, var(--wood-dark) 40%, #150c06);
  min-height: 100dvh;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  margin: 0 0 0.5em;
  color: var(--parchment);
}

.wood-panel {
  background-color: var(--wood);
  background-image: linear-gradient(rgba(20, 10, 4, 0.35), rgba(20, 10, 4, 0.55));
  border: 2px solid var(--wood-dark);
  border-radius: 10px;
  box-shadow:
    inset 0 2px 0 rgba(255, 220, 160, 0.08),
    inset 0 -6px 18px rgba(0, 0, 0, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.5);
}

.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.75em 1.6em;
  border-radius: 4px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--wood-light), var(--wood) 70%);
  color: var(--gold-bright);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow:
    0 3px 0 var(--wood-dark),
    0 6px 14px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.15);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 var(--wood-dark),
    0 2px 6px rgba(0, 0, 0, 0.5);
}
