@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root { --ink:#26372e; --cream:#f3ead3; --gold:#c88c38; }
* { box-sizing:border-box; }
html, body { width:100%; height:100%; margin:0; overflow:hidden; background:#ddcfaa; color:var(--ink); font-family:"DM Sans",sans-serif; }
#scene, #scene canvas { position:fixed; inset:0; width:100%; height:100%; display:block; }
.brand { position:fixed; z-index:2; top:34px; left:42px; pointer-events:none; }
.brand__eyebrow { display:block; font-size:10px; font-weight:700; letter-spacing:.28em; margin-bottom:5px; opacity:.72; }
.brand h1 { font-size:38px; font-weight:500; letter-spacing:-.04em; line-height:1; margin:0; }
.brand em { color:#a86128; font-family:"Playfair Display",serif; font-weight:600; }
.facts { position:fixed; z-index:2; top:39px; right:42px; display:flex; gap:18px; align-items:center; text-align:right; pointer-events:none; }
.fact { display:flex; flex-direction:column; }
.fact strong { font-size:13px; letter-spacing:.03em; }
.fact span { font-size:9px; text-transform:uppercase; letter-spacing:.13em; opacity:.55; margin-top:2px; }
.rule { width:1px; height:28px; background:rgba(38,55,46,.22); }
.controls { position:fixed; z-index:3; left:42px; bottom:34px; display:flex; align-items:center; gap:12px; padding:10px 15px 10px 10px; border:1px solid rgba(255,255,255,.4); border-radius:50px; background:rgba(243,234,211,.72); backdrop-filter:blur(12px); box-shadow:0 8px 30px rgba(47,44,27,.09); }
#pause { display:grid; place-items:center; width:38px; height:38px; border:0; border-radius:50%; background:var(--ink); color:#fff; cursor:pointer; font-size:13px; }
#pause:hover { transform:scale(1.04); }
.play-icon { display:none; transform:translateX(1px); }
.paused .play-icon { display:inline; }.paused .pause-icon { display:none; }
.control-copy { width:84px; display:flex; flex-direction:column; }
.control-copy b { font-size:10px; letter-spacing:.16em; }
.control-copy span { margin-top:2px; font-size:7px; letter-spacing:.08em; opacity:.55; }
.speed { display:flex; gap:8px; align-items:center; font-size:8px; font-weight:700; letter-spacing:.13em; }
input[type=range] { width:72px; height:2px; accent-color:var(--ink); cursor:pointer; }
.hint { position:fixed; z-index:2; right:42px; bottom:42px; font-size:8px; font-weight:700; letter-spacing:.18em; opacity:.62; pointer-events:none; }
.hint span { padding:0 8px; color:#a86128; }
#loading { position:fixed; z-index:10; inset:0; display:grid; place-content:center; justify-items:center; background:#e4d8b9; transition:opacity .7s ease, visibility .7s; }
#loading span { width:36px; height:36px; border:2px solid rgba(38,55,46,.15); border-top-color:var(--ink); border-radius:50%; animation:spin .8s linear infinite; }
#loading p { font-family:"Playfair Display",serif; font-style:italic; font-size:15px; }
#loading.done { opacity:0; visibility:hidden; }
#error { position:fixed; z-index:20; left:50%; top:50%; translate:-50% -50%; max-width:420px; padding:24px; background:#fff7e5; border-radius:12px; text-align:center; box-shadow:0 12px 50px #705b3d55; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-width:700px) {
  .brand { top:22px; left:22px; }.brand h1 { font-size:30px; }
  .facts { top:auto; right:20px; bottom:88px; }.facts .rule,.facts .fact:nth-child(n+2) { display:none; }
  .controls { left:20px; bottom:20px; }.speed { display:none; }
  .hint { right:20px; bottom:30px; }
}
