/* Cormorant Garamond and Jost, SIL Open Font License. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/cormorant.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('/fonts/cormorant-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 200 600; font-display: swap; src: url('/fonts/jost.woff2') format('woff2'); }
/* NTT DATA Night 2026, "Epilogue". Black like the invitation site (#050505), champagne accents,
   fine and light letters (Roland, 25/09/2026: "des traits léchés, légers et class"): Cormorant
   Garamond for the words that matter, Jost for the rest. Both are served by the app itself: it must
   run on NTT DATA's servers without reaching any third-party site. */
:root {
  --bg: #050505;
  --bg-2: #101010;
  --bg-3: #1a1a1a;
  --line: #2b2b2b;
  --text: #f4efe6;
  --muted: #a39e94;
  --gold: #d6b97c;
  --gold-2: #f1dfb2;
  --danger: #ff8a7a;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
/* Light background: the phone's setting by default, or the guest's choice (button), or ?theme=light on a screen. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f3ea; --bg-2: #ffffff; --bg-3: #f0eadd; --line: #ddd3c0;
    --text: #1b1813; --muted: #6f675a; --gold: #9a7a3c; --gold-2: #7a5e26; --danger: #b3261e;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f3ea; --bg-2: #ffffff; --bg-3: #f0eadd; --line: #ddd3c0;
  --text: #1b1813; --muted: #6f675a; --gold: #9a7a3c; --gold-2: #7a5e26; --danger: #b3261e;
  color-scheme: light;
}
.theme-btn { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .78rem; color: var(--muted); cursor: pointer; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 350; font-size: 16px; line-height: 1.55; letter-spacing: .01em; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--gold-2); }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }

/* Header */
.top { text-align: center; padding: calc(56px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 50% -20%, rgba(214,185,124,.18), transparent 70%); }
.top .brand { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.top h1 { font-family: var(--serif); font-weight: 300; font-size: 3rem; letter-spacing: .04em; margin: 4px 0 2px; color: var(--gold-2); }
.top .tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0; }
.langs { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: 4px; }
.langs button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: .78rem; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); }

/* Tabs at the bottom, within thumb reach */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 10; backdrop-filter: blur(8px); }
.tabs button { flex: 1; background: none; border: 0; padding: 12px 4px 14px; color: var(--muted); font-size: .9rem; cursor: pointer; border-top: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--gold-2); border-top-color: var(--gold); font-weight: 500; }

/* Cards and text */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
h2 { font-family: var(--serif); font-weight: 300; font-size: 1.8rem; margin: 0 0 10px; color: var(--gold-2); }
h3 { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Programme */
.prog { list-style: none; margin: 0; padding: 0; }
.prog li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prog li:last-child { border-bottom: 0; }
.prog .t { font-variant-numeric: tabular-nums; color: var(--gold); min-width: 52px; font-weight: 500; }
.prog .l { flex: 1; font-family: var(--serif); font-size: 1.15rem; }
.prog .badge { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 999px; padding: 1px 8px; }
.prog li.is-now .l { color: var(--gold-2); }
.facts { display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Forms */
label { display: block; font-size: .85rem; color: var(--muted); margin: 12px 0 4px; }
input[type=text], textarea { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--text); }
input[type=text]:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea.line { font-family: var(--serif); font-size: 1.2rem; min-height: 96px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #111; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 500; letter-spacing: .04em; cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--gold-2); border: 1px solid var(--gold); }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 8px 0 0; }

/* The book */
.book { font-family: var(--serif); }
.book blockquote { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.book blockquote:last-child { border-bottom: 0; }
.book cite { display: block; font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 4px; }
.status { display: inline-block; font-family: var(--sans); font-size: .75rem; margin-top: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.status.approved { border-color: var(--gold); color: var(--gold-2); }

/* Feed */
.post { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; overflow: hidden; }
.post img { display: block; width: 100%; height: auto; background: var(--bg-3); }
.post .body { padding: 12px 14px; }
.post .who { font-weight: 500; }
.post .when { color: var(--muted); font-size: .8rem; margin-left: 6px; font-weight: 400; }
.post p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.reacts button { background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: .9rem; }
.reacts button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); }
.replies { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.replies div { font-size: .92rem; padding: 3px 0; }
.replies b { font-weight: 500; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form input { flex: 1; }
.file-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.file-label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preview { margin-top: 10px; max-width: 160px; border-radius: 10px; display: block; }

.banner { position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; background: #3a2a10; color: var(--gold-2); text-align: center; padding: 6px; font-size: .85rem; z-index: 20; }
/* Secret room */
.sr-pass { font-family: ui-monospace, Consolas, monospace; font-size: 2.6rem; letter-spacing: .25em; text-align: center; color: var(--gold-2); margin: 8px 0; }
.sr-clock { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--gold-2); }
.sr-clock.big { display: block; font-size: 3rem; text-align: center; margin: 4px 0; }
.sr-keys { list-style: none; padding: 0; margin: 0 0 12px; }
.sr-keys li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sr-mark { display: inline-block; width: 1.6em; color: var(--gold); font-weight: 500; }
.tabs button { font-size: .82rem; }

/* NTT DATA logo: one official file, painted white on dark and NTT blue (#0072BC) on light. */
:root { --logo: #ffffff; }
:root[data-theme="light"] { --logo: #0072bc; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --logo: #0072bc; } }
.ntt-logo { width: 150px; height: 31px; margin: 0 auto 10px; background: var(--logo);
  -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat; }
/* Partners, as on the Golf Day (Roland, 25/09: "they moved among themselves", not a scrolling strip).
   Logos on white boxes (guidelines forbid stretching a logo or a coloured ground), a slow shared float,
   and every 30 s the order moves on with a glide. The name stands in until a logo is uploaded. */
.sp-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.sp-cell { flex: none; animation: float 6s ease-in-out infinite; }
.sp-cell:nth-child(5n+2) { animation-delay: -1.2s; }
.sp-cell:nth-child(5n+3) { animation-delay: -2.4s; }
.sp-cell:nth-child(5n+4) { animation-delay: -3.6s; }
.sp-cell:nth-child(5n+5) { animation-delay: -4.8s; }
.spbox { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 54px; background: #fff; border: 1px solid #d9d2c2; border-radius: 10px; padding: 6px 10px; overflow: hidden; text-decoration: none; color: #1b1813; flex: none; transition: transform .2s ease; }
.spbox:active { transform: scale(.96); }
.spbox:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.spbox .spname { font-family: var(--serif); font-size: .85rem; text-align: center; line-height: 1.1; }
.partners-card h3 { text-align: center; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sp-cell { animation: none; } .spbox { transition: none; } }

/* Countdown to the evening, in the header of the first screen */
.countdown { margin: 18px auto 4px; max-width: 420px; }
.cd-units { display: flex; justify-content: center; gap: 10px; }
.cd-unit { min-width: 64px; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.cd-unit b { display: block; font-family: var(--serif); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.cd-unit span { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cd-sub { margin-top: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-line { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); margin-bottom: 6px; }

/* The people of NTT DATA */
.face-today { max-width: 420px; margin: 14px auto 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg-2); }
.ft-k { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ft-row { display: flex; gap: 12px; align-items: flex-start; }
.ft-row b { display: block; }
.ft-row span { display: block; font-size: .8rem; color: var(--muted); }
.ft-row q { display: block; font-family: var(--serif); font-style: italic; font-size: .95rem; margin-top: 4px; quotes: '“' '”'; }
.av, .av-lg { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.av-lg { width: 54px; height: 54px; }
.av-i { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #111; font-weight: 500; font-size: .95rem; letter-spacing: .04em; }
.people .person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people .person:last-child { border-bottom: 0; }
.person .pb { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.person .cap { font-size: .8rem; color: var(--gold-2); }
.person .now-at { color: var(--gold-2); font-weight: 500; }
.person .now-at::before { content: '● '; color: #0072bc; }
.person .met { font-size: .75rem; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.demo-tag { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.stamp { text-align: center; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 2px; }
.stamp b { display: block; font-size: 1.3rem; color: var(--muted); }
.stamp span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stamp.on { border-style: solid; border-color: var(--gold); }
.stamp.on b, .stamp.on span { color: var(--gold-2); }
.sel { width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px; color: var(--text); }
.page2030 .pg-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.pg-text p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; margin: 0 0 8px; }
.pg-author { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pg-author b, .pg-author span { display: block; }
.conc-log { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.conc-log .msg { padding: 8px 12px; border-radius: 12px; max-width: 88%; font-size: .95rem; white-space: pre-wrap; }
.conc-log .me { align-self: flex-end; background: var(--gold); color: #111; }
.conc-log .bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); }
.guard { font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.table-out { margin-top: 10px; }
.table-hit { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; margin-top: 6px; }
.table-hit b { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-2); font-weight: 400; }
.menu .course { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu .course span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.menu .course b { font-family: var(--serif); font-weight: 400; text-align: right; }

.page2030.example { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.page2030.example .pg-text p { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--text); cursor: pointer; text-align: left; }

/* The guest */
.me-name { font-family: var(--serif); font-size: 1.4rem; margin: 0; color: var(--gold-2); }
.vip-tag { display: inline-block; margin-top: 8px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 999px; padding: 2px 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.q-a { border-left: 3px solid var(--gold); padding-left: 10px; font-family: var(--serif); }

/* The surprise DJ: the reveal fills the screen */
.dj-mystery b, .dj-on b { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--gold-2); }
.reveal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(214,185,124,.45), rgba(5,5,5,.96) 60%); animation: rv-in .6s ease-out; }
.rv-in { max-width: 460px; color: #f4efe6; }
.rv-k { letter-spacing: .4em; text-transform: uppercase; font-size: .8rem; color: #d6b97c; }
.rv-name { font-family: var(--serif); font-size: 3.2rem; line-height: 1.1; color: #f1dfb2; margin: 12px 0; animation: rv-pulse 1.6s ease-in-out infinite; }
@keyframes rv-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes rv-pulse { 0%, 100% { text-shadow: 0 0 0 rgba(241,223,178,0); } 50% { text-shadow: 0 0 28px rgba(241,223,178,.7); } }
@media (prefers-reduced-motion: reduce) { .reveal, .rv-name { animation: none; } }

/* Journey into the future */
.journey h2 { margin-top: 6px; }
.j-body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.chat-to { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.chat-item { display: block; width: 100%; text-align: left; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; color: var(--text); cursor: pointer; font: inherit; }
.chat-item span.small { display: block; margin-top: 2px; }
.chat-msgs { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.chat-msg { max-width: 85%; align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; white-space: pre-wrap; }
.chat-msg.mine { align-self: flex-end; border-color: var(--gold); border-radius: 14px 14px 4px 14px; }
.chat-meta { font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.linkish { background: none; border: 0; color: var(--gold-2); cursor: pointer; padding: 0 2px; font: inherit; }
.small-btn { padding: 6px 12px; font-size: .8rem; margin-top: 6px; }
#chatCompose textarea, #chatReply, #chatWho input { width: 100%; box-sizing: border-box; margin: 6px 0; }
#chatReplyForm { align-items: flex-end; gap: 8px; }
.poi-key { display: inline-block; margin-right: 10px; white-space: nowrap; }
.poi-key b { display: inline-block; min-width: 1.6em; text-align: center; border: 1px solid var(--text); border-radius: 4px; padding: 0 4px; font-size: .75em; }
.poi-note { color: var(--muted); font-style: italic; }
.map-hit { cursor: pointer; }
.find-map { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.j-dots { display: flex; gap: 6px; margin: 4px 0 6px; }
.j-dots span { width: 26px; height: 4px; border-radius: 2px; background: var(--line); }
.j-dots span.on { background: var(--gold); height: 7px; margin-top: -1.5px; }
[hidden] { display: none !important; }
/* Room screens (map, big screen): a discreet dark or light switch; ?theme=light|dark also works. */
.screen-theme { position: fixed; top: 10px; left: 10px; z-index: 70; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); cursor: pointer; opacity: .35; }
.screen-theme:hover, .screen-theme:focus { opacity: 1; }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 999px; padding: 0 8px; }
