:root {
  --paper: #ecdfb9;
  --paper-alt: #e2d2a6;
  --paper-deep: #cfb87e;
  --ink: #2b1d10;
  --ink-soft: #6b5637;
  --line: #8a6a3f;
  --line-soft: rgba(90, 62, 25, 0.3);
  --accent: #a9711f;
  --accent-deep: #7c4f13;
  --accent-soft: #c98f2e;
  --seal: #7c2415;
  --accent-2: #3f6b45;
  --epic: #6a4fa0;
  --steam: #2f6a8a;
  --ig: #b25a1e;
  --news: #a9821f;
  --sot: #1f6f6a;
  --danger: #7c2415;
  --font-display: 'Pirata One', 'Cinzel', 'Segoe UI', serif;
  --font-heading: 'Cinzel', 'Segoe UI', serif;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Un seul calque de grain (au lieu de deux superposés) : moins cher à peindre, même rendu. */
  background:
    radial-gradient(ellipse 620px 420px at 8% 10%, rgba(120, 88, 34, 0.14), transparent 60%),
    radial-gradient(ellipse 520px 520px at 95% 15%, rgba(120, 88, 34, 0.10), transparent 55%),
    radial-gradient(ellipse 700px 450px at 40% 100%, rgba(90, 62, 20, 0.10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(90, 62, 20, 0.025) 0px, rgba(90, 62, 20, 0.025) 1px, transparent 1px, transparent 5px),
    var(--paper);
  background-attachment: scroll;
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--steam); }

/* ---------- Décor de fond : carte au trésor (îles, route, repères) ---------- */
/* Fixe, derrière tout le contenu, non-interactif. Animations lentes et discrètes
   uniquement — il s'agit d'une ambiance, pas d'un élément qui doit attirer l'œil. */
.treasure-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.treasure-bg svg { width: 100%; height: 100%; display: block; }

.tbg-island {
  fill: var(--line);
  opacity: 0.055;
  animation: tbgFloat 16s ease-in-out infinite;
}
.tbg-island-2 { animation-duration: 20s; animation-delay: -6s; }
.tbg-island-3 { animation-duration: 13s; animation-delay: -3s; opacity: 0.045; }
@keyframes tbgFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.tbg-compass {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.035;
  transform-origin: 800px 450px;
  animation: tbgSpin 240s linear infinite;
}
@keyframes tbgSpin { to { transform: rotate(360deg); } }

/* ---------- Sentiers animés (gouttières gauche/droite) ---------- */
/* Générés en JS (assets/app.js) : chemin aléatoire à virages, différent à chaque
   cycle et à chaque visite. Chaque segment apparaît l'un après l'autre en
   direction d'une croix "trésor" — pas une ligne fixe qui défile. */
.treasure-lane {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 160px;
  z-index: -1;
  pointer-events: none;
  display: none; /* seulement si assez de place, cf. media query plus bas */
}
.treasure-lane-left { left: 0; }
.treasure-lane-right { right: 0; }
.treasure-lane svg { width: 100%; height: 100%; display: block; }

/* Petits points ronds espacés régulièrement le long du chemin = rendu "ligne en
   pointillé" façon carte au trésor, plutôt qu'un trait plein. Chacun apparaît
   avec un léger décalage, donnant l'effet "un après l'autre" en avançant. */
.tbg-dot {
  fill: var(--accent-deep);
  opacity: 0;
  animation: tbgDotIn 0.6s ease-out forwards;
}
@keyframes tbgDotIn {
  from { opacity: 0; }
  to   { opacity: 0.4; }
}

/* Pas de transform ici : la croix utilise l'attribut SVG transform="translate(...)"
   posé en JS pour se positionner ; une animation CSS de "transform" l'écraserait
   entièrement (c'était le bug qui la rendait invisible/mal placée). Seule
   l'opacité est animée. */
.tbg-x {
  stroke: var(--seal);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(124, 36, 21, 0.45));
  animation: tbgXIn 1.2s ease-out forwards;
}
@keyframes tbgXIn {
  0%   { opacity: 0; }
  55%  { opacity: 0.9; }
  100% { opacity: 0.78; }
}

.tbg-trail-out {
  transition: opacity 1.8s ease;
  opacity: 0;
}

