
  :root { --noir: #2e2526; --brun: #443636; --rouge: #b8404a; --rouge-vif: #d24d58; --creme: #e9e3e3; }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; }
  body {
    font-family: 'Open Sans', system-ui, sans-serif; color: #fff; background: #1a1415;
    display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden;
  }

  /* Fond : image du serveur floutée qui dérive lentement */
  .bg { position: fixed; inset: -40px; background: url('../img/news/1461259375-samagames-elytra.png') center/cover; filter: blur(6px) saturate(1.1); animation: derive 30s ease-in-out infinite alternate; z-index: -2; }
  .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(46,37,38,.55) 0%, rgba(26,20,21,.95) 75%); }
  @keyframes derive { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-20px, -14px); } }

  /* Petits blocs qui montent */
  .cubes { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
  .cubes i { position: absolute; bottom: -20px; width: 10px; height: 10px; background: var(--rouge); opacity: .5; animation: monte linear infinite; }
  @keyframes monte { to { transform: translateY(-110vh) rotate(360deg); opacity: 0; } }

  /* Bandeau + pointe, comme l'original */
  .bandeau { background: var(--noir); position: relative; text-align: center; padding: 12px 16px; text-transform: uppercase; font-weight: 300; letter-spacing: .08em; }
  .bandeau b { color: var(--rouge-vif); font-weight: 600; }
  .bandeau::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border-style: solid; border-width: 30px 40px 0 40px; border-color: var(--noir) transparent transparent transparent; }

  main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 16px 40px; }
  .logo { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); animation: flotte 5s ease-in-out infinite; }
  .opening-title { margin: 0; line-height: 0; }
  @keyframes flotte { 50% { transform: translateY(-10px); } }
  .tagline { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 560px; margin: 18px auto 34px; opacity: .9; }

  .compte { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .case { background: rgba(46,37,38,.85); border-bottom: 4px solid var(--rouge); border-radius: 6px; min-width: 104px; padding: 16px 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .case b { display: block; font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
  .case span { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; opacity: .7; }
  .ouvert { display: none; font-size: 1.6rem; font-weight: 800; text-transform: uppercase; color: var(--rouge-vif); }
  .is-open .compte { display: none; } .is-open .ouvert { display: block; }

  .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
  .btn { padding: 14px 26px; border-radius: 4px; border: 2px solid transparent; font: 700 1rem 'Open Sans', sans-serif; text-transform: uppercase; text-decoration: none; color: #fff; cursor: pointer; transition: transform .15s, filter .2s; }
  .btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
  .btn-discord { background: #5865f2; box-shadow: 0 6px 18px rgba(88,101,242,.4); }
  .btn-ip { background: transparent; border-color: rgba(255,255,255,.7); }
  .btn-ip small { color: var(--rouge-vif); margin-left: 6px; }

  .jeux { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 42px; opacity: .85; }
  .jeux img { width: 44px; height: 44px; image-rendering: pixelated; border-radius: 4px; transition: transform .2s; }
  .jeux img:hover { transform: translateY(-4px) rotate(-4deg); }

  footer { text-align: center; padding: 18px 16px; font-size: .85rem; opacity: .55; }
  .toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); opacity: 0; background: var(--rouge); padding: 12px 22px; border-radius: 4px; font-weight: 600; transition: .3s; pointer-events: none; }
  .toast.show { transform: translate(-50%, 0); opacity: 1; }

  @media (max-width: 520px) { .case { min-width: 72px; padding: 12px 6px 10px; } .compte { gap: 8px; } .case span { font-size: .65rem; letter-spacing: .08em; } }
  @media (prefers-reduced-motion: reduce) { .bg, .logo, .cubes i { animation: none; } }


/* Éléments web inspirés du pack : lignes, accents et repères de lecture. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rouge-vif); outline-offset: 5px; }
.opening-notice { color: #ded4d4; max-width: 520px; font-size: .85rem; margin: 16px auto 0; }
.jeux a { display: block; border-radius: 4px; }
.discover { width: min(820px, 100%); margin: 36px auto 0; }
.discover > h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: #ded4d4; margin: 0 0 24px; }
.discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.discover-link { position: relative; text-decoration: none; text-align: left; color: #fff; padding: 16px 0 10px; border-top: 1px solid rgba(233,227,227,.22); }
.discover-link::before { content: ''; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--space-accent, var(--rouge)); transition: width .2s; }
.discover-link:hover::before { width: 72px; }
.discover-index { color: var(--space-accent); font-size: .7rem; letter-spacing: .12em; }
.discover-link h3 { font-size: .95rem; text-transform: uppercase; margin: 8px 24px 6px 0; font-weight: 800; }
.discover-link p { color: #cbbfc0; font-size: .8rem; line-height: 1.6; margin: 0; }
.discover-arrow { position: absolute; right: 0; top: 42px; color: var(--space-accent); }
.site-link { display: inline-block; color: #e9e3e3; margin-top: 24px; font-size: .85rem; text-underline-offset: 4px; }
.toast { max-width: calc(100vw - 32px); text-align: center; z-index: 10; }
footer a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 520px) {
  .discover { max-width: 360px; }
  .discover-grid { grid-template-columns: 1fr; gap: 0; }
  .discover-link { padding: 18px 28px 18px 36px; }
  .discover-link h3 { margin-top: 0; }
  .discover-index { position: absolute; left: 0; top: 20px; }
  .discover-arrow { top: 24px; }
  .discover-link::before { width: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.opening-guide { max-width:850px; margin:42px auto 0; text-align:left; padding:28px; background:#211a1b99; border-top:2px solid #b8404a; border-radius:6px; }
.opening-guide h2 { font-size:1.15rem; margin:0 0 14px; color:#fff; }
.opening-guide h2:not(:first-child) { margin-top:26px; }
.opening-guide p { font-size:.9rem; color:#e0d3d4; line-height:1.8; }
