@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Unbounded:wght@400;600;800&display=swap');

:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body, .experience { min-height: 100%; margin: 0; }
body { background: #f518c9; color: #f8f7ff; font-family: 'DM Mono', monospace; overflow: hidden; }
button, input { font: inherit; }
.experience { height: 100svh; isolation: isolate; position: relative; overflow: hidden; }
#portal { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.grain { pointer-events: none; position: absolute; inset: 0; z-index: 1; opacity: .14; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E"); }
.dream-copy { position: absolute; z-index: 2; top: 50%; left: clamp(1.5rem, 6vw, 5.5rem); width: min(88vw, 44rem); transform: translateY(-50%); text-align: left; pointer-events: none; mix-blend-mode: screen; }
.dream-copy p { margin: 0 0 .95rem; color: #fff; font-size: clamp(.66rem, 1vw, .82rem); letter-spacing: .35em; text-shadow: 0 0 12px #002dff; }
.dream-copy h1 { margin: 0; color: #fff; font-family: 'Unbounded', sans-serif; font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .86; letter-spacing: -.105em; font-weight: 800; text-shadow: .025em .025em 0 #fc12bf, -.025em -.025em 0 #00f0ff, 0 0 .28em #fff; }
.dream-copy span { display: block; margin-top: 1.15rem; color: #d7ff2d; font-family: 'Unbounded', sans-serif; font-size: clamp(1.2rem, 2vw, 2rem); text-shadow: 0 0 12px #7cff00; }
.topbar, .intro, footer, .control-panel { position: relative; z-index: 2; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.4rem 1.55rem; }
.brand { color: #244aff; text-decoration: none; filter: drop-shadow(0 0 10px #79d0ff); }
.brand span { display: block; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(1.32rem, 2.4vw, 2.35rem); letter-spacing: -.14em; -webkit-text-stroke: 1px currentColor; color: transparent; }
.brand small { display: block; margin-top: .22rem; color: #4847f7; font-size: .62rem; letter-spacing: .04em; }
.menu-button { width: 2.55rem; height: 2.55rem; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(25,9,62,.72); backdrop-filter: blur(16px); display: grid; place-content: center; gap: .25rem; cursor: pointer; transition: transform .25s, background .25s; }
.menu-button:hover { transform: rotate(90deg); background: #20114c; }
.menu-button i { width: .83rem; height: 1px; background: white; display: block; }
.intro { position: absolute; top: 48%; left: clamp(1.55rem, 6vw, 5.5rem); transform: translateY(-42%); max-width: 32rem; mix-blend-mode: screen; pointer-events: none; }
.eyebrow { margin: 0 0 1.1rem; font-size: .65rem; letter-spacing: .18em; color: #fff79d; }
h1 { margin: 0; font-family: 'Unbounded', sans-serif; font-size: clamp(2.7rem, 6vw, 6.9rem); letter-spacing: -.12em; line-height: .93; font-weight: 800; text-shadow: 2px 2px 0 #ef00d3, -2px -2px 0 #00d5ff; }
h1 em { color: #d5ff37; font-style: normal; }
.instruction { margin: 1.5rem 0 0 .15rem; font-size: clamp(.73rem, 1.1vw, .9rem); line-height: 1.6; color: white; }
footer { position: absolute; left: 1.55rem; right: 1.55rem; bottom: 1.3rem; display: flex; justify-content: space-between; align-items: center; font-size: .6rem; letter-spacing: .12em; text-shadow: 0 1px 7px #310137; }
footer button { padding: .35rem .65rem; background: rgba(13,3,44,.35); color: white; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; cursor: pointer; transition: background .2s; }
footer button:hover { background: rgba(13,3,44,.73); }
.pause-icon { margin-right: .27rem; }
.control-panel { position: absolute; z-index: 4; top: 5.6rem; right: 1.55rem; width: min(21rem, calc(100vw - 3.1rem)); padding: 1rem 1rem 1.1rem; border: 1px solid rgba(255,255,255,.45); background: rgba(18, 5, 55, .7); backdrop-filter: blur(24px) saturate(140%); transform: translateX(calc(100% + 2rem)); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.2,1), opacity .25s; }
.control-panel.open { transform: translateX(0); opacity: 1; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; color: #e6ff61; font-size: .67rem; letter-spacing: .1em; }
.panel-heading button { border: 0; background: transparent; color: white; font-size: 1.45rem; cursor: pointer; line-height: 1; }
label { display: grid; grid-template-columns: 1fr auto; gap: .55rem; padding: .7rem 0; color: #fff; font-size: .7rem; letter-spacing: .1em; }
output { color: #80f5ff; }
input[type='range'] { grid-column: 1 / -1; width: 100%; height: 4px; appearance: none; border-radius: 99px; background: linear-gradient(90deg, #b9ff00, #00eaff, #fa00d7); outline-offset: 5px; }
input[type='range']::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; background: #25104e; cursor: grab; }
.randomize { width: 100%; margin-top: 1.15rem; padding: .75rem; border: 1px solid #d6ff22; background: #d6ff22; color: #210b47; font-size: .68rem; font-weight: 500; letter-spacing: .12em; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.randomize:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #ff37d0; }
.randomize span { float: right; font-size: 1rem; line-height: .5; }
@media (max-width: 620px) { .dream-copy { left: 1.15rem; width: calc(100vw - 2.3rem); } .topbar { padding: 1.1rem; } .brand span { font-size: 1.45rem; } .intro { left: 1.15rem; top: 53%; } footer { left: 1.1rem; right: 1.1rem; bottom: 1rem; } footer > span:first-child { display: none; } .control-panel { top: 4.7rem; right: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