@media (min-width: 1550px) {
  .treasure-lane { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .tbg-island, .tbg-compass { animation: none; }
  .treasure-lane { display: none; }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.compass-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  color: currentColor;
  animation: compassWobble 6s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes compassWobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Fond quasi-opaque au lieu d'un backdrop-filter: blur() : ce dernier oblige le
     navigateur à refaire un flou en direct à chaque frame de scroll (très coûteux
     derrière un header sticky) — remplacé par une couleur pleine, même rendu visuel. */
  background: linear-gradient(180deg, rgb(238, 227, 195), rgb(230, 216, 178));
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 10px -4px rgba(43, 29, 16, 0.25);
  will-change: transform;
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
  opacity: 0.4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand-mark .compass-icon { color: var(--accent); }
.brand-mark .accent { color: var(--accent); }
.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding-bottom: 3px;
  transition: color 0.15s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Bannière SteamID (tuto + carte profil) ---------- */
.steam-banner { padding: 28px 0 4px; }
.steam-banner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.howto-box {
  position: relative;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 22px;
  overflow: hidden;
  box-shadow: 0 2px 0 var(--paper-deep), 0 10px 22px -14px rgba(43, 29, 16, 0.4);
}

.howto-box h3 {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.howto-box h3 .compass-icon { font-size: 1.3em; color: var(--accent); }

.howto-gif {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px dashed var(--line-soft);
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  margin-bottom: 14px;
}
.howto-gif video { display: block; width: 100%; border-radius: 6px; }

.replay-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(236, 223, 185, 0.92);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px -3px rgba(43, 29, 16, 0.5);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.replay-btn:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--paper); }

.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 223, 185, 0.92);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 1rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 3px 10px -3px rgba(43, 29, 16, 0.5);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.zoom-btn:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--paper); }

/* ---------- Fenêtre "zoom vidéo" (imitation plein écran) ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 7, 3, 0.88);
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 98vw;
  height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-slot { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.video-modal-slot video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px -10px rgba(0, 0, 0, 0.6);
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.video-modal-close:hover { border-color: var(--accent); color: var(--accent-deep); }

.img-modal-inner {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 900px);
  text-align: center;
}
.img-modal-inner img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 24px 70px -10px rgba(0, 0, 0, 0.6);
  background: var(--paper-deep);
}
.img-modal-inner figcaption { color: var(--paper); margin-top: 10px; font-family: var(--font-heading); }
.img-modal-close { top: -46px; right: 0; }

body.modal-open { overflow: hidden; }

.howto-steps {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.howto-steps strong { color: var(--ink); }

.profile-card {
  position: relative;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 2px 0 var(--paper-deep), 0 10px 22px -14px rgba(43, 29, 16, 0.4);
  transition: border-color 0.3s;
}
.profile-card.linked { border-color: var(--accent); }
.profile-card.error { border-color: var(--seal); }

.profile-frame {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent), #f0dfa0, var(--accent-soft), #5b3d10, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: spinFrame 5s linear infinite;
  transition: opacity 0.3s;
}
.profile-card.linked .profile-frame::before { opacity: 1; }
.profile-card.loading .profile-frame::before { animation-duration: 0.9s; }
.profile-card.error .profile-frame::before {
  background: conic-gradient(from 0deg, var(--seal), #3a0f09, var(--seal));
  opacity: 0.8;
}
@keyframes spinFrame { to { transform: rotate(360deg); } }

#steam-avatar {
  position: relative;
  z-index: 1;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--paper-alt);
}

.profile-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  transition: color 0.3s;
}
.profile-card.linked .profile-name { color: var(--accent-deep); }
.profile-card.error .profile-name { color: var(--seal); }
.profile-hint { font-size: 0.8rem; color: var(--ink-soft); }

.profile-id64-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  max-width: 100%;
}
.profile-id64-row code {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.profile-id64-row button {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.68rem;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.profile-id64-row button:hover { color: var(--accent-deep); border-color: var(--accent); }

@media (max-width: 720px) {
  .steam-banner-grid { grid-template-columns: 1fr; }
}

/* Panels */
.panel {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 80px;
  /* Le navigateur saute le calcul de mise en page/peinture des sections hors écran
     tant qu'on ne défile pas jusqu'à elles — gros gain de fluidité sur une page aussi
     longue (Wishlist + TARGET + Epic + Steam + Instant Gaming + Sorties). */
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.panel:last-of-type { border-bottom: none; }

.panel h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ink);
  margin: 0 0 6px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px dashed var(--line-soft);
}

.sub-heading {
  margin-top: 30px;
  font-size: 1rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: var(--paper);
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
  padding: 2px 9px;
  border-radius: 4px;
}
.pill-epic { color: var(--epic); border-color: var(--epic); }
.pill-steam { color: var(--steam); border-color: var(--steam); }
.pill-ig { color: var(--ig); border-color: var(--ig); }
.pill-news { color: var(--news); border-color: var(--news); }
.pill-sot { color: var(--sot); border-color: var(--sot); }

.hint { color: var(--ink-soft); font-size: 0.88rem; margin: 6px 0 16px; }
.hint code { background: var(--paper-alt); border: 1px solid var(--line-soft); padding: 1px 5px; border-radius: 4px; color: var(--accent-deep); }
.muted { color: var(--ink-soft); font-size: 0.85rem; }

