inside-the-router / src /styles.css
misalignedandmad's picture
Clarify prompt and token provenance
1e9146f verified
Raw History Blame Contribute Delete
19 kB
@import url("./tokens.css");
* { box-sizing: border-box; }
:root { color-scheme: dark; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #03040a; color: var(--bone); font-family: var(--sans); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#atmosphere { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 64% 43%, rgba(70, 91, 154, .12), transparent 31%), radial-gradient(circle at 14% 72%, rgba(255, 172, 93, .07), transparent 26%), linear-gradient(90deg, rgba(2, 3, 9, .84) 0%, transparent 43%, rgba(2, 3, 9, .18) 70%, rgba(2, 3, 9, .74) 100%); }
#grain { position: fixed; inset: -50%; pointer-events: none; opacity: .035; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); animation: grain .22s steps(2) infinite; }
.masthead { position: fixed; z-index: 9; inset: 0 0 auto; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 30px; border-bottom: 1px solid rgba(219, 224, 235, .1); background: linear-gradient(180deg, rgba(3, 4, 10, .94), rgba(3, 4, 10, .12)); backdrop-filter: blur(2px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; font: 700 10px/1 var(--sans); letter-spacing: .25em; }
.brand-mark { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(113, 222, 255, .56); border-radius: 50%; box-shadow: inset 0 0 14px rgba(113, 222, 255, .18), 0 0 18px rgba(113, 222, 255, .18); }
.brand-mark i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 4px rgba(255, 190, 106, .4); }
.runtime { justify-self: center; display: flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid rgba(219, 224, 235, .12); border-radius: 40px; background: rgba(7, 9, 20, .56); color: #9ca2b4; font: 700 9px/1 var(--mono); letter-spacing: .13em; }
.runtime-light { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px var(--cyan); }
.runtime.live .runtime-light { background: #6fffc1; box-shadow: 0 0 12px #6fffc1; }
.runtime.recorded .runtime-light { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.runtime.simulated .runtime-light { background: #a795ff; box-shadow: 0 0 12px #a795ff; }
.model-label { justify-self: end; color: #6f7487; font: 600 9px/1 var(--mono); letter-spacing: .16em; }
.welcome { position: fixed; z-index: 7; left: clamp(28px, 6vw, 96px); top: 50%; transform: translateY(-45%); width: min(690px, calc(100vw - 56px)); transition: opacity .8s ease, transform 1.1s cubic-bezier(.2,.8,.2,1), filter .8s; }
.welcome.hidden { opacity: 0; transform: translate(-60px, -45%) scale(.97); filter: blur(8px); pointer-events: none; }
.eyebrow { margin: 0; color: var(--cyan); font: 700 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 22px 0 30px; font: 400 clamp(56px, 7.4vw, 116px)/.78 var(--serif); letter-spacing: -.06em; text-wrap: balance; }
h1 em { color: transparent; font-style: italic; -webkit-text-stroke: 1px rgba(235, 239, 248, .74); text-shadow: 0 0 44px rgba(112, 218, 255, .11); }
.lede { width: min(590px, 94%); color: #babecb; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.55; letter-spacing: .005em; }
.prompt-field { position: relative; width: min(660px, 100%); margin-top: 32px; padding: 15px 17px 13px; border: 1px solid rgba(113,222,255,.36); background: rgba(5,9,18,.68); box-shadow: 0 16px 44px rgba(0,0,0,.22), inset 0 0 30px rgba(113,222,255,.035); }
.prompt-field label { display: block; margin-bottom: 10px; color: var(--cyan); font: 800 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.prompt-field textarea { display: block; width: 100%; resize: vertical; border: 0; outline: 0; color: #f2f3f6; background: transparent; font-size: 18px; line-height: 1.45; }
.prompt-beam { position: absolute; bottom: -1px; left: 0; width: 16%; height: 1px; background: var(--cyan); box-shadow: 0 0 14px 2px rgba(113, 222, 255, .5); transition: width .45s ease; }
.prompt-field:focus-within .prompt-beam { width: 100%; }
.prompt-help { width: min(650px, 100%); margin: 10px 0 0; color: #858c9d; font-size: 12px; line-height: 1.5; }
.welcome-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
button { cursor: pointer; border: 1px solid rgba(219, 224, 235, .16); background: rgba(7, 9, 19, .54); min-height: 44px; padding: 0 16px; transition: border-color .2s, background .2s, color .2s, transform .2s; backdrop-filter: blur(12px); }
button:hover { border-color: rgba(113, 222, 255, .7); background: rgba(70, 220, 255, .08); transform: translateY(-2px); }
button:disabled { cursor: wait; opacity: .62; }
.primary { min-width: 235px; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 0 18px; background: #edf0f4; color: #070811; border-color: #edf0f4; font-size: 12px; font-weight: 800; }
.primary i { font-style: normal; font-size: 17px; }
.sound-button { color: #b1b5c4; font-size: 11px; }
.sound-glyph { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border: 1px solid rgba(113, 222, 255, .45); border-radius: 50%; color: var(--cyan); }
.sound-button[aria-pressed="true"] .sound-glyph { background: var(--cyan); color: #050610; box-shadow: 0 0 16px rgba(113, 222, 255, .55); }
.truth { width: min(590px, 100%); margin-top: 16px; color: #666c7e; font: 10px/1.55 var(--mono); }
.journey { position: fixed; z-index: 6; left: 20px; bottom: 38px; width: min(500px, calc(100vw - 40px)); padding: 12px 10px 4px; background: linear-gradient(90deg, rgba(3,4,10,.94) 0%, rgba(3,4,10,.8) 74%, transparent 100%); opacity: 0; transform: translateY(30px); pointer-events: none; transition: .65s ease; }
.journey.visible { opacity: 1; transform: none; pointer-events: auto; }
.stage-meta { display: flex; justify-content: space-between; color: #8d94a6; font: 700 11px/1 var(--mono); letter-spacing: .14em; }
.stage-meta span:last-child { color: var(--cyan); }
.journey h2 { margin: 11px 0 10px; font: 400 clamp(35px, 3.5vw, 49px)/.94 var(--serif); letter-spacing: -.042em; }
.journey > p { max-width: 470px; margin: 0; color: #b1b6c4; font-size: 15px; line-height: 1.58; }
.layer-meter { position: relative; width: 100%; height: 1px; margin: 20px 0 14px; background: rgba(219, 224, 235, .16); }
.layer-meter span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); box-shadow: 0 0 13px rgba(113, 222, 255, .5); transition: width .55s ease; }
.layer-meter i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 13px var(--cyan); transform: translateX(-3px); transition: left .55s ease; }
.journey-actions { display: flex; gap: 7px; }
.journey-actions button { min-width: 42px; min-height: 38px; padding: 0 12px; font: 700 10px/1 var(--mono); }
.journey-actions #free-look { margin-left: auto; }
.inspector { position: fixed; z-index: 6; top: 102px; right: 30px; width: 290px; padding: 18px 0 0 20px; border-left: 1px solid rgba(219, 224, 235, .15); opacity: 0; transform: translateX(24px); pointer-events: none; transition: .65s ease .12s; }
.inspector.visible { opacity: 1; transform: none; pointer-events: auto; }
.inspector h3 { margin: 13px 0 11px; font: 400 31px/1 var(--serif); letter-spacing: -.02em; }
.inspector > p:not(.eyebrow) { margin: 0; color: #a4aabb; font-size: 13px; line-height: 1.58; }
dl { margin: 20px 0 0; }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(219, 224, 235, .11); }
dt { color: #777f91; font: 700 10px/1.2 var(--mono); letter-spacing: .12em; }
dd { margin: 0; color: var(--amber); font: 700 12px/1.2 var(--mono); text-align: right; }
.decode { position: fixed; z-index: 6; right: 30px; bottom: 170px; width: min(500px, calc(100vw - 60px)); padding: 16px 18px 18px; border: 1px solid rgba(219, 224, 235, .13); background: linear-gradient(135deg, rgba(7, 9, 19, .8), rgba(7, 9, 19, .36)); backdrop-filter: blur(20px); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .6s ease; }
.decode.visible { opacity: 1; transform: none; }
.decode-heading { display: flex; justify-content: space-between; color: #707689; font: 700 8px/1 var(--mono); letter-spacing: .15em; }
.decode-heading span:first-child { color: var(--amber); }
.decode p { margin: 12px 0 0; max-height: 94px; overflow: auto; color: #d4d7df; font: 400 14px/1.55 var(--serif); }
.math-panel { position: fixed; z-index: 6; left: 20px; top: 188px; width: min(700px, calc(100vw - 40px)); padding: 10px; background: linear-gradient(90deg, rgba(3,4,10,.94) 0%, rgba(3,4,10,.78) 80%, transparent 100%); opacity: 0; transform: translateY(-14px); pointer-events: none; transition: .55s ease; }
.math-panel.visible { opacity: 1; transform: none; }
.math-head { display: flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid rgba(219,224,235,.15); color: var(--cyan); font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.math-head span:last-child { color: #62697c; }
.math-explain { max-width: 620px; margin: 0; color: #aeb4c3; font-size: 13px; line-height: 1.55; }
.lesson-beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 14px 0 12px; }
.lesson-beats div { padding-top: 8px; border-top: 1px solid rgba(219,224,235,.13); }
.lesson-beats small { display: block; margin-bottom: 6px; color: var(--cyan); font: 700 9px/1 var(--mono); letter-spacing: .13em; }
.lesson-beats strong { display: block; color: #e5e8ef; font: 500 13px/1.42 var(--sans); }
.math-detail { width: fit-content; margin-top: 11px; color: #62697b; font: 8px/1.45 var(--mono); pointer-events: auto; }
.math-detail summary { cursor: pointer; letter-spacing: .12em; text-transform: uppercase; }
.math-detail code { display: block; margin-top: 7px; color: #9ea6b8; }
.route-readout { display: flex; gap: 7px; margin-top: 12px; }
.route-weight { min-width: 108px; padding: 8px 10px; border-top: 1px solid var(--route-color, var(--cyan)); background: linear-gradient(180deg, color-mix(in srgb, var(--route-color, var(--cyan)) 10%, transparent), transparent); font: 700 10px/1.2 var(--mono); color: #aeb4c2; }
.route-weight strong { display: block; color: #fff; font-size: 13px; }
.sol-console { position: fixed; z-index: 8; right: 22px; bottom: 44px; width: 250px; height: 86px; opacity: 0; transform: translateY(25px); pointer-events: none; transition: .65s ease .22s; }
.sol-console.visible { opacity: 1; transform: none; pointer-events: auto; }
.sol-console #sol-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.sol-mark { position: absolute; inset: 0; min-height: 0; padding: 0 14px; display: grid; grid-template-columns: 50px 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 0 13px; border: 1px solid rgba(237,240,244,.28); border-radius: 18px; background: rgba(4,5,12,.76); box-shadow: 0 0 32px rgba(113,222,255,.08); backdrop-filter: blur(16px); text-align: left; }
.openai-logo { grid-row: 1 / 3; width: 46px; height: 46px; fill: #f5f5f5; filter: drop-shadow(0 0 14px rgba(255,255,255,.12)); }
.sol-label { align-self: end; display: block; }
.sol-label b { display: block; color: #fff; font: 800 12px/1 var(--mono); letter-spacing: .19em; }
.sol-label em { display: block; margin-top: 5px; color: #8e94a4; font: normal 8px/1 var(--sans); }
.sol-mark small { align-self: start; margin-top: 7px; color: var(--cyan); font: 700 7px/1 var(--mono); letter-spacing: .12em; }
.sol-mark.recording { border-color: #ff756f; box-shadow: 0 0 30px rgba(255,100,94,.25); }
.sol-mark.recording .openai-logo { animation: solSpeak .5s ease-in-out infinite alternate; }
.sol-identity { display: flex; align-items: center; gap: 10px; }
.sol-identity > div { display: flex; flex-direction: column; gap: 2px; }
.sol-identity strong { color: #fff1da; font: 800 10px/1 var(--mono); letter-spacing: .17em; }
.sol-identity small { color: #716c73; font: 700 7px/1 var(--mono); letter-spacing: .12em; }
.sol-mini { position: relative; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255, 190, 106, .5); border-radius: 50%; }
.sol-mini i { width: 7px; height: 7px; border-radius: 50%; background: #fff6e8; box-shadow: 0 0 12px 4px rgba(255, 190, 106, .58); }
.sol-mini b { position: absolute; inset: 3px; border: 1px solid rgba(255, 190, 106, .18); border-radius: 50%; animation: orbit 4s linear infinite; }
.sol-state { margin-left: auto; color: #8c8174; font: 700 8px/1 var(--mono); letter-spacing: .13em; }
.sol-console.speaking .sol-mini { animation: solSpeak .66s ease-in-out infinite alternate; }
#sol-caption { margin: 9px 0 0 37px; color: #c4bdba; font: 400 12px/1.45 var(--serif); }
.sol-input { display: grid; grid-template-columns: 1fr 38px auto; gap: 6px; }
.sol-input input { min-width: 0; height: 36px; border: 1px solid rgba(219, 224, 235, .12); border-radius: 0; outline: 0; background: rgba(2, 3, 9, .56); color: #e9e9ed; padding: 0 10px; font-size: 11px; }
.sol-input button { min-height: 36px; padding: 0 11px; font: 700 9px/1 var(--mono); }
#sol-send { padding: 0; font-size: 15px; }
#sol-talk.sol-mark { display: grid; }
#sol-talk span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
#sol-talk .sol-label { width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
#sol-talk.recording { border-color: #ff7b76; color: #ffd0ce; }
#sol-talk.recording span { background: #ff645e; box-shadow: 0 0 12px #ff645e; animation: record 1s ease infinite; }
#sol-talk.recording .sol-label { background: none; box-shadow: none; animation: none; }
.privacy { margin: 6px 0 0; color: #555a6a; font: 7px/1.2 var(--mono); letter-spacing: .07em; text-align: right; }
.token-strip { position: fixed; z-index: 7; top: 88px; left: 50%; width: min(820px, 60vw); display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; transform: translateX(-50%); opacity: 0; transition: opacity .6s; }
.token-strip.visible { opacity: 1; }
.token-source { min-width: 0; padding-top: 8px; border-top: 1px solid rgba(219,224,235,.16); }
.token-source-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.token-source-heading strong { color: #edf0f5; font: 800 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.token-source-heading small { color: #7d8496; font-size: 10px; }
.token-chip-row { display: flex; gap: 4px; margin-top: 8px; overflow: hidden; }
.token-chip { max-width: 105px; overflow: hidden; padding: 4px 6px; color: #b4bbca; background: rgba(10,13,23,.72); font: 700 11px/1.25 var(--mono); text-overflow: ellipsis; white-space: nowrap; border: 1px solid rgba(219,224,235,.1); }
.token-source.user .token-chip { color: #dff8ff; border-color: rgba(113,222,255,.25); }
.token-source.template .token-chip { color: #d7ccff; border-color: rgba(143,124,255,.28); }
.token-source.generated .token-chip { color: #ffe0b5; border-color: rgba(255,190,106,.25); }
.token-source p { margin: 6px 0 0; color: #8f96a8; font-size: 10px; line-height: 1.35; }
.legend { position: fixed; z-index: 7; inset: auto 0 0; height: 30px; display: flex; align-items: center; gap: 17px; padding: 0 30px; border-top: 1px solid rgba(219, 224, 235, .1); background: rgba(3, 4, 10, .66); color: #5e6374; font: 700 7px/1 var(--mono); letter-spacing: .11em; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend #mode { margin-left: 7px; color: var(--cyan); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #35394b; }
.dot.token { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.dot.selected { background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.xr-button { position: fixed !important; z-index: 10 !important; right: 30px !important; top: 84px !important; bottom: auto !important; left: auto !important; width: auto !important; min-width: 0 !important; height: 34px !important; border-radius: 0 !important; border: 1px solid rgba(113, 222, 255, .45) !important; background: rgba(5, 6, 15, .72) !important; font: 700 8px var(--mono) !important; letter-spacing: .13em !important; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes record { 50% { opacity: .3; transform: scale(.65); } }
@keyframes solSpeak { to { box-shadow: 0 0 24px rgba(255, 190, 106, .23); transform: scale(1.07); } }
@keyframes grain { 0% { transform: translate(3%, -2%); } 25% { transform: translate(-2%, 4%); } 50% { transform: translate(4%, 2%); } 75% { transform: translate(-3%, -4%); } 100% { transform: translate(1%, 3%); } }
@media (max-width: 920px) {
.model-label { display: none; }
.masthead { grid-template-columns: 1fr auto; }
.runtime { justify-self: end; }
.inspector { display: none; }
.math-panel { width: min(600px, calc(100vw - 40px)); left: 20px; }
.token-strip { width: calc(100vw - 350px); min-width: 560px; }
.decode { width: min(430px, calc(100vw - 40px)); right: 20px; }
}
@media (max-width: 680px) {
.masthead { height: 62px; padding: 0 16px; }
.runtime { font-size: 7px; padding: 6px 9px; }
.welcome { left: 20px; width: calc(100vw - 40px); }
h1 { font-size: 53px; }
.lede { font-size: 14px; }
.welcome-actions { align-items: stretch; flex-direction: column; width: 250px; }
.journey { left: 20px; bottom: 43px; width: calc(100vw - 40px); }
.journey h2 { font-size: 39px; }
.token-strip { top: 72px; width: calc(100vw - 32px); min-width: 0; grid-template-columns: repeat(3, 230px); gap: 12px; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; }
.decode { left: 20px; right: auto; bottom: 196px; max-height: 120px; }
.math-panel { top: 190px; }
.sol-console { left: auto; right: 14px; bottom: 38px; width: 210px; height: 76px; }
.sol-input { grid-template-columns: 1fr 38px; }
#sol-talk.sol-mark { justify-content: initial; }
.lesson-beats { grid-template-columns: 1fr; gap: 6px; }
.legend { padding: 0 16px; }
.legend span:not(#mode) { display: none; }
.legend #mode { margin-left: auto; }
.xr-button { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}