wip(mobile): checkpoint the app shell and vision mockup in progress

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-18 05:27:50 +00:00
1 parent a8b7680c7a
commit e532c5efb6
56 files changed
+23645

No files matched your search

+783
View File
@@ -0,0 +1,783 @@
/* ------------------------------------------------------------------ */
/* Capture */
/* ------------------------------------------------------------------ */
.capture {
position: absolute;
inset: 0;
z-index: 30;
background: #000;
}
.cap {
position: absolute;
inset: 0;
overflow: hidden;
background: #000;
-webkit-user-select: none;
user-select: none;
}
.cap-video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 400ms linear;
}
.cap.has-camera .cap-video {
opacity: 1;
}
.cap-ar {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.cap-flash {
position: absolute;
inset: 0;
background: #fff;
pointer-events: none;
z-index: 8;
}
.cap-top {
position: absolute;
z-index: 3;
top: calc(var(--safe-t) + 8px);
left: calc(12px + var(--safe-l));
right: calc(12px + var(--safe-r));
display: flex;
flex-direction: column;
align-items: center;
pointer-events: none;
}
.cap-tape {
position: relative;
width: min(340px, 100%);
height: 46px;
border-radius: 23px;
overflow: hidden;
}
.cap-tape canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.cap-caret {
position: absolute;
left: 50%;
top: 0;
width: 0;
height: 0;
margin-left: -5px;
border: 5px solid transparent;
border-top: 6px solid var(--eyes);
}
.cap-caret::after {
content: attr(data-deg);
position: absolute;
top: 26px;
left: 0;
transform: translateX(-50%);
display: none;
}
.hud {
display: none;
width: 100%;
max-width: 460px;
margin-top: 8px;
padding: 10px 14px 10px;
border-radius: 22px;
font-size: var(--t-cap);
}
.cap[data-mode='witness'] .hud {
display: block;
}
.cap[data-mode='witness'] .cap-tape {
height: 36px;
}
.hud-grid {
display: grid;
grid-template-columns: auto 1fr auto 1fr auto 1fr;
gap: 3px 8px;
align-items: baseline;
}
.hud-grid span {
font-size: 0.5625rem;
font-weight: 700;
letter-spacing: 0.08em;
color: var(--ink-3);
}
.hud-grid b {
font-family: var(--mono);
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
}
.hud-trace {
position: relative;
height: 28px;
margin-top: 8px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
}
.hud-trace canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.hud-trace span {
position: absolute;
left: 6px;
top: 3px;
padding: 0 4px;
border-radius: 4px;
background: rgba(10, 14, 20, 0.6);
font-size: 0.5625rem;
font-weight: 700;
letter-spacing: 0.06em;
color: var(--eyes);
opacity: 0.8;
}
.hud-rec {
display: flex;
align-items: center;
gap: 6px;
margin-top: 7px;
font-size: 0.6875rem;
color: var(--ink-3);
}
.rec-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--ink-4);
}
.hud-rec.on {
color: var(--ink-2);
}
.hud-rec.on .rec-dot {
background: var(--seal);
animation: breathe 1.4s ease-in-out infinite;
}
.cap-level {
position: absolute;
z-index: 2;
left: 50%;
top: 50%;
width: 150px;
height: 0;
margin-left: -75px;
display: none;
pointer-events: none;
}
.cap[data-mode='witness'] .cap-level {
display: block;
}
.cap-level i {
position: absolute;
inset: -0.75px 0;
height: 1.5px;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.8) 0 38%,
transparent 38% 62%,
rgba(255, 255, 255, 0.8) 62%
);
}
.cap-level.level i {
background: linear-gradient(
90deg,
var(--eyes) 0 38%,
transparent 38% 62%,
var(--eyes) 62%
);
}
.cap-status {
position: absolute;
z-index: 6;
left: 50%;
top: calc(var(--safe-t) + 64px);
transform: translateX(-50%);
max-width: calc(100% - 32px);
padding: 10px 16px;
border-radius: 18px;
font-size: var(--t-foot);
font-weight: 600;
text-align: center;
}
.cap-status[hidden] {
display: none;
}
.cap-bottom {
position: absolute;
z-index: 3;
left: 0;
right: 0;
bottom: calc(var(--chrome-bottom) - 2px);
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
pointer-events: none;
}
.cap-bottom > * {
pointer-events: auto;
}
.cap-modes {
display: flex;
gap: 6px;
padding: 4px;
border-radius: var(--r-pill);
background: rgba(0, 0, 0, 0.35);
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
}
.cap-modes button {
min-height: 34px;
padding: 0 14px;
border-radius: var(--r-pill);
font-size: var(--t-cap);
font-weight: 750;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.75);
transition:
color var(--dur-1) linear,
background var(--dur-2) linear;
}
.cap-modes button[aria-selected='true'] {
color: var(--eyes);
background: rgba(255, 209, 102, 0.14);
}
.cap-controls {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
width: min(420px, 100%);
padding: 0 24px;
}
.cap-thumb {
justify-self: start;
width: 52px;
height: 52px;
border-radius: 14px;
overflow: hidden;
display: grid;
place-items: center;
color: var(--seal);
font-size: 1.4rem;
background: rgba(0, 0, 0, 0.35);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
position: relative;
}
.cap-thumb img,
.cap-thumb video {
width: 100%;
height: 100%;
object-fit: cover;
}
.cap-thumb.has::after {
content: '';
position: absolute;
right: 3px;
bottom: 3px;
width: 14px;
height: 14px;
border-radius: 50%;
background: radial-gradient(circle, #ffe3a3, #c8913a);
box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5);
}
.cap-side {
justify-self: end;
}
.shutter {
position: relative;
width: 80px;
height: 80px;
border-radius: 50%;
display: grid;
place-items: center;
touch-action: none;
}
.shutter-ring {
position: absolute;
inset: 0;
border-radius: 50%;
border: 4px solid #fff;
box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}
.shutter-core {
width: 64px;
height: 64px;
border-radius: 50%;
background: #fff;
transition:
transform var(--dur-2) var(--spring),
border-radius var(--dur-2) var(--ease-out),
background var(--dur-2) linear;
}
.shutter:active .shutter-core {
transform: scale(0.88);
}
.cap.recording .shutter-core {
transform: scale(0.5);
border-radius: 10px;
background: var(--live);
}
.cap.recording .shutter-ring {
border-color: rgba(255, 255, 255, 0.5);
animation: rec-ring 15s linear;
}
@keyframes rec-ring {
from {
box-shadow: inset 0 0 0 0 var(--live);
}
to {
box-shadow: inset 0 0 0 4px var(--live);
}
}
.cap[data-mode='look'] .shutter {
visibility: hidden;
}
.cap-legend {
display: none;
flex-wrap: wrap;
justify-content: center;
gap: 6px 12px;
padding: 0 16px;
font-size: var(--t-cap);
font-weight: 600;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.cap[data-mode='look'] .cap-legend {
display: flex;
}
.cap-legend span {
display: inline-flex;
align-items: center;
gap: 5px;
}
.cap-legend i {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--c);
}
.cap-legend em {
flex-basis: 100%;
text-align: center;
font-style: normal;
font-weight: 500;
color: var(--ink-3);
font-size: var(--t-cap2);
}
.cap[data-mode='look'] .cap-controls {
margin-top: -80px;
}
/* Permission explainer */
.cap-gate {
position: absolute;
inset: 0;
z-index: 9;
display: flex;
align-items: flex-end;
justify-content: center;
padding: calc(var(--safe-t) + 20px) calc(12px + var(--safe-r))
var(--chrome-bottom) calc(12px + var(--safe-l));
background:
radial-gradient(
90% 60% at 50% 20%,
rgba(255, 209, 102, 0.12),
transparent 70%
),
rgba(3, 5, 9, 0.86);
}
.cap-gate[hidden] {
display: none;
}
.gate-card {
width: min(460px, 100%);
max-height: 100%;
overflow-y: auto;
padding: 24px 20px 16px;
border-radius: 30px;
display: flex;
flex-direction: column;
gap: 4px;
animation: view-in var(--dur-3) var(--spring) both;
}
.gate-ic {
width: 56px;
height: 56px;
border-radius: 16px;
display: grid;
place-items: center;
font-size: 1.8rem;
color: #1b1300;
background: linear-gradient(160deg, #ffe08f, #e8a93c);
margin-bottom: 10px;
}
.gate-card h2 {
margin: 0;
font-family: var(--font-display);
font-size: var(--t-title2);
letter-spacing: -0.025em;
}
.gate-card > p {
margin: 0 0 8px;
color: var(--ink-2);
font-size: var(--t-sub);
}
.gate-card ul {
list-style: none;
margin: 6px 0 8px;
padding: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
.gate-card li {
display: flex;
gap: 14px;
align-items: flex-start;
}
.gate-card li > .i {
font-size: 1.4rem;
color: var(--eyes);
margin-top: 2px;
}
.gate-card li div {
display: flex;
flex-direction: column;
gap: 2px;
font-size: var(--t-foot);
color: var(--ink-3);
line-height: 1.35;
}
.gate-card li b {
color: var(--ink);
font-size: var(--t-sub);
}
.gate-card .gate-fine {
display: flex;
gap: 8px;
align-items: flex-start;
font-size: var(--t-cap);
color: var(--ink-3);
margin: 4px 0 10px;
}
.gate-fine .i {
flex: none;
color: var(--seal);
margin-top: 1px;
}
.gate-card .pill-btn {
width: 100%;
min-height: 50px;
font-size: var(--t-callout);
}
.gate-skip {
margin-top: 6px;
background: transparent !important;
color: var(--ink-2);
font-weight: 500 !important;
}
/* Seal ceremony */
.cap-seal {
position: absolute;
inset: 0;
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
padding: calc(var(--safe-t) + 12px) calc(14px + var(--safe-r))
calc(var(--safe-b) + 12px) calc(14px + var(--safe-l));
background: rgba(3, 5, 8, 0.72);
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
animation: view-in 260ms var(--ease-out) both;
}
.cap-seal[hidden] {
display: none;
}
.seal-card {
position: relative;
width: min(420px, 100%);
max-height: 100%;
overflow-y: auto;
padding: 14px 16px 16px;
border-radius: 30px;
display: flex;
flex-direction: column;
align-items: center;
scrollbar-width: none;
}
.seal-media {
position: relative;
width: 100%;
border-radius: 20px;
overflow: hidden;
background: #000;
max-height: 30vh;
aspect-ratio: 4 / 3;
}
.seal-media img,
.seal-media video {
width: 100%;
height: 100%;
object-fit: cover;
}
.seal-media .badge-example {
position: absolute;
top: 10px;
left: 10px;
}
.seal-glyph {
width: 96px;
height: 96px;
margin-top: -48px;
position: relative;
z-index: 2;
filter: drop-shadow(0 6px 18px rgba(232, 183, 92, 0.35));
}
.seal-glyph svg {
width: 100%;
height: 100%;
}
.seal-ring {
fill: rgba(232, 183, 92, 0);
stroke: var(--seal);
stroke-width: 3;
stroke-dasharray: 300;
stroke-dashoffset: 300;
animation: seal-draw 1.6s var(--ease-in-out) infinite alternate;
}
.seal-check {
fill: none;
stroke: #2a1a00;
stroke-width: 6;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 60;
stroke-dashoffset: 60;
}
.seal-card.sealed .seal-ring {
animation:
seal-draw 700ms var(--ease-out) forwards,
seal-fill 500ms 500ms var(--ease-out) forwards;
}
.seal-card.sealed .seal-check {
animation: check-draw 420ms 850ms var(--ease-out) forwards;
}
.seal-card.sealed .seal-glyph {
animation: seal-pop 700ms 600ms var(--spring) both;
}
@keyframes seal-draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes seal-fill {
to {
fill: var(--seal);
stroke: #ffe3a3;
}
}
@keyframes check-draw {
to {
stroke-dashoffset: 0;
}
}
@keyframes seal-pop {
0% {
transform: scale(1);
}
40% {
transform: scale(1.14);
}
100% {
transform: scale(1);
}
}
.seal-state {
margin-top: 6px;
font-size: var(--t-sub);
color: var(--ink-2);
}
.seal-state b {
color: var(--seal-2);
font-weight: 750;
}
.seal-hash {
margin: 10px 0 4px;
display: grid;
grid-template-columns: repeat(2, auto);
gap: 2px 12px;
font-size: 0.75rem;
color: var(--seal-2);
letter-spacing: 0.02em;
min-height: 2.6em;
}
.seal-spark {
width: 100%;
margin-top: 10px;
padding: 8px 10px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.05);
display: flex;
flex-direction: column;
gap: 4px;
font-size: var(--t-cap2);
color: var(--ink-3);
animation: view-in 400ms 900ms var(--ease-out) both;
}
.seal-spark svg {
width: 100%;
height: 34px;
}
.seal-spark path {
fill: none;
stroke: var(--eyes);
stroke-width: 1.3;
vector-effect: non-scaling-stroke;
}
.seal-nospark {
height: 22px;
display: grid;
place-items: center;
border: 1px dashed rgba(255, 255, 255, 0.15);
border-radius: 8px;
}
.seal-facts {
width: 100%;
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 14px;
margin: 12px 0 4px;
font-size: var(--t-foot);
animation: view-in 400ms 1000ms var(--ease-out) both;
}
.seal-facts dt {
color: var(--ink-3);
}
.seal-facts dd {
margin: 0;
min-width: 0;
overflow-wrap: anywhere;
}
.seal-facts .mono {
font-size: 0.75rem;
}
.seal-actions {
display: flex;
gap: 10px;
width: 100%;
margin-top: 12px;
animation: view-in 400ms 1100ms var(--ease-out) both;
}
.seal-actions .pill-btn {
flex: 1;
min-height: 48px;
}
+467
View File
@@ -0,0 +1,467 @@
/* ------------------------------------------------------------------ */
/* Now feed */
/* ------------------------------------------------------------------ */
#view-now {
background:
radial-gradient(
140% 50% at 50% -10%,
rgba(60, 110, 190, 0.16),
rgba(5, 7, 11, 0) 60%
),
var(--ground);
}
.feed-inner {
will-change: transform;
}
.feed-tabs {
position: sticky;
top: calc(var(--safe-t) + 52px);
z-index: 4;
display: flex;
gap: 0;
margin-top: 12px;
padding: 0 calc(6px + var(--safe-r)) 0 calc(6px + var(--safe-l));
overflow-x: auto;
scrollbar-width: none;
white-space: nowrap;
}
.feed-tabs::-webkit-scrollbar {
display: none;
}
.feed-tabs::before {
content: '';
position: absolute;
inset: 0;
z-index: -1;
background: rgba(8, 11, 17, 0.62);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
border-bottom: 0.5px solid var(--hairline);
opacity: 0;
transition: opacity var(--dur-1) linear;
}
#view-now.is-scrolled .feed-tabs::before {
opacity: 1;
}
#view-now.is-scrolled .navbar::before {
border-bottom-color: transparent;
}
.feed-tabs button {
position: relative;
flex: none;
height: 44px;
padding: 0 10px;
font-size: var(--t-sub);
font-weight: 600;
color: var(--ink-3);
transition:
color var(--dur-1) linear,
transform var(--dur-1) var(--ease-out);
}
.feed-tabs button[aria-selected='true'] {
color: var(--ink);
font-weight: 700;
}
.feed-tabs-ink {
position: absolute;
left: 0;
bottom: 6px;
height: 3px;
border-radius: 2px;
background: var(--ink);
transition:
transform var(--dur-3) var(--spring),
width var(--dur-3) var(--spring);
}
.feed-note {
padding: 8px calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
}
.near-prompt {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 12px 12px 14px;
border-radius: 20px;
font-size: var(--t-foot);
}
.near-prompt > .i {
font-size: 1.3rem;
color: var(--tint);
}
.near-prompt div {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
.near-prompt span {
color: var(--ink-3);
font-size: var(--t-cap);
line-height: 1.3;
}
.near-prompt .pill-btn {
min-height: 36px;
padding: 0 14px;
font-size: var(--t-foot);
}
.masonry {
display: flex;
align-items: flex-start;
gap: 7px;
padding: 10px calc(7px + var(--safe-r)) 0 calc(7px + var(--safe-l));
}
.masonry.swap {
animation: view-in 320ms var(--ease-out) both;
}
.mcol {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 7px;
}
.card {
position: relative;
border-radius: 18px;
background: var(--ground-2);
overflow: hidden;
content-visibility: auto;
contain-intrinsic-size: auto 300px;
transition: transform var(--dur-2) var(--spring);
box-shadow: inset 0 0 0 0.5px var(--hairline);
}
.card:has(.card-hit:active) {
transform: scale(0.965);
}
.card.is-selected {
box-shadow:
inset 0 0 0 2px var(--fam),
0 0 0 4px color-mix(in srgb, var(--fam) 25%, transparent);
}
.card:has(.card-hit:focus-visible) {
outline: 2.5px solid var(--tint);
outline-offset: 2px;
}
.card-hit {
position: absolute;
inset: 0;
z-index: 3;
border-radius: inherit;
}
.card-hit:focus-visible {
outline: none;
}
.card-media {
position: relative;
overflow: hidden;
background: radial-gradient(
120% 90% at 30% 20%,
color-mix(in srgb, var(--fam, #345) 26%, #0e1520),
#0b1019
);
}
.card-media img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transform: scale(1.03);
transition:
opacity 500ms var(--ease-out),
transform 900ms var(--ease-out);
}
.card-media img.loaded {
opacity: 1;
transform: none;
}
.card-media img.failed {
display: none;
}
.card-media::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(
to top,
rgba(4, 6, 10, 0.78) 0%,
rgba(4, 6, 10, 0.25) 32%,
rgba(4, 6, 10, 0) 52%
);
pointer-events: none;
}
.card.is-stale .card-media img {
filter: saturate(0.25) brightness(0.8);
}
.card.is-stale {
box-shadow: inset 0 0 0 1px transparent;
outline: 1.25px dotted var(--ink-4);
outline-offset: -1.25px;
}
.card-badges {
position: absolute;
z-index: 2;
top: 8px;
left: 8px;
right: 8px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 6px;
}
.glass-tag {
background: rgba(6, 9, 14, 0.5);
-webkit-backdrop-filter: blur(12px) saturate(1.5);
backdrop-filter: blur(12px) saturate(1.5);
box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
font-size: 0.625rem;
height: 22px;
min-width: 0;
overflow: hidden;
}
.live-pill {
display: inline-flex;
align-items: center;
gap: 5px;
height: 20px;
padding: 0 7px;
border-radius: var(--r-pill);
background: rgba(255, 69, 58, 0.92);
color: #fff;
font-size: 0.5625rem;
font-weight: 800;
letter-spacing: 0.08em;
flex: none;
}
.live-pill .live-dot {
--fam: #fff;
width: 5px;
height: 5px;
}
.live-pill.recon {
background: rgba(201, 167, 255, 0.92);
color: #1a1030;
}
.live-pill.recon .i {
font-size: 0.75rem;
}
.card-metric {
position: absolute;
z-index: 2;
left: 10px;
right: 10px;
bottom: 9px;
display: flex;
align-items: baseline;
flex-wrap: wrap;
column-gap: 3px;
color: #fff;
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.card-metric b {
font-family: var(--font-display);
font-size: 1.375rem;
font-weight: 750;
letter-spacing: -0.03em;
line-height: 1;
}
.card-metric small {
font-size: 0.75rem;
font-weight: 650;
opacity: 0.85;
}
.card-metric span {
flex-basis: 100%;
font-size: 0.5625rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--fam);
margin-top: 3px;
}
.card-body {
padding: 9px 11px 11px;
}
.card-title {
margin: 0;
font-size: 0.875rem;
font-weight: 650;
line-height: 1.28;
letter-spacing: -0.012em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-place {
display: flex;
align-items: center;
gap: 3px;
margin-top: 4px;
font-size: 0.6875rem;
color: var(--ink-3);
white-space: nowrap;
overflow: hidden;
}
.card-place span {
overflow: hidden;
text-overflow: ellipsis;
}
.card-place .i {
flex: none;
font-size: 0.75rem;
}
.card-foot {
display: flex;
justify-content: space-between;
gap: 6px;
margin-top: 7px;
font-size: 0.625rem;
color: var(--ink-4);
}
.card-foot .src {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.card-foot .ago {
flex: none;
}
.card.pulse {
animation: card-pulse 1.6s var(--ease-out);
}
@keyframes card-pulse {
0% {
box-shadow: inset 0 0 0 1.5px var(--fam);
}
100% {
box-shadow: inset 0 0 0 0.5px var(--hairline);
}
}
/* Skeleton */
.card.skel .card-media,
.sk-line {
background: linear-gradient(
100deg,
rgba(255, 255, 255, 0) 30%,
rgba(255, 255, 255, 0.07) 50%,
rgba(255, 255, 255, 0) 70%
)
var(--ground-3);
background-size: 200% 100%;
animation: shimmer 1.4s linear infinite;
}
.sk-line {
height: 11px;
border-radius: 6px;
margin: 3px 0 8px;
}
.sk-line.short {
width: 55%;
margin-bottom: 2px;
}
.feed-end {
text-align: center;
color: var(--ink-4);
font-size: var(--t-foot);
padding: 26px 0 0;
}
/* Pull to refresh */
.ptr {
position: absolute;
z-index: 3;
left: 0;
right: 0;
top: calc(var(--safe-t) + 62px);
height: 40px;
display: grid;
place-items: center;
opacity: 0;
pointer-events: none;
--p: 0;
}
.ptr-spinner {
position: relative;
width: 30px;
height: 30px;
transform: rotate(calc(var(--p) * 200deg));
}
.ptr-spinner i {
position: absolute;
left: 12.5px;
top: 12.5px;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--c);
transform: rotate(calc(var(--i) * 45deg)) translateY(-12px);
opacity: clamp(0, calc((var(--p) * 8 - var(--i)) * 1), 1);
}
.ptr.spinning .ptr-spinner {
animation: spin 900ms linear infinite;
}
.ptr.spinning .ptr-spinner i {
opacity: 1;
}
+748
View File
@@ -0,0 +1,748 @@
/* ------------------------------------------------------------------ */
/* Globe chrome */
/* ------------------------------------------------------------------ */
.gc-top {
position: absolute;
top: calc(var(--safe-t) + 8px);
left: calc(12px + var(--safe-l));
right: calc(12px + var(--safe-r));
display: flex;
justify-content: space-between;
align-items: flex-start;
pointer-events: none;
transition: opacity var(--dur-2) linear;
}
.gc-top > * {
pointer-events: auto;
}
.gc-readout {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
height: 44px;
padding: 0 14px;
border-radius: 22px;
line-height: 1.15;
}
.gc-alt {
font-size: var(--t-foot);
font-weight: 700;
}
.gc-ll {
font-size: 0.625rem;
color: var(--ink-3);
}
.gc-buttons {
display: flex;
flex-direction: column;
gap: 10px;
}
.gc-buttons .icon-btn,
.world-back {
position: relative;
}
.gc-compass .compass-n {
display: grid;
place-items: center;
color: #ff5b4f;
transition: transform 200ms linear;
}
.gc-attr {
position: absolute;
top: calc(var(--safe-t) + 58px);
left: calc(16px + var(--safe-l));
font-size: 0.625rem;
color: var(--ink-4);
letter-spacing: 0.01em;
min-height: 24px;
padding: 0 2px;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.world-back {
position: absolute;
top: calc(var(--safe-t) + 8px);
left: calc(12px + var(--safe-l));
font-size: 1.2rem;
display: none;
}
.app.is-world .world-back {
display: grid;
animation: view-in var(--dur-3) var(--spring) both;
}
.app.is-world .gc-readout,
.app.is-world .gc-attr {
visibility: hidden;
}
/* Lens popover */
.lens-pop {
position: absolute;
z-index: 5;
top: calc(var(--safe-t) + 8px);
right: calc(66px + var(--safe-r));
padding: 6px;
border-radius: 24px;
display: flex;
flex-direction: column;
min-width: 190px;
transform-origin: top right;
animation: pop-in 320ms var(--spring) both;
}
.lens-pop[hidden] {
display: none;
}
@keyframes pop-in {
from {
opacity: 0;
transform: scale(0.6);
}
}
.lens-pop button {
display: flex;
align-items: center;
gap: 12px;
height: 46px;
padding: 0 10px;
border-radius: 18px;
font-size: var(--t-sub);
font-weight: 600;
text-align: left;
}
.lens-pop button[aria-checked='true'] {
background: rgba(255, 255, 255, 0.1);
}
.lens-sw {
width: 30px;
height: 30px;
border-radius: 50%;
flex: none;
box-shadow:
inset 0 0 0 0.5px rgba(255, 255, 255, 0.35),
0 2px 6px rgba(0, 0, 0, 0.35);
}
.lens-pop button[aria-checked='true'] .lens-sw {
box-shadow:
0 0 0 2px var(--ground),
0 0 0 4px var(--tint);
}
/* Bottom stack: lens dock + time ribbon */
.gc-bottom {
position: absolute;
left: 0;
right: 0;
bottom: var(--chrome-bottom);
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
transition:
transform var(--dur-3) var(--spring),
opacity var(--dur-2) linear;
}
.gc-bottom > * {
pointer-events: auto;
}
.lens-dock {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 2px calc(12px + var(--safe-r)) 2px calc(12px + var(--safe-l));
scrollbar-width: none;
scroll-padding: 0 12px;
}
.lens-dock::-webkit-scrollbar {
display: none;
}
.fam-chip {
position: relative;
flex: none;
height: 38px;
padding: 0 13px 0 10px;
color: var(--ink-2);
background: rgba(14, 18, 26, 0.55);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
box-shadow: var(--glass-edge);
font-size: var(--t-foot);
}
.fam-chip .i {
font-size: 1.05rem;
color: var(--fam);
opacity: 0.6;
}
.fam-chip.on {
color: var(--ink);
background: color-mix(in srgb, var(--fam) 24%, rgba(14, 18, 26, 0.6));
box-shadow:
var(--glass-edge),
inset 0 0 0 1px color-mix(in srgb, var(--fam) 40%, transparent);
}
.fam-chip.on .i {
opacity: 1;
}
.fam-count {
font-size: var(--t-cap2);
font-weight: 700;
color: var(--fam);
}
.fam-count:empty {
display: none;
}
.lens-dock[data-solo]:not([data-solo='']) .fam-chip:not(.on) {
opacity: 0.45;
}
/* Time ribbon */
.ribbon {
position: relative;
display: flex;
align-items: center;
gap: 4px;
height: 56px;
margin: 0 calc(12px + var(--safe-r)) 0 calc(12px + var(--safe-l));
padding: 0 6px;
border-radius: 28px;
touch-action: none;
}
.rb-live {
flex: none;
height: 40px;
padding: 0 11px;
border-radius: 20px;
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.6875rem;
font-weight: 800;
letter-spacing: 0.08em;
color: var(--ink-2);
background: rgba(255, 255, 255, 0.08);
transition:
background var(--dur-2) linear,
color var(--dur-2) linear,
transform var(--dur-1) var(--ease-out);
}
.rb-live .live-dot {
--fam: var(--ink-3);
width: 6px;
height: 6px;
}
.rb-live .live-dot::after {
animation: none;
}
.rb-live.is-live {
background: rgba(255, 69, 58, 0.18);
color: #ff6b61;
}
.rb-live.is-live .live-dot {
--fam: #ff453a;
}
.rb-live.is-live .live-dot::after {
animation: pulse-ring 1.8s var(--ease-out) infinite;
}
.rb-live:active {
transform: scale(0.93);
}
.rb-track {
position: relative;
flex: 1;
min-width: 0;
height: 100%;
cursor: ew-resize;
touch-action: none;
}
.rb-track canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.rb-head {
position: absolute;
left: 50%;
top: 9px;
bottom: 9px;
width: 2px;
margin-left: -1px;
border-radius: 1px;
background: var(--tint);
box-shadow: 0 0 10px rgba(124, 196, 255, 0.8);
}
.ribbon.is-live .rb-head {
background: #ff453a;
box-shadow: 0 0 10px rgba(255, 69, 58, 0.8);
animation: breathe 2.6s ease-in-out infinite;
}
.ribbon.scrubbing .rb-head {
width: 3px;
margin-left: -1.5px;
}
.rb-read {
flex: none;
width: 84px;
display: flex;
flex-direction: column;
align-items: flex-end;
padding-right: 8px;
line-height: 1.15;
}
.rb-read b {
font-size: var(--t-foot);
font-weight: 750;
white-space: nowrap;
}
.rb-read span {
font-size: 0.625rem;
color: var(--ink-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.ribbon.custom .rb-head {
background: var(--eyes);
box-shadow: 0 0 10px rgba(255, 209, 102, 0.7);
}
/* World mode (an open situation) on compact widths */
.app.is-world .lens-dock {
display: none;
}
.app.is-world .gc-bottom {
bottom: calc(var(--sheet-h, 120px) + 10px);
}
.app.is-world:not([data-sheet='peek']) .gc-bottom {
opacity: 0;
transform: translateY(20px);
pointer-events: none;
}
.app.is-world:not([data-sheet='peek']) .gc-bottom > * {
pointer-events: none;
}
.app.is-world .pick-card {
display: none;
}
/* Pick card */
.pick-card {
position: absolute;
left: calc(12px + var(--safe-l));
right: calc(12px + var(--safe-r));
bottom: calc(var(--chrome-bottom) + 118px);
padding: 12px 12px 12px 14px;
border-radius: 26px;
z-index: 4;
}
.pick-card[hidden] {
display: none;
}
.pick-top {
display: flex;
align-items: center;
gap: 12px;
}
.pick-ic {
width: 40px;
height: 40px;
border-radius: 50%;
display: grid;
place-items: center;
flex: none;
background: color-mix(in srgb, var(--fam) 22%, transparent);
color: var(--fam);
font-size: 1.25rem;
}
.pick-titles {
flex: 1;
min-width: 0;
}
.pick-title {
font-family: var(--mono);
font-weight: 700;
font-size: var(--t-headline);
letter-spacing: 0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pick-sub {
font-size: var(--t-foot);
color: var(--ink-3);
}
.pick-close {
width: 36px;
height: 36px;
font-size: 0.9rem;
color: var(--ink-3);
background: rgba(255, 255, 255, 0.08);
}
.pick-meta {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
margin: 12px 0 2px;
}
.pick-meta div {
display: flex;
flex-direction: column;
min-width: 0;
}
.pick-meta span {
font-size: 0.625rem;
font-weight: 650;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-3);
}
.pick-meta b {
font-size: var(--t-callout);
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pick-src {
margin-top: 8px;
font-size: 0.6875rem;
color: var(--ink-4);
}
.pick-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 12px;
}
.pick-actions .pill-btn {
min-height: 40px;
padding: 0 13px;
font-size: var(--t-foot);
flex: none;
}
/* Control-Center-style layer grid */
.grid-head {
display: flex;
align-items: center;
gap: 12px;
padding: 2px 52px 12px 0;
}
.grid-head > div {
flex: 1;
min-width: 0;
}
.grid-ic {
width: 46px;
height: 46px;
border-radius: 50%;
display: grid;
place-items: center;
flex: none;
font-size: 1.4rem;
color: #05070b;
background: var(--fam);
box-shadow: 0 0 24px color-mix(in srgb, var(--fam) 45%, transparent);
}
.tiles {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.tile {
position: relative;
display: grid;
grid-template-rows: auto 1fr auto;
gap: 8px;
min-height: 104px;
padding: 12px;
border-radius: 24px;
text-align: left;
background: rgba(255, 255, 255, 0.07);
box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
transition:
transform var(--dur-2) var(--spring),
background var(--dur-2) linear;
}
.tile-ic {
width: 36px;
height: 36px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 1.1rem;
color: var(--ink-2);
background: rgba(255, 255, 255, 0.12);
transition:
background var(--dur-2) linear,
color var(--dur-2) linear;
}
.tile-name {
font-size: var(--t-sub);
font-weight: 650;
line-height: 1.2;
align-self: end;
}
.tile-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: var(--t-cap);
color: var(--ink-3);
}
.tile-meta b {
color: var(--ink-2);
font-weight: 700;
}
.tile-status {
display: inline-flex;
align-items: center;
gap: 5px;
}
.tile-status i {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--ink-4);
}
.tile.on {
background: color-mix(in srgb, var(--fam) 22%, rgba(255, 255, 255, 0.06));
}
.tile.on .tile-ic {
background: var(--fam);
color: #05070b;
}
.tile.on .tile-meta b {
color: var(--fam);
}
.tile[data-status='live'].on .tile-status i {
background: var(--ok);
box-shadow: 0 0 6px var(--ok);
}
.tile[data-status='stale'] .tile-status i {
background: transparent;
outline: 1.25px dotted var(--ink-3);
}
.tile[data-status='error'] .tile-status i {
background: var(--bad);
}
.tile[data-status='error'] .tile-status {
color: var(--bad);
}
/* Credits */
.credit-list {
display: flex;
flex-direction: column;
gap: 2px;
}
.credit {
display: flex;
flex-direction: column;
gap: 3px;
padding: 12px 0;
border-bottom: 0.5px solid var(--hairline);
font-size: var(--t-foot);
}
.credit span {
color: var(--ink-2);
line-height: 1.4;
}
.credit a {
color: var(--tint);
text-decoration: none;
font-size: var(--t-cap);
}
/* Leading pane Globe view (regular widths) */
.lens-row {
display: flex;
gap: 10px;
overflow-x: auto;
padding: 0 calc(var(--gutter) + var(--safe-r)) 4px
calc(var(--gutter) + var(--safe-l));
scrollbar-width: none;
}
.lens-card {
flex: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 72px;
font-size: var(--t-cap);
font-weight: 600;
color: var(--ink-2);
}
.lens-card .lens-sw {
width: 56px;
height: 56px;
}
.lens-card.on {
color: var(--ink);
}
.lens-card.on .lens-sw {
box-shadow:
0 0 0 2px var(--ground),
0 0 0 4px var(--tint);
}
.lead-fam {
display: inline-flex;
align-items: center;
gap: 8px;
}
.lead-fam .i {
color: var(--fam);
}
.lead-tiles {
margin: 0 calc(var(--gutter) + var(--safe-r)) 0
calc(var(--gutter) + var(--safe-l));
}
.lead-tiles .tile {
min-height: 92px;
}
.link-btn {
color: var(--tint);
font-weight: 600;
min-height: 44px;
}
/* Hero morph */
.hero {
position: fixed;
z-index: 80;
overflow: hidden;
pointer-events: none;
contain: strict;
}
.hero img {
position: absolute;
max-width: none;
transform-origin: center center;
will-change: transform;
}
.hero-scrim {
position: fixed;
inset: 0;
z-index: 79;
background: rgba(3, 5, 8, 0.55);
pointer-events: none;
}
.card.hero-source .card-media {
visibility: hidden;
}
.peek-metric {
flex: none;
font-family: var(--font-display);
font-size: var(--t-title2);
font-weight: 750;
letter-spacing: -0.03em;
color: var(--fam);
}
.peek-metric small {
font-size: 0.75rem;
font-weight: 650;
color: var(--ink-3);
margin-left: 2px;
letter-spacing: 0;
}
.brief-sheet .sheet-head {
padding-bottom: 4px;
}
+190
View File
@@ -0,0 +1,190 @@
/* ------------------------------------------------------------------ */
/* Adaptive layout: phone → two-pane → hinge-aware foldables */
/* ------------------------------------------------------------------ */
.app {
--two-pane: 0;
}
.search-row {
display: flex;
align-items: center;
gap: 8px;
padding: 2px 0 10px;
}
.search-row .search-field {
flex: 1;
}
.search-cancel {
min-height: 40px;
padding: 0 10px;
background: transparent !important;
color: var(--tint);
font-weight: 500;
}
/* Regular width (foldable inner screens, iPhone Fold, tablets).
iPadOS 26-style: the leading pane holds the content column and keeps
the floating tab bar at its foot (thumb reach on a handheld foldable);
the trailing pane is the always-live globe. */
@media (min-width: 600px) {
.app {
--two-pane: 1;
--lead-w: clamp(360px, 44vw, 420px);
--stage-left: var(--lead-w);
}
.lead {
right: auto;
width: var(--lead-w);
border-right: 0.5px solid var(--hairline-strong);
visibility: visible !important;
}
.lead .view {
pointer-events: auto !important;
}
.stage {
left: var(--stage-left);
}
#view-globe {
display: block;
}
.app .globe-chrome {
visibility: visible !important;
}
.tabbar {
left: calc(12px + var(--safe-l));
right: auto;
width: calc(var(--lead-w) - 24px);
}
.app.is-world:not(.is-narrative) .tabbar {
transform: none;
opacity: 1;
}
.gc-bottom {
bottom: calc(var(--safe-b) + 14px);
}
.app.is-world .gc-bottom {
bottom: calc(var(--sheet-h, 120px) + 12px);
}
.pick-card {
left: auto;
width: min(400px, calc(100% - 24px));
bottom: calc(var(--safe-b) + 140px);
}
.narr-hud {
left: auto;
width: min(420px, calc(100% - 24px));
}
.stage .sheet {
left: 10px;
right: 10px;
max-width: 520px;
}
/* Modal sheets float centred instead of spanning a wide screen. */
.sheets .sheet {
left: 0;
right: 0;
margin: 0 auto;
width: min(560px, calc(100% - 24px));
}
.tb-accessory {
right: calc(var(--tabbar-h) + 10px);
}
.capture .cap-bottom,
.capture .cap-top {
left: var(--lead-w);
}
.hero {
border-radius: 0;
}
}
/* Vertical hinge (book posture): split exactly at the fold. */
@media (horizontal-viewport-segments: 2) {
.app {
--lead-w: env(viewport-segment-width 0 0, 50vw);
--stage-left: env(viewport-segment-left 1 0, 50vw);
}
.lead {
width: var(--lead-w);
}
.stage {
left: var(--stage-left);
}
.capture .cap-bottom,
.capture .cap-top {
left: var(--stage-left);
}
}
/* Tabletop (horizontal fold): globe on top, controls and timeline below. */
@media (vertical-viewport-segments: 2) {
.app {
--two-pane: 1;
--stage-h: env(viewport-segment-height 0 0, 50vh);
--lead-top: env(viewport-segment-top 0 1, 50vh);
}
.stage {
left: 0;
right: 0;
top: 0;
bottom: auto;
height: var(--stage-h);
}
.lead {
top: var(--lead-top);
left: 0;
right: 0;
width: auto;
border-right: 0;
border-top: 0.5px solid var(--hairline-strong);
}
.lead .view .navbar {
--safe-t: 0px;
}
.tabbar {
left: max(calc(12px + var(--safe-l)), calc(50% - 300px));
right: max(calc(12px + var(--safe-r)), calc(50% - 300px));
width: auto;
}
.gc-bottom {
bottom: 12px;
}
.gc-top {
top: 12px;
}
}
/* Short landscape phones keep a single pane but tighter chrome. */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 599px) {
.lens-dock {
display: none;
}
}
+508
View File
@@ -0,0 +1,508 @@
/* ------------------------------------------------------------------ */
/* Sheets */
/* ------------------------------------------------------------------ */
.sheets {
position: absolute;
inset: 0;
z-index: 60;
pointer-events: none;
}
.sheet-layer {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 10;
}
.sheet-layer[hidden] {
display: none;
}
.sheet-scrim {
position: absolute;
inset: 0;
background: #000;
opacity: 0;
pointer-events: auto;
}
.sheet {
position: absolute;
left: calc(6px + var(--safe-l));
right: calc(6px + var(--safe-r));
bottom: 0;
display: flex;
flex-direction: column;
border-radius: 30px 30px 0 0;
background: var(--glass-specular), rgba(16, 20, 28, 0.78);
-webkit-backdrop-filter: blur(30px) saturate(1.7);
backdrop-filter: blur(30px) saturate(1.7);
box-shadow:
inset 0 0.5px 0 rgba(255, 255, 255, 0.3),
inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
0 -12px 40px rgba(0, 0, 0, 0.35);
pointer-events: auto;
will-change: transform;
transform: translate3d(0, 110%, 0);
overflow: hidden;
contain: layout paint;
}
.sheet.opaque {
background: var(--ground-1);
}
.sheet-grabber {
flex: none;
height: 22px;
display: grid;
place-items: center;
cursor: grab;
touch-action: none;
}
.sheet-grabber span {
width: 38px;
height: 5px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.3);
}
.sheet-close {
position: absolute;
z-index: 2;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
font-size: 0.95rem;
color: var(--ink-2);
background: rgba(255, 255, 255, 0.1);
}
.sheet-close::before {
/* 44pt hit area around a 32pt glyph. */
content: '';
position: absolute;
inset: -6px;
}
.sheet-head {
flex: none;
padding: 0 20px;
touch-action: none;
}
.sheet-body {
flex: 1;
min-height: 0;
overflow: hidden;
padding: 0 20px calc(var(--safe-b) + 28px);
overscroll-behavior: contain;
}
.brief-sheet .sheet-body {
transition: opacity var(--dur-2) linear;
}
.brief-sheet[data-detent='peek'] .sheet-body {
opacity: 0;
pointer-events: none;
}
.sheet-body.scrollable {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.sheet-layer.dragging .sheet-body {
overflow: hidden;
}
.sheet-title {
font-family: var(--font-display);
font-size: var(--t-title2);
font-weight: 700;
letter-spacing: -0.025em;
line-height: 1.15;
margin: 2px 0 2px;
}
.sheet-sub {
font-size: var(--t-foot);
color: var(--ink-3);
}
/* ------------------------------------------------------------------ */
/* Situation brief */
/* ------------------------------------------------------------------ */
.brief-top {
display: flex;
align-items: center;
gap: 8px;
height: 22px;
font-size: var(--t-cap);
font-weight: 650;
color: var(--ink-3);
letter-spacing: 0.02em;
padding-right: 40px;
}
.fam-tag {
display: inline-flex;
align-items: center;
gap: 5px;
height: 22px;
padding: 0 9px 0 7px;
border-radius: var(--r-pill);
color: var(--fam);
background: color-mix(in srgb, var(--fam) 16%, transparent);
font-size: var(--t-cap);
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.fam-tag .i {
font-size: 0.85rem;
}
.live-tag {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--ink-2);
}
.live-tag .live-dot {
--fam: var(--live);
width: 6px;
height: 6px;
}
.brief-title-row {
display: flex;
align-items: baseline;
gap: 10px;
}
.brief-title-row .sheet-title {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.metrics {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
margin: 12px 0 4px;
}
.metric {
min-width: 0;
}
.metric-v {
font-family: var(--font-display);
font-size: 1.5rem;
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.05;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.metric-v small {
font-size: 0.8125rem;
font-weight: 600;
color: var(--ink-3);
letter-spacing: 0;
margin-left: 2px;
}
.metric-l {
font-size: var(--t-cap2);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-3);
margin-top: 3px;
}
.metric.long .metric-v {
font-size: 1.125rem;
line-height: 1.33;
}
.metric:first-child .metric-v {
color: var(--fam);
}
.actions {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
margin: 14px 0 6px;
}
.action {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 10px 0 9px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.07);
font-size: var(--t-cap2);
font-weight: 600;
color: var(--ink-2);
transition:
transform var(--dur-1) var(--ease-out),
background var(--dur-1) linear;
}
.action .i {
font-size: 1.35rem;
color: var(--tint);
}
.action:active {
transform: scale(0.94);
}
.action[aria-pressed='true'] {
background: color-mix(in srgb, var(--fam, var(--tint)) 20%, transparent);
color: var(--ink);
}
.action[aria-pressed='true'] .i {
color: var(--fam, var(--tint));
}
.action[aria-pressed='true'] .i .f {
fill: currentColor;
stroke: none;
}
.action .i .f {
fill: none;
stroke: none;
}
.block {
margin-top: 18px;
}
.block-h {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: var(--t-foot);
font-weight: 650;
color: var(--ink-2);
margin-bottom: 8px;
}
.block-h small {
color: var(--ink-4);
font-weight: 500;
font-size: var(--t-cap2);
}
.spark-row {
display: flex;
align-items: center;
gap: 14px;
padding: 12px 14px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.05);
}
.spark-row svg {
color: var(--fam);
flex: 1;
height: 42px;
min-width: 0;
}
.spark-row .spark-line {
fill: none;
stroke: var(--fam);
stroke-width: 1.8;
stroke-linejoin: round;
stroke-linecap: round;
}
.spark-row .spark-area {
fill: url(#spark-grad);
opacity: 0.35;
}
.spark-row .spark-end {
fill: var(--fam);
}
.spark-label {
flex: none;
text-align: right;
font-size: var(--t-cap);
color: var(--ink-3);
line-height: 1.3;
}
.spark-label b {
display: block;
font-size: var(--t-headline);
color: var(--ink);
font-variant-numeric: tabular-nums;
}
.evidence {
display: flex;
gap: 10px;
overflow-x: auto;
scroll-snap-type: x mandatory;
margin: 0 -20px;
padding: 0 20px 4px;
scrollbar-width: none;
}
.evidence::-webkit-scrollbar {
display: none;
}
.ev {
position: relative;
flex: none;
color: inherit;
text-decoration: none;
width: 116px;
scroll-snap-align: start;
text-align: left;
}
.ev-img {
width: 116px;
height: 140px;
border-radius: 14px;
object-fit: cover;
background: var(--ground-3);
}
.ev-seq {
position: absolute;
top: 6px;
left: 6px;
min-width: 20px;
height: 20px;
padding: 0 6px;
border-radius: 10px;
background: rgba(5, 7, 11, 0.7);
font-size: 0.6875rem;
font-weight: 700;
display: grid;
place-items: center;
}
.ev-t {
margin-top: 6px;
font-size: var(--t-cap);
font-weight: 600;
line-height: 1.25;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.ev-s {
font-size: var(--t-cap2);
color: var(--ink-3);
margin-top: 1px;
}
.facts {
display: grid;
grid-template-columns: auto 1fr;
gap: 8px 14px;
font-size: var(--t-foot);
}
.facts dt {
color: var(--ink-3);
}
.facts dd {
margin: 0;
color: var(--ink);
min-width: 0;
overflow-wrap: anywhere;
}
.metric-table {
width: 100%;
border-collapse: collapse;
font-size: var(--t-foot);
}
.metric-table td {
padding: 8px 0;
border-bottom: 0.5px solid var(--hairline);
vertical-align: baseline;
}
.metric-table td:nth-child(2) {
text-align: right;
font-variant-numeric: tabular-nums;
font-weight: 650;
padding-left: 8px;
}
.metric-table td:nth-child(3) {
text-align: right;
color: var(--ink-3);
font-size: var(--t-cap2);
padding-left: 12px;
width: 40%;
}
.layer-chips {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.layer-chip {
height: 28px;
padding: 0 10px;
font-size: var(--t-cap);
color: var(--fam);
background: color-mix(in srgb, var(--fam) 12%, transparent);
}
.caveat {
margin-top: 14px;
padding: 12px 14px;
border-radius: 14px;
border: 0.5px dashed rgba(255, 209, 102, 0.45);
color: var(--ink-2);
font-size: var(--t-foot);
line-height: 1.4;
}
.caveat b {
color: var(--eyes);
font-size: var(--t-cap2);
letter-spacing: 0.06em;
text-transform: uppercase;
display: block;
margin-bottom: 4px;
}
+1000
View File
@@ -0,0 +1,1000 @@
/* ------------------------------------------------------------------ */
/* App frame */
/* ------------------------------------------------------------------ */
.app {
position: fixed;
inset: 0;
overflow: hidden;
isolation: isolate;
}
.stage {
position: absolute;
inset: 0;
z-index: 0;
overflow: hidden;
background: radial-gradient(
120% 70% at 50% 40%,
#0b1424 0%,
var(--ground) 70%
)
var(--ground);
}
.globe-host {
position: absolute;
inset: 0;
}
.globe-host > * {
position: absolute;
inset: 0;
}
.globe-veil {
position: absolute;
inset: 0;
pointer-events: none;
background:
linear-gradient(
to bottom,
rgba(5, 7, 11, 0.55) 0,
rgba(5, 7, 11, 0) calc(var(--safe-t) + 110px)
),
linear-gradient(to top, rgba(5, 7, 11, 0.7) 0, rgba(5, 7, 11, 0) 260px);
opacity: 1;
transition: opacity var(--dur-3) var(--ease-out);
}
.globe-chrome {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 3;
}
.globe-chrome > * {
pointer-events: auto;
}
.lead {
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
}
.view {
position: absolute;
inset: 0;
background: var(--ground);
pointer-events: auto;
}
.view[hidden],
.capture[hidden] {
display: none !important;
}
.view--scroll {
overflow-y: auto;
overflow-x: hidden;
overscroll-behavior-y: contain;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-bottom: calc(var(--chrome-bottom) + 72px);
}
.view--scroll::-webkit-scrollbar {
display: none;
}
/* The Globe tab's leading view only exists on regular widths. */
#view-globe {
display: none;
}
/* Phone: the Globe tab and an open situation reveal the stage. */
.app[data-tab='globe'] .lead,
.app.is-world .lead {
visibility: hidden;
}
.app[data-tab='globe'] .lead .view,
.app.is-world .lead .view {
pointer-events: none;
}
.app:not([data-tab='globe']):not(.is-world) .globe-chrome {
visibility: hidden;
}
.view-enter {
animation: view-in var(--dur-2) var(--ease-out) both;
}
@keyframes view-in {
from {
opacity: 0;
transform: translateY(10px) scale(0.995);
}
to {
opacity: 1;
transform: none;
}
}
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 260ms;
animation-timing-function: var(--ease-out);
}
::view-transition-old(root) {
animation-name: vt-out;
}
::view-transition-new(root) {
animation-name: vt-in;
}
@keyframes vt-out {
to {
opacity: 0;
transform: scale(0.985);
}
}
@keyframes vt-in {
from {
opacity: 0;
transform: scale(1.012);
}
}
.tabbar {
view-transition-name: tabbar;
}
::view-transition-group(tabbar) {
animation-duration: 0s;
}
/* ------------------------------------------------------------------ */
/* Navigation bar + large title */
/* ------------------------------------------------------------------ */
.navbar {
position: sticky;
top: 0;
z-index: 5;
height: calc(var(--safe-t) + 52px);
padding: var(--safe-t) calc(var(--gutter) + var(--safe-r)) 0
calc(var(--gutter) + var(--safe-l));
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
}
.navbar::before {
content: '';
position: absolute;
inset: 0;
background: rgba(8, 11, 17, 0.62);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
border-bottom: 0.5px solid var(--hairline);
opacity: 0;
transition: opacity var(--dur-1) linear;
}
.navbar > * {
position: relative;
pointer-events: auto;
}
.navbar .nav-title {
font-family: var(--font-display);
font-weight: 650;
font-size: var(--t-headline);
letter-spacing: -0.02em;
opacity: 0;
transform: translateY(6px);
transition:
opacity var(--dur-1) linear,
transform var(--dur-2) var(--ease-out);
}
.navbar .nav-leading,
.navbar .nav-trailing {
position: absolute;
top: var(--safe-t);
height: 52px;
display: flex;
align-items: center;
gap: 6px;
}
.navbar .nav-leading {
left: calc(8px + var(--safe-l));
}
.navbar .nav-trailing {
right: calc(12px + var(--safe-r));
}
.view.is-scrolled .navbar::before {
opacity: 1;
}
.view.is-scrolled .navbar .nav-title {
opacity: 1;
transform: none;
}
.large-title {
margin: -6px 0 0;
padding: 0 calc(var(--gutter) + var(--safe-r)) 2px
calc(var(--gutter) + var(--safe-l));
font-family: var(--font-display);
font-size: var(--t-large);
font-weight: 750;
letter-spacing: -0.035em;
line-height: 1.12;
transform-origin: left center;
will-change: transform;
}
.title-sub {
padding: 0 calc(var(--gutter) + var(--safe-r)) 0
calc(var(--gutter) + var(--safe-l));
color: var(--ink-3);
font-size: var(--t-foot);
font-weight: 500;
letter-spacing: 0;
display: flex;
align-items: center;
gap: 8px;
}
.title-sub .live-dot {
--fam: var(--live);
}
/* ------------------------------------------------------------------ */
/* Buttons & controls */
/* ------------------------------------------------------------------ */
.icon-btn {
width: var(--touch);
height: var(--touch);
border-radius: 50%;
display: inline-grid;
place-items: center;
font-size: 1.25rem;
color: var(--ink);
transition:
transform var(--dur-1) var(--ease-out),
background var(--dur-1) linear;
}
.icon-btn.glass,
.icon-btn.glass-strong {
font-size: 1.15rem;
}
.icon-btn:active,
.pill-btn:active,
.chip:active,
.tile:active {
transform: scale(0.94);
}
.pill-btn {
min-height: var(--touch);
padding: 0 18px;
border-radius: var(--r-pill);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: var(--t-sub);
font-weight: 600;
letter-spacing: -0.01em;
transition: transform var(--dur-1) var(--ease-out);
white-space: nowrap;
}
.pill-btn .i {
font-size: 1.1em;
}
.pill-btn.primary {
background: var(--ink);
color: #05070b;
}
.pill-btn.tinted {
background: color-mix(in srgb, var(--fam, var(--tint)) 22%, transparent);
color: var(--fam, var(--tint));
}
.pill-btn.plain {
background: rgba(255, 255, 255, 0.08);
}
.pill-btn.seal {
background: linear-gradient(180deg, #f3cd7f, #c8913a);
color: #2a1a00;
}
.chip {
display: inline-flex;
align-items: center;
gap: 6px;
height: 32px;
padding: 0 12px;
border-radius: var(--r-pill);
font-size: var(--t-foot);
font-weight: 600;
white-space: nowrap;
transition:
transform var(--dur-1) var(--ease-out),
background var(--dur-1) linear,
color var(--dur-1) linear;
}
.segmented {
position: relative;
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
padding: 3px;
border-radius: var(--r-pill);
background: rgba(118, 128, 150, 0.16);
gap: 0;
}
.segmented button {
position: relative;
z-index: 1;
min-height: 34px;
padding: 0 10px;
font-size: var(--t-foot);
font-weight: 600;
color: var(--ink-2);
border-radius: var(--r-pill);
white-space: nowrap;
transition: color var(--dur-1) linear;
}
.segmented button[aria-pressed='true'],
.segmented button[aria-selected='true'] {
color: var(--ink);
}
.segmented .seg-thumb {
position: absolute;
z-index: 0;
top: 3px;
bottom: 3px;
left: 0;
border-radius: var(--r-pill);
background: rgba(255, 255, 255, 0.14);
box-shadow:
inset 0 0.5px 0 rgba(255, 255, 255, 0.3),
0 3px 10px rgba(0, 0, 0, 0.25);
transition:
transform var(--dur-3) var(--spring),
width var(--dur-3) var(--spring);
}
/* ------------------------------------------------------------------ */
/* Tab bar (iOS 26 floating glass) */
/* ------------------------------------------------------------------ */
.tabbar {
position: absolute;
z-index: 40;
left: calc(12px + var(--safe-l));
right: calc(12px + var(--safe-r));
bottom: var(--tabbar-gap);
height: var(--tabbar-h);
pointer-events: none;
transition:
transform var(--dur-3) var(--spring-soft),
opacity var(--dur-2) linear;
}
.app.is-world .tabbar,
.app.hide-tabbar .tabbar {
transform: translateY(calc(100% + var(--tabbar-gap) + 80px));
opacity: 0;
}
.tb-full,
.tb-mini {
position: absolute;
inset: 0;
display: flex;
align-items: stretch;
gap: 10px;
transition:
transform var(--dur-3) var(--spring),
opacity var(--dur-2) var(--ease-out);
}
.tb-full {
pointer-events: auto;
}
.tb-mini {
pointer-events: none;
opacity: 0;
transform: translateY(8px) scale(1.04);
}
.tabbar.min .tb-full {
opacity: 0;
transform: translateY(10px) scale(0.92);
pointer-events: none;
}
.tabbar.min .tb-full .tb-accessory {
transform: translateY(30px);
}
.tabbar.min .tb-mini {
opacity: 1;
transform: none;
pointer-events: auto;
}
.tb-tabs,
.tabbar .tb-search,
.tb-accessory,
.tb-mini-tab,
.tb-mini-acc {
background: var(--glass-specular), rgba(16, 20, 28, 0.82);
-webkit-backdrop-filter: blur(26px) saturate(1.8);
backdrop-filter: blur(26px) saturate(1.8);
box-shadow:
inset 0 0.5px 0 rgba(255, 255, 255, 0.34),
inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}
.tb-tabs {
position: relative;
flex: 1;
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
border-radius: var(--r-pill);
padding: 4px;
overflow: hidden;
}
.tb-tabs::after,
.tb-search::after,
.tb-accessory::after,
.tb-mini-tab::after,
.liquid::after {
/* Liquid-glass specular edge. */
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.16),
rgba(255, 255, 255, 0) 40%,
rgba(255, 255, 255, 0) 70%,
rgba(255, 255, 255, 0.06)
);
mix-blend-mode: screen;
}
.tb-lens {
position: absolute;
top: 4px;
bottom: 4px;
left: 4px;
border-radius: var(--r-pill);
background: rgba(255, 255, 255, 0.13);
box-shadow:
inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
inset 0 -0.5px 0 rgba(255, 255, 255, 0.08);
transition:
transform var(--dur-3) var(--spring),
width var(--dur-3) var(--spring);
pointer-events: none;
}
.tb-tab {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
min-width: 0;
color: var(--ink-2);
border-radius: var(--r-pill);
transition: color var(--dur-1) linear;
}
.tb-tab .i {
font-size: 1.5rem;
transition: transform var(--dur-2) var(--spring);
}
.tb-tab .i .f {
fill: currentColor;
fill-opacity: 0;
stroke: none;
transition: fill-opacity var(--dur-1) linear;
}
.tb-tab[aria-selected='true'] {
color: var(--tint);
}
.tb-tab[aria-selected='true'] .i .f {
fill-opacity: 0.22;
}
.tb-tab:active .i {
transform: scale(0.86);
}
.tb-label {
font-size: 0.625rem;
font-weight: 600;
letter-spacing: 0.01em;
line-height: 1;
white-space: nowrap;
}
.tb-search {
position: relative;
flex: none;
width: var(--tabbar-h);
height: var(--tabbar-h);
border-radius: 50%;
display: grid;
place-items: center;
font-size: 1.4rem;
color: var(--ink);
}
.tb-accessory {
position: absolute;
left: 0;
right: calc(var(--tabbar-h) + 10px);
bottom: calc(100% + 8px);
height: 48px;
border-radius: var(--r-pill);
display: flex;
align-items: center;
gap: 10px;
padding: 0 8px 0 14px;
text-align: left;
transition:
transform var(--dur-3) var(--spring),
opacity var(--dur-2) linear;
}
.tb-accessory[hidden] {
display: none;
}
.acc-glyph {
width: 30px;
height: 30px;
border-radius: 50%;
flex: none;
display: grid;
place-items: center;
color: #05070b;
background: var(--fam);
font-size: 1rem;
position: relative;
}
.acc-glyph::before {
content: '';
position: absolute;
inset: -3px;
border-radius: 50%;
border: 1.5px solid var(--fam);
opacity: 0.6;
animation: acc-ring 2.2s var(--ease-out) infinite;
}
.acc-text {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
line-height: 1.15;
}
.acc-title {
font-size: var(--t-foot);
font-weight: 650;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.acc-meta {
font-size: var(--t-cap2);
color: var(--ink-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.acc-metric {
font-size: var(--t-foot);
font-weight: 700;
color: var(--fam);
padding-right: 4px;
}
.tb-mini-tab {
position: relative;
flex: none;
width: var(--tabbar-h);
height: var(--tabbar-h);
border-radius: 50%;
display: grid;
place-items: center;
font-size: 1.5rem;
color: var(--tint);
}
.tb-mini-tab .i .f {
fill: currentColor;
fill-opacity: 0.22;
stroke: none;
}
.tb-mini-acc {
position: relative;
flex: 1;
min-width: 0;
height: var(--tabbar-h);
border-radius: var(--r-pill);
display: flex;
align-items: center;
gap: 10px;
padding: 0 14px;
text-align: left;
}
.tb-mini-acc[hidden] {
visibility: hidden;
}
/* ------------------------------------------------------------------ */
/* Toast */
/* ------------------------------------------------------------------ */
.toast {
position: fixed;
z-index: 100;
left: 50%;
top: calc(var(--safe-t) + 10px);
transform: translate(-50%, -140%);
padding: 10px 16px;
border-radius: var(--r-pill);
display: flex;
gap: 8px;
align-items: center;
font-size: var(--t-foot);
font-weight: 600;
max-width: calc(100vw - 32px);
transition: transform var(--dur-3) var(--spring);
pointer-events: none;
}
.toast .i {
font-size: 1.1rem;
}
.toast.show {
transform: translate(-50%, 0);
}
/* ------------------------------------------------------------------ */
/* Inset grouped lists (Settings-style) */
/* ------------------------------------------------------------------ */
.section-h {
display: flex;
align-items: baseline;
justify-content: space-between;
padding: 22px calc(var(--gutter) + 4px + var(--safe-r)) 8px
calc(var(--gutter) + 4px + var(--safe-l));
font-size: var(--t-title3);
font-weight: 700;
letter-spacing: -0.02em;
}
.section-h small {
font-size: var(--t-foot);
font-weight: 500;
color: var(--ink-3);
letter-spacing: 0;
}
.group {
margin: 0 calc(var(--gutter) + var(--safe-r)) 0
calc(var(--gutter) + var(--safe-l));
border-radius: var(--r-md);
background: var(--ground-2);
overflow: hidden;
}
.row {
position: relative;
display: flex;
align-items: center;
gap: 12px;
min-height: 52px;
padding: 10px 16px;
width: 100%;
text-align: left;
}
.row + .row::before {
content: '';
position: absolute;
top: 0;
left: 58px;
right: 0;
border-top: 0.5px solid var(--hairline);
}
.row-icon {
width: 30px;
height: 30px;
flex: none;
border-radius: 8px;
display: grid;
place-items: center;
font-size: 1.05rem;
color: #05070b;
background: var(--fam, var(--tint));
}
.row-main {
flex: 1;
min-width: 0;
}
.row-title,
.row-sub {
display: block;
}
.row-title {
font-size: var(--t-callout);
font-weight: 500;
}
.row-sub {
font-size: var(--t-foot);
color: var(--ink-3);
margin-top: 1px;
}
.row-value {
color: var(--ink-3);
font-size: var(--t-callout);
}
.row .chev {
color: var(--ink-4);
font-size: 0.9rem;
}
.footnote {
padding: 8px calc(var(--gutter) + 4px + var(--safe-r)) 0
calc(var(--gutter) + 4px + var(--safe-l));
font-size: var(--t-foot);
color: var(--ink-3);
line-height: 1.4;
}
/* iOS switch */
.switch {
position: relative;
width: 51px;
height: 31px;
flex: none;
border-radius: 16px;
background: rgba(120, 120, 128, 0.32);
transition: background var(--dur-2) linear;
}
.switch::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 27px;
height: 27px;
border-radius: 50%;
background: #fff;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
transition: transform var(--dur-3) var(--spring);
}
.switch[aria-checked='true'] {
background: var(--fam, var(--ok));
}
.switch[aria-checked='true']::after {
transform: translateX(20px);
}
input[type='range'].slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 28px;
background: transparent;
}
input[type='range'].slider::-webkit-slider-runnable-track {
height: 4px;
border-radius: 2px;
background: linear-gradient(
90deg,
var(--tint) var(--p, 50%),
rgba(120, 120, 128, 0.32) var(--p, 50%)
);
}
input[type='range'].slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 26px;
height: 26px;
margin-top: -11px;
border-radius: 50%;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
input[type='range'].slider::-moz-range-track {
height: 4px;
border-radius: 2px;
background: rgba(120, 120, 128, 0.32);
}
input[type='range'].slider::-moz-range-thumb {
width: 26px;
height: 26px;
border: 0;
border-radius: 50%;
background: #fff;
}
.badge-example {
display: inline-flex;
align-items: center;
height: 18px;
padding: 0 7px;
border-radius: 5px;
font-size: 0.625rem;
font-weight: 750;
letter-spacing: 0.06em;
text-transform: uppercase;
color: #1b1300;
background: var(--eyes);
white-space: nowrap;
}
.badge-sim {
color: var(--ink-2);
background: rgba(255, 255, 255, 0.1);
}
.noscript {
padding: 40px 20px;
text-align: center;
}
/* Search */
.search-field {
display: flex;
align-items: center;
gap: 8px;
height: 44px;
padding: 0 12px;
border-radius: 14px;
background: rgba(118, 128, 150, 0.2);
color: var(--ink-3);
font-size: 1.1rem;
}
.search-field input {
flex: 1;
min-width: 0;
border: 0;
background: transparent;
font-size: var(--t-body);
color: var(--ink);
outline: none;
}
.search-field input::placeholder {
color: var(--ink-3);
}
.result {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
padding: 10px 4px;
text-align: left;
border-bottom: 0.5px solid var(--hairline);
}
.result-thumb {
width: 44px;
height: 44px;
border-radius: 10px;
object-fit: cover;
background: var(--ground-3);
flex: none;
}
.result-icon {
width: 44px;
height: 44px;
border-radius: 10px;
flex: none;
display: grid;
place-items: center;
font-size: 1.2rem;
color: var(--fam, var(--ink-2));
background: color-mix(in srgb, var(--fam, #fff) 14%, transparent);
}
.result-title {
font-weight: 600;
font-size: var(--t-callout);
}
.result-sub {
font-size: var(--t-foot);
color: var(--ink-3);
}
.results-h {
margin: 18px 4px 4px;
font-size: var(--t-foot);
font-weight: 650;
color: var(--ink-3);
text-transform: uppercase;
letter-spacing: 0.04em;
}
@keyframes acc-ring {
0% {
transform: scale(0.9);
opacity: 0.7;
}
100% {
transform: scale(1.35);
opacity: 0;
}
}
File diff suppressed because it is too large. Load diff
+365
View File
@@ -0,0 +1,365 @@
/*
* God's Eye — mobile design tokens.
* One ground, one light source (the globe), glass over it.
* Signal colours are reserved for meaning (DESIGN.md §4).
*/
:root {
color-scheme: dark;
/* Ground */
--ground: #05070b;
--ground-1: #0a0e15;
--ground-2: #10151e;
--ground-3: #171d28;
--hairline: rgba(255, 255, 255, 0.08);
--hairline-strong: rgba(255, 255, 255, 0.14);
/* Ink */
--ink: #f4f7fb;
--ink-2: rgba(235, 241, 250, 0.72);
--ink-3: rgba(235, 241, 250, 0.5);
--ink-4: rgba(235, 241, 250, 0.3);
/* Signals (reserved) */
--sky: #7cc4ff;
--sea: #38e1c6;
--orbit: #c9a7ff;
--hazards: #ff6a3d;
--eyes: #ffd166;
--ground-sig: #9be15d;
--weather: #8ab4f8;
--infra: #b8c0cc;
--seal: #e8b75c;
--seal-2: #ffdf9e;
--live: #ff453a;
--ok: #30d158;
--warn: #ffd60a;
--bad: #ff453a;
--tint: #7cc4ff;
/* Glass */
--glass-bg: rgba(22, 27, 37, 0.52);
--glass-bg-strong: rgba(18, 22, 31, 0.74);
--glass-blur: blur(24px) saturate(1.6);
--glass-edge:
inset 0 0.5px 0 0 rgba(255, 255, 255, 0.32),
inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
--glass-specular: radial-gradient(
120% 80% at 30% -20%,
rgba(255, 255, 255, 0.18),
rgba(255, 255, 255, 0) 60%
);
/* Geometry */
--r-xs: 8px;
--r-sm: 12px;
--r-md: 18px;
--r-lg: 24px;
--r-xl: 28px;
--r-pill: 999px;
--touch: 44px;
--gutter: 16px;
/* Safe areas */
--safe-t: env(safe-area-inset-top, 0px);
--safe-b: env(safe-area-inset-bottom, 0px);
--safe-l: env(safe-area-inset-left, 0px);
--safe-r: env(safe-area-inset-right, 0px);
--tabbar-h: 62px;
--tabbar-gap: max(10px, calc(var(--safe-b) - 8px));
--chrome-bottom: calc(var(--tabbar-h) + var(--tabbar-gap) + 10px);
/* Type (rem-based so Dynamic Type / browser zoom scales it) */
--font:
system-ui, -apple-system, 'SF Pro Text', 'Roboto Flex', Roboto, 'Segoe UI',
sans-serif;
--font-display:
system-ui, -apple-system, 'SF Pro Display', 'Roboto Flex', Roboto,
'Segoe UI', sans-serif;
--font-rounded: ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
--mono:
ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, 'Roboto Mono', monospace;
--t-large: 2.125rem; /* 34 pt */
--t-title2: 1.375rem;
--t-title3: 1.25rem;
--t-headline: 1.0625rem;
--t-body: 1.0625rem;
--t-callout: 1rem;
--t-sub: 0.9375rem;
--t-foot: 0.8125rem;
--t-cap: 0.75rem;
--t-cap2: 0.6875rem;
/* Motion. Springs are sampled with linear() where supported. */
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
--spring: cubic-bezier(0.32, 1.25, 0.4, 1);
--spring-soft: cubic-bezier(0.25, 1.1, 0.4, 1);
--dur-1: 160ms;
--dur-2: 280ms;
--dur-3: 460ms;
/* Layout */
--lead-w: 100vw;
}
@supports (transition-timing-function: linear(0, 1)) {
:root {
/* Critically-damped-ish spring (response 0.42, damping 0.82). */
--spring: linear(
0,
0.009,
0.035 2.1%,
0.141 4.4%,
0.723 12.9%,
0.938 16.7%,
1.017 19.8%,
1.067,
1.089 25.9%,
1.085 29.1%,
1.05 35.4%,
1.016 42.4%,
0.999 51.8%,
0.996 58.3%,
1
);
--spring-soft: linear(
0,
0.06 3%,
0.25 7.5%,
0.6 15%,
0.84 22%,
0.96 30%,
1.012 38%,
1.02 46%,
1.006 60%,
1
);
}
}
@media (prefers-reduced-motion: reduce) {
:root {
--dur-1: 1ms;
--dur-2: 120ms;
--dur-3: 160ms;
}
}
:root[data-reduce-motion='on'] {
--dur-1: 1ms;
--dur-2: 120ms;
--dur-3: 160ms;
}
/* Base */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
background: var(--ground);
color: var(--ink);
font-family: var(--font);
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
height: 100%;
overscroll-behavior: none;
}
body {
margin: 0;
min-height: 100%;
height: 100%;
overflow: hidden;
background: var(--ground);
font-size: var(--t-body);
line-height: 1.32;
letter-spacing: -0.012em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: 'kern', 'ss01';
overscroll-behavior: none;
touch-action: manipulation;
}
button {
font: inherit;
color: inherit;
background: none;
border: 0;
padding: 0;
margin: 0;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
touch-action: manipulation;
}
input,
textarea,
select {
font: inherit;
color: inherit;
}
img {
display: block;
max-width: 100%;
}
svg.i {
width: 1em;
height: 1em;
display: inline-block;
flex: none;
overflow: visible;
}
:focus {
outline: none;
}
:focus-visible {
outline: 2.5px solid var(--tint);
outline-offset: 2px;
border-radius: 10px;
}
.tnum,
.num {
font-variant-numeric: tabular-nums;
font-feature-settings: 'tnum';
}
.mono {
font-family: var(--mono);
font-variant-numeric: tabular-nums;
letter-spacing: 0;
}
.sr-only {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Glass primitive */
.glass {
background: var(--glass-specular), var(--glass-bg);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
box-shadow: var(--glass-edge);
}
.glass-strong {
background: var(--glass-specular), var(--glass-bg-strong);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
box-shadow: var(--glass-edge);
}
/* Family colour binding */
[data-family='sky'] {
--fam: var(--sky);
}
[data-family='sea'] {
--fam: var(--sea);
}
[data-family='orbit'] {
--fam: var(--orbit);
}
[data-family='hazards'] {
--fam: var(--hazards);
}
[data-family='eyes'] {
--fam: var(--eyes);
}
[data-family='ground'] {
--fam: var(--ground-sig);
}
[data-family='weather'] {
--fam: var(--weather);
}
[data-family='infra'] {
--fam: var(--infra);
}
@keyframes pulse-ring {
0% {
transform: scale(0.6);
opacity: 0.85;
}
100% {
transform: scale(2.4);
opacity: 0;
}
}
@keyframes shimmer {
0% {
background-position: -180% 0;
}
100% {
background-position: 180% 0;
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes breathe {
0%,
100% {
opacity: 0.55;
}
50% {
opacity: 1;
}
}
.live-dot {
position: relative;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--fam, var(--live));
flex: none;
}
.live-dot::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: inherit;
animation: pulse-ring 1.8s var(--ease-out) infinite;
}
.live-dot.stale {
background: transparent;
outline: 1.25px dotted var(--ink-3);
}
.live-dot.stale::after {
display: none;
}
@media (prefers-reduced-motion: reduce) {
.live-dot::after {
animation: none;
}
}