:root {
  --ink: #e9dcc4;
  --dim: rgba(233, 220, 196, 0.55);
  --warm: #f0a45a;
  --bg: #04060b;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; outline: none; }
body.hover canvas#c { cursor: pointer; }

#title { position: fixed; inset: 0; background: radial-gradient(ellipse 70% 60% at 0% 100%, rgba(2, 3, 8, 0.75), rgba(2, 3, 8, 0) 70%); display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 0 11vh 9vw; cursor: pointer; transition: opacity 1.6s ease; }
#title .card { max-width: 30rem; }
.kicker { margin: 0 0 0.6rem; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--dim); }
h1 { margin: 0; font-weight: 400; font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: 0.01em; line-height: 1; text-shadow: 0 0 40px rgba(240, 164, 90, 0.25); }
.line { margin: 0.9rem 0 1.6rem; font-style: italic; font-size: 1.1rem; color: var(--dim); }
#load { width: 11rem; height: 1px; background: rgba(233, 220, 196, 0.15); position: relative; }
#load span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--warm); transition: width 0.3s; }
.go { margin: 1.2rem 0 0; font-size: 0.95rem; letter-spacing: 0.08em; color: var(--warm); opacity: 0; transition: opacity 1s ease 0.3s; }
body.ready .go { opacity: 1; animation: breathe 3.2s ease-in-out infinite 1.3s; }
body.ready #load { opacity: 0; transition: opacity 0.6s; }
body.started #title { opacity: 0; pointer-events: none; }
@keyframes breathe { 50% { opacity: 0.45; } }

#hint { position: fixed; left: 50%; bottom: 3.2vh; transform: translateX(-50%); text-align: center; font-size: 0.86rem; color: var(--dim); opacity: 0; transition: opacity 2s ease; pointer-events: none; white-space: nowrap; }
#hint p { margin: 0.25rem 0; }
#hint b { font-weight: 400; color: var(--ink); letter-spacing: 0.05em; }
body.started #hint { opacity: 1; }
body.started.hint-off #hint { opacity: 0; }

#caption { position: fixed; left: 50%; top: 8vh; transform: translateX(-50%); font-style: italic; font-size: 1.05rem; color: var(--ink); opacity: 0; transition: opacity 1.2s ease; pointer-events: none; text-shadow: 0 0 18px rgba(0, 0, 0, 0.9); }
#caption.on { opacity: 0.85; }

body.clean #hint, body.clean #caption { display: none; }

@media (max-width: 640px) {
  #title { padding: 0 1.2rem 9vh; background: linear-gradient(to top, rgba(2, 3, 8, 0.8), rgba(2, 3, 8, 0) 45%); }
  #hint { font-size: 0.75rem; white-space: normal; width: calc(100% - 32px); }
}
