* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #05060a;
  --accent: #ffe81f;
  --green: #57ff7a;
  --blue: #4fd6ff;
  --text: #e8ecff;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Press Start 2P', monospace;
  min-height: 100%;
  -webkit-font-smoothing: none;
}
body {
  display: flex;
  justify-content: center;
  padding: 24px 14px calc(40px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

/* fond étoilé */
.stars {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1px 1px at 15% 20%, #fff, transparent),
    radial-gradient(1px 1px at 65% 35%, #fff, transparent),
    radial-gradient(2px 2px at 40% 70%, #cfe3ff, transparent),
    radial-gradient(1px 1px at 80% 55%, #fff, transparent),
    radial-gradient(1px 1px at 25% 85%, #fff, transparent),
    radial-gradient(2px 2px at 90% 80%, #aab8ff, transparent),
    linear-gradient(180deg, #05060a 0%, #0b1020 100%);
}

/* scanlines CRT */
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}

.invite {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px #000, 0 0 40px rgba(255,232,31,.25);
  background: rgba(8,10,20,.92);
  padding: 28px 22px 32px;
  text-align: center;
}

/* crest / sabre */
.crest {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border: 3px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(87,255,122,.4);
}
.crest-saber {
  width: 6px; height: 34px;
  background: linear-gradient(180deg, #d6fff0, var(--green));
  box-shadow: 0 0 10px var(--green);
}

.transmission { font-size: 7px; color: var(--green); letter-spacing: 1px; margin-bottom: 14px; animation: flicker 3s infinite; }
@keyframes flicker { 0%,92%,100%{opacity:1} 94%{opacity:.4} 96%{opacity:.9} }

.invite-title {
  font-size: clamp(16px, 6vw, 26px);
  color: var(--accent);
  line-height: 1.6;
  text-shadow: 0 0 12px rgba(255,232,31,.5);
  margin-bottom: 16px;
}
.invite-greeting { font-size: 8px; line-height: 2; opacity: .9; margin-bottom: 24px; }
.name { color: var(--accent); }

.block {
  border-top: 2px dashed rgba(255,232,31,.25);
  padding: 16px 0 4px;
  text-align: left;
}
.block-title { font-size: 9px; color: var(--blue); margin-bottom: 12px; letter-spacing: 1px; }
.block-line { font-size: 9px; line-height: 1.9; margin-bottom: 4px; }
.block-line.big { font-size: 18px; color: var(--accent); }
.block-line.dim { font-size: 8px; opacity: .65; }

.program { list-style: none; }
.program li {
  font-size: 8px; line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 4px;
}
.program .t {
  display: inline-block;
  min-width: 56px;
  color: var(--green);
  margin-right: 6px;
}
.program b { color: var(--accent); }

.signoff {
  font-size: 8px; color: var(--accent2, #ffe81f);
  margin: 26px 0 22px;
  opacity: .85;
}

.actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.map-btn, .back-btn {
  font-family: inherit; text-decoration: none;
  font-size: 9px; padding: 14px 18px;
  border: 3px solid var(--green); color: var(--green);
  background: #0f2418;
  box-shadow: 0 4px 0 #000;
  display: inline-block; line-height: 1.6;
}
.back-btn { border-color: var(--blue); color: var(--blue); background: #0a1c28; }
.map-btn:active, .back-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #000; }

@media (min-width: 480px) {
  .program .t { min-width: 68px; }
}