/* Wishlist form */
.input-row { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.input-row input[type="text"] {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-row input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.input-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(169, 113, 31, 0.18); }
.input-row button {
  position: relative;
  overflow: hidden;
  padding: 10px 22px;
  background: linear-gradient(160deg, var(--accent), var(--accent-deep));
  color: var(--paper);
  border: 1px solid var(--accent-deep);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 var(--accent-deep), 0 6px 14px -6px rgba(43, 29, 16, 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}
.input-row button::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.input-row button:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--accent-deep), 0 4px 10px -6px rgba(43, 29, 16, 0.5); }
.input-row button:hover::after { left: 130%; }

.status { font-size: 0.9rem; margin-bottom: 10px; min-height: 1.3em; }
.status.error { color: var(--seal); }
.status.loading { color: var(--ink-soft); }
.status.ok { color: var(--accent-2); }

.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.filter-row select {
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 0 var(--paper-deep);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 2px 0 var(--paper-deep), 0 14px 26px -16px rgba(169, 113, 31, 0.5);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
}

.game-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }

.price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 0.88rem; }
.price-orig { color: var(--ink-soft); text-decoration: line-through; }
.price-final { font-weight: 700; color: var(--accent-2); }
.discount-badge {
  background: var(--accent-2);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.free-badge {
  background: var(--accent-2);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.date-note { font-size: 0.78rem; color: var(--ink-soft); }
.platform-tag { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }

.empty-note { color: var(--ink-soft); font-size: 0.9rem; padding: 10px 0; }

/* TARGET (jeux surveillés) */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.target-card {
  position: relative;
  display: flex;
  gap: 12px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 2px 0 var(--paper-deep);
}
.target-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  flex-shrink: 0;
}
.target-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.target-title { font-weight: 700; font-size: 0.92rem; line-height: 1.25; padding-right: 20px; }
.target-best { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; flex-wrap: wrap; }
.target-best strong { color: var(--accent-2); }
.target-best .pill { text-decoration: none; }
.target-others { display: flex; flex-direction: column; gap: 2px; font-size: 0.76rem; color: var(--ink-soft); }
.target-error { color: var(--seal); }
.target-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.target-remove:hover { color: var(--seal); border-color: var(--seal); }

/* News */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  display: flex;
  gap: 14px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--paper-deep);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.news-item:hover { border-color: var(--news); box-shadow: 0 2px 0 var(--paper-deep), 0 10px 22px -16px rgba(169, 130, 31, 0.4); }
.news-item img { width: 130px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #000; }
.news-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-item-title { font-weight: 600; font-size: 0.95rem; }
.news-item-desc { font-size: 0.85rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-item-meta { font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; }

/* Bouton Sea of Thieves dans la navigation */
.site-nav a.nav-sot {
  color: var(--paper);
  background: var(--sot);
  border: 1.5px solid #164f4b;
  border-radius: 6px;
  padding: 2px 10px;
}
.site-nav a.nav-sot::after { display: none; }
.site-nav a.nav-sot:hover { color: var(--paper); background: #164f4b; }

/* Sea of Thieves : bloc compact (drops Twitch en haut, MAJ + serveurs en dessous) */
.sot-panel h2 { border-bottom-color: rgba(31, 111, 106, 0.35); }
.sot-box {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sot);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 0 var(--paper-deep);
  min-width: 0;
}
.sot-drops { margin: 16px 0; }
.sot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sot-box-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sot-ext { font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.75rem; font-weight: 400; color: var(--sot); }
.sot-list { display: flex; flex-direction: column; gap: 8px; }
.sot-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  transition: border-color 0.15s;
}
a.sot-item:hover { border-color: var(--sot); }
.sot-item-meta { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sot-item-title { display: block; font-weight: 600; font-size: 0.88rem; line-height: 1.3; margin-top: 2px; }
.sot-item-desc { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 3px; }
.sot-type { font-weight: 700; color: var(--sot); }
.sot-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.sot-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sot);
  border: 1px solid var(--sot);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(31, 111, 106, 0.07);
}
.sot-live { color: var(--seal); font-weight: 700; }
.sot-rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.sot-reward { text-align: center; font-size: 0.75rem; line-height: 1.25; }
.sot-reward img,
.sot-reward-ph {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
  margin: 0 auto 4px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
  cursor: zoom-in;
  transition: transform 0.15s;
}
.sot-reward img:hover { transform: scale(1.06); }
.sot-reward-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--sot);
  opacity: 0.55;
  cursor: default;
}
.sot-reward small { display: block; color: var(--ink-soft); }
.sot-last-update {
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
}
.sot-last-update:empty { display: none; }
.sot-last-update a { color: var(--sot); font-weight: 600; }
.sot-status { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.sot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }
.sot-status.warn .sot-dot { background: var(--seal); }
.sot-status.unknown .sot-dot { background: var(--ink-soft); }
.sot-links { font-size: 0.78rem; color: var(--ink-soft); }
.sot-links a { color: var(--sot); }
.sot-empty { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) {
  .sot-grid { grid-template-columns: 1fr; }
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 600px) {
  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: 160px; }
}
