brainrot-lab / styles.css
abidlabs's picture
abidlabs HF Staff
Publish Brainrot Lab attention clinic
baad6ae verified
Raw
History Blame Contribute Delete
20.1 kB
:root {
--wall: #7ec9b0;
--wall-deep: #5fad96;
--ink: #14213d;
--ink-soft: #3d4f6f;
--paper: #fff6e8;
--paper-edge: #f0e2c8;
--stamp: #d62828;
--stamp-ink: rgba(214, 40, 40, 0.82);
--highlight: #ffe566;
--ok: #1b7f5a;
--phone: #101820;
--phone-face: #162029;
--radius: 4px;
--pad: max(18px, env(safe-area-inset-left));
--pad-r: max(18px, env(safe-area-inset-right));
--pad-b: max(22px, env(safe-area-inset-bottom));
--pad-t: max(18px, env(safe-area-inset-top));
--display: "Syne", system-ui, sans-serif;
--body: "Public Sans", system-ui, sans-serif;
--mono: "IBM Plex Mono", ui-monospace, monospace;
--shadow-ticket: 4px 4px 0 rgba(20, 33, 61, 0.18);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
background: var(--wall);
color: var(--ink);
font-family: var(--body);
-webkit-tap-highlight-color: transparent;
overscroll-behavior: none;
}
body {
min-height: 100dvh;
}
.wall {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(ellipse 90% 60% at 10% -10%, rgba(255, 255, 255, 0.35), transparent 55%),
radial-gradient(ellipse 70% 50% at 100% 100%, rgba(95, 173, 150, 0.9), transparent 50%),
repeating-linear-gradient(
90deg,
transparent,
transparent 47px,
rgba(20, 33, 61, 0.035) 47px,
rgba(20, 33, 61, 0.035) 48px
),
var(--wall);
}
.app {
position: relative;
z-index: 1;
width: min(430px, 100%);
margin: 0 auto;
min-height: 100dvh;
padding: var(--pad-t) var(--pad) var(--pad-b) var(--pad-r);
}
.app.run-active {
padding-top: calc(var(--pad-t) + 64px);
}
.screen {
display: none;
flex-direction: column;
gap: 1rem;
min-height: calc(100dvh - var(--pad-t) - var(--pad-b));
animation: rise 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.app.run-active .screen {
min-height: calc(100dvh - var(--pad-t) - var(--pad-b) - 64px);
}
.screen.active {
display: flex;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
.screen,
.stamp,
.chart-bar > i,
.feed-card,
.freeze-banner {
animation: none !important;
transition: none !important;
}
}
.clinic-tag {
margin: 0;
font-family: var(--mono);
font-size: 0.68rem;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--ink-soft);
}
.brand {
margin-top: 0.15rem;
}
.logo {
margin: 0;
font-family: var(--display);
font-weight: 800;
font-size: clamp(3.2rem, 14vw, 4.6rem);
line-height: 0.85;
letter-spacing: -0.06em;
}
.logo-brain {
color: var(--ink);
}
.logo-rot {
color: var(--stamp);
position: relative;
}
.logo-rot::after {
content: "";
position: absolute;
left: -4%;
right: -4%;
top: 42%;
height: 3px;
background: var(--stamp);
transform: rotate(-8deg);
opacity: 0.85;
}
.logo-sub {
margin: 0.55rem 0 0;
font-family: var(--mono);
font-size: 0.78rem;
letter-spacing: 0.42em;
text-indent: 0.42em;
color: var(--ink-soft);
}
.screen[data-screen="home"] {
gap: 0.85rem;
}
.tagline {
margin: 0.75rem 0 0;
max-width: 28ch;
font-size: 1.02rem;
line-height: 1.4;
color: var(--ink-soft);
font-weight: 600;
}
.screen[data-screen="home"] {
gap: 0.7rem;
justify-content: space-between;
}
.intake-stub {
margin-top: 0;
display: grid;
grid-template-columns: 12px 1fr;
background: var(--paper);
box-shadow: var(--shadow-ticket);
border: 2px solid var(--ink);
}
.stub-body {
padding: 0.7rem 0.85rem 0.8rem;
}
.home-actions {
display: flex;
flex-direction: column;
gap: 0.55rem;
padding-bottom: 0.15rem;
}
.cta {
appearance: none;
border: 2px solid var(--ink);
border-radius: var(--radius);
padding: 0.8rem 1rem;
background: var(--ink);
color: var(--paper);
font-family: var(--display);
font-weight: 800;
font-size: 1.08rem;
letter-spacing: -0.03em;
cursor: pointer;
width: 100%;
text-align: left;
box-shadow: 3px 3px 0 rgba(20, 33, 61, 0.25);
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.stub-perf {
background:
radial-gradient(circle at 7px 10px, var(--wall) 5px, transparent 6px) 0 0 / 14px 18px;
border-right: 2px dashed var(--paper-edge);
}
.stub-body {
padding: 0.85rem 1rem 1rem;
}
.stub-row {
display: flex;
justify-content: space-between;
gap: 1rem;
font-family: var(--mono);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--ink-soft);
margin-bottom: 0.35rem;
}
.stub-row strong {
color: var(--ink);
font-weight: 600;
}
.stub-note {
margin: 0.55rem 0 0;
font-family: var(--mono);
font-size: 0.68rem;
color: var(--ink-soft);
}
.chart-bar {
height: 16px;
background: repeating-linear-gradient(
-45deg,
var(--paper-edge),
var(--paper-edge) 4px,
#ffe9b8 4px,
#ffe9b8 8px
);
border: 2px solid var(--ink);
position: relative;
overflow: hidden;
}
.chart-bar.thin {
height: 10px;
}
.chart-bar > i {
display: block;
height: 100%;
width: 18%;
background: linear-gradient(90deg, var(--ok), var(--highlight), var(--stamp));
transition: width 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.home-actions {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.cta {
appearance: none;
border: 2px solid var(--ink);
border-radius: var(--radius);
padding: 0.95rem 1.1rem;
background: var(--ink);
color: var(--paper);
font-family: var(--display);
font-weight: 800;
font-size: 1.15rem;
letter-spacing: -0.03em;
cursor: pointer;
width: 100%;
text-align: left;
box-shadow: 3px 3px 0 rgba(20, 33, 61, 0.25);
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.cta .cta-meta {
font-family: var(--mono);
font-size: 0.68rem;
font-weight: 400;
letter-spacing: 0.02em;
opacity: 0.7;
}
.cta.ghost {
background: var(--paper);
color: var(--ink);
}
.cta:active {
transform: translate(2px, 2px);
box-shadow: 1px 1px 0 rgba(20, 33, 61, 0.25);
}
.cta:focus-visible,
.back:focus-visible,
.probe:focus-visible,
.dpad-btn:focus-visible,
.link-choice:focus-visible,
.hotspot:focus-visible {
outline: 3px solid var(--highlight);
outline-offset: 2px;
}
.cta:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.eyebrow {
margin: 0;
font-family: var(--mono);
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--ink-soft);
}
.eyebrow.ink {
color: var(--ink-soft);
}
.screen-head {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.75rem;
align-items: start;
}
.screen-head.tight,
.probe-head {
align-items: center;
}
.screen-head h2 {
margin: 0.1rem 0 0;
font-family: var(--display);
font-weight: 800;
font-size: 1.55rem;
letter-spacing: -0.04em;
line-height: 1;
}
.back {
width: 44px;
height: 44px;
border: 2px solid var(--ink);
background: var(--paper);
color: var(--ink);
font-size: 1.15rem;
cursor: pointer;
border-radius: var(--radius);
box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.15);
}
.timer {
font-family: var(--mono);
font-weight: 600;
font-size: 1rem;
min-width: 3.6ch;
text-align: right;
background: var(--highlight);
border: 2px solid var(--ink);
padding: 0.25rem 0.4rem;
}
.run-hud {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: min(430px, 100%);
z-index: 30;
padding: var(--pad-t) var(--pad) 0.4rem var(--pad-r);
background: linear-gradient(180deg, var(--wall) 60%, transparent);
}
.run-hud-inner {
padding: 0.65rem 0.8rem;
}
.run-hud-row {
display: flex;
justify-content: space-between;
align-items: baseline;
font-family: var(--mono);
font-size: 0.72rem;
margin-bottom: 0.35rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.run-hud-row strong {
font-size: 1rem;
color: var(--stamp);
}
.ticket {
background: var(--paper);
border: 2px solid var(--ink);
box-shadow: var(--shadow-ticket);
position: relative;
}
.ticket::before {
content: "";
position: absolute;
inset: 5px;
border: 1px dashed var(--paper-edge);
pointer-events: none;
}
.probe-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.lab-intro {
margin-top: -0.2rem;
}
.probe {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.8rem;
align-items: center;
width: 100%;
padding: 0.9rem 0.95rem;
text-align: left;
font: inherit;
color: var(--ink);
cursor: pointer;
background: var(--paper);
border: 2px solid var(--ink);
box-shadow: 3px 3px 0 rgba(20, 33, 61, 0.14);
border-radius: var(--radius);
}
.probe:active {
transform: translate(1px, 1px);
box-shadow: 1px 1px 0 rgba(20, 33, 61, 0.14);
}
.probe-id {
font-family: var(--mono);
font-size: 0.72rem;
font-weight: 600;
background: var(--highlight);
border: 1.5px solid var(--ink);
padding: 0.2rem 0.35rem;
}
.probe-copy strong {
display: block;
font-family: var(--display);
font-weight: 800;
font-size: 1.05rem;
letter-spacing: -0.03em;
margin-bottom: 0.12rem;
}
.probe-copy span {
font-size: 0.84rem;
color: var(--ink-soft);
line-height: 1.35;
}
.probe-badge {
font-family: var(--mono);
font-size: 0.65rem;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 0.35rem 0.45rem;
border: 1.5px solid var(--ink);
background: #d8f3e8;
white-space: nowrap;
}
.probe-badge.score {
background: #ffd0d0;
color: var(--stamp);
}
.profile-card {
margin-top: auto;
padding: 1rem;
}
.ticket-head {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 0.75rem;
position: relative;
z-index: 1;
}
.ticket-id {
font-family: var(--mono);
font-size: 0.68rem;
color: var(--ink-soft);
}
.trait-bars {
display: flex;
flex-direction: column;
gap: 0.7rem;
position: relative;
z-index: 1;
}
.trait-row {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.3rem 0.7rem;
font-size: 0.82rem;
}
.trait-row .bar {
grid-column: 1 / -1;
height: 10px;
border: 1.5px solid var(--ink);
background: var(--paper-edge);
overflow: hidden;
}
.trait-row .bar > i {
display: block;
height: 100%;
background: linear-gradient(90deg, var(--ok), var(--highlight), var(--stamp));
}
.trait-row strong {
font-family: var(--mono);
font-size: 0.78rem;
}
.probe-brief {
margin: 0;
color: var(--ink-soft);
line-height: 1.45;
font-size: 0.95rem;
font-weight: 600;
}
.probe-brief em {
color: var(--stamp);
font-style: normal;
background: var(--highlight);
padding: 0 0.2em;
}
.phone-bezel {
flex: 1;
min-height: 280px;
background: var(--phone);
border: 3px solid var(--ink);
border-radius: 22px;
padding: 0.55rem 0.45rem 0.65rem;
box-shadow: 5px 5px 0 rgba(20, 33, 61, 0.2);
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.phone-notch {
width: 38%;
height: 8px;
margin: 0 auto;
border-radius: 999px;
background: #0a1014;
}
.feed-stage,
.map-stage,
.scene-stage,
.link-card {
position: relative;
flex: 1;
min-height: 220px;
overflow: hidden;
}
.feed-stage {
background: var(--phone-face);
border-radius: 14px;
border: 1px solid rgba(255, 246, 232, 0.08);
touch-action: pan-y;
min-height: 0;
}
.feed {
height: 100%;
overflow-y: auto;
overscroll-behavior: contain;
padding: 0.65rem;
display: flex;
flex-direction: column;
gap: 0.55rem;
-webkit-overflow-scrolling: touch;
color: #f3efe6;
}
.feed.locked {
overflow: hidden;
pointer-events: none;
}
.feed-card {
flex: 0 0 auto;
padding: 0.8rem;
border-radius: 10px;
background: rgba(255, 246, 232, 0.06);
border: 1px solid rgba(255, 246, 232, 0.1);
min-height: 78px;
}
.feed-card .handle {
font-family: var(--mono);
font-size: 0.68rem;
color: rgba(255, 246, 232, 0.45);
margin-bottom: 0.3rem;
}
.feed-card .body {
font-size: 0.92rem;
line-height: 1.35;
}
.feed-card.bait {
border-color: rgba(255, 229, 102, 0.55);
background: rgba(255, 229, 102, 0.08);
}
.feed-card.target {
border-color: #3dd68c;
background: rgba(61, 214, 140, 0.12);
animation: pulse 600ms ease infinite alternate;
}
@keyframes pulse {
from {
transform: scale(1);
}
to {
transform: scale(1.012);
}
}
.freeze-banner {
position: absolute;
inset: 0;
display: grid;
place-items: center;
background: rgba(61, 214, 140, 0.2);
backdrop-filter: blur(2px);
font-family: var(--display);
font-weight: 800;
font-size: clamp(2.4rem, 12vw, 3.4rem);
letter-spacing: -0.05em;
color: #3dd68c;
pointer-events: none;
}
.probe-actions {
display: flex;
gap: 0.55rem;
}
.probe-actions.stacked {
flex-direction: column;
}
.mission-chip {
padding: 0.75rem 0.9rem;
background: var(--highlight);
border: 2px solid var(--ink);
font-size: 0.92rem;
line-height: 1.35;
font-weight: 600;
box-shadow: 3px 3px 0 rgba(20, 33, 61, 0.12);
}
.map-stage.sketch,
.scene-stage.sketch {
background: var(--paper);
border: 2px solid var(--ink);
box-shadow: var(--shadow-ticket);
background-image:
linear-gradient(rgba(20, 33, 61, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(20, 33, 61, 0.05) 1px, transparent 1px);
background-size: 18px 18px;
}
.map-stage {
display: grid;
place-items: center;
padding: 0.75rem;
}
.map-grid {
display: grid;
gap: 5px;
width: 100%;
max-width: 300px;
}
.cell {
aspect-ratio: 1;
border: 1.5px solid rgba(20, 33, 61, 0.2);
background: rgba(255, 246, 232, 0.7);
display: grid;
place-items: center;
font-size: 0.58rem;
font-family: var(--mono);
color: var(--ink-soft);
text-align: center;
padding: 2px;
line-height: 1.05;
}
.cell.wall {
background: var(--ink);
border-color: var(--ink);
}
.cell.goal {
border-color: var(--ok);
border-width: 2px;
background: #d8f3e8;
color: var(--ok);
font-weight: 600;
}
.cell .mark {
color: var(--stamp);
font-size: 0.55rem;
font-weight: 600;
}
.you {
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--stamp);
border: 2px solid var(--ink);
position: relative;
}
.you::after {
content: "";
position: absolute;
width: 0;
height: 0;
border: 5px solid transparent;
}
.you.dir-0::after {
top: -9px;
left: 50%;
transform: translateX(-50%);
border-bottom-color: var(--ink);
}
.you.dir-1::after {
top: 50%;
right: -9px;
transform: translateY(-50%);
border-left-color: var(--ink);
}
.you.dir-2::after {
bottom: -9px;
left: 50%;
transform: translateX(-50%);
border-top-color: var(--ink);
}
.you.dir-3::after {
top: 50%;
left: -9px;
transform: translateY(-50%);
border-right-color: var(--ink);
}
.dpad {
display: grid;
grid-template-columns: 1fr 1.35fr 1fr;
gap: 0.5rem;
}
.dpad-btn {
appearance: none;
min-height: 54px;
border: 2px solid var(--ink);
background: var(--paper);
color: var(--ink);
font-family: var(--display);
font-weight: 800;
font-size: 1.1rem;
cursor: pointer;
border-radius: var(--radius);
box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.15);
}
.dpad-btn.primary {
background: var(--ink);
color: var(--paper);
font-size: 1rem;
letter-spacing: -0.02em;
}
.dpad-btn:active {
transform: translate(1px, 1px);
box-shadow: none;
}
.scene-stage {
touch-action: manipulation;
}
.scene-svg {
width: 100%;
height: 100%;
display: block;
}
.hotspot {
cursor: pointer;
fill: transparent;
stroke: transparent;
}
.hotspot.found {
fill: rgba(27, 127, 90, 0.25);
stroke: var(--ok);
stroke-width: 2;
}
.hotspot.miss {
fill: rgba(214, 40, 40, 0.2);
stroke: var(--stamp);
stroke-width: 2;
}
.compose-card {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.compose-card > * {
position: relative;
z-index: 1;
}
.stem {
margin: 0;
font-family: var(--display);
font-weight: 800;
font-size: 1.35rem;
letter-spacing: -0.035em;
line-height: 1.2;
}
.suggest-row {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.chip {
font-family: var(--mono);
font-size: 0.68rem;
padding: 0.35rem 0.5rem;
border: 1.5px dashed var(--ink-soft);
color: var(--ink-soft);
background: rgba(20, 33, 61, 0.04);
}
.ac-input {
width: 100%;
border: 2px solid var(--ink);
background: #fff;
color: var(--ink);
padding: 0.85rem;
font: inherit;
font-size: 1.05rem;
resize: none;
min-height: 110px;
border-radius: var(--radius);
}
.link-card {
padding: 1.1rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
overflow: auto;
color: var(--ink);
}
.link-card > * {
position: relative;
z-index: 1;
}
.link-card h3 {
margin: 0;
font-family: var(--display);
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -0.03em;
}
.link-card p {
margin: 0;
color: var(--ink-soft);
line-height: 1.4;
font-size: 0.95rem;
font-weight: 600;
}
.link-choice {
appearance: none;
width: 100%;
text-align: left;
padding: 0.9rem 1rem;
border: 2px solid var(--ink);
background: var(--paper);
color: var(--ink);
font: inherit;
font-weight: 600;
cursor: pointer;
border-radius: var(--radius);
box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.12);
}
.link-choice:active {
transform: translate(1px, 1px);
box-shadow: none;
}
.interstitial {
margin: auto 0;
padding: 1.4rem 1.2rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.interstitial > * {
position: relative;
z-index: 1;
}
.interstitial h2 {
margin: 0;
font-family: var(--display);
font-weight: 800;
font-size: 2.1rem;
letter-spacing: -0.045em;
}
.interstitial p:last-of-type {
margin: 0 0 0.4rem;
color: var(--ink-soft);
font-weight: 600;
}
.result-sheet {
margin-top: 0.35rem;
padding: 1.25rem 1.15rem 1.35rem;
text-align: center;
}
.result-sheet > * {
position: relative;
z-index: 1;
}
.result-label {
margin: 0;
font-family: var(--mono);
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--ink-soft);
}
.score-stack {
position: relative;
display: grid;
place-items: center;
margin: 0.2rem 0 0.15rem;
min-height: 5.5rem;
}
.result-score {
margin: 0;
font-family: var(--display);
font-weight: 800;
font-size: clamp(4.2rem, 20vw, 5.8rem);
line-height: 0.85;
letter-spacing: -0.06em;
color: var(--ink);
}
.stamp {
position: absolute;
right: 4%;
top: 8%;
font-family: var(--display);
font-weight: 800;
font-size: 1.15rem;
letter-spacing: 0.08em;
color: var(--stamp-ink);
border: 3px solid var(--stamp-ink);
padding: 0.35rem 0.55rem;
transform: rotate(-12deg);
opacity: 0;
pointer-events: none;
}
.stamp.show {
animation: stamp-in 480ms cubic-bezier(0.2, 1.2, 0.3, 1) forwards;
}
.stamp.grade-intact {
color: rgba(27, 127, 90, 0.85);
border-color: rgba(27, 127, 90, 0.85);
}
.stamp.grade-mild {
color: rgba(180, 120, 20, 0.9);
border-color: rgba(180, 120, 20, 0.9);
}
.stamp.grade-fried {
color: var(--stamp-ink);
border-color: var(--stamp-ink);
}
@keyframes stamp-in {
0% {
opacity: 0;
transform: rotate(-12deg) scale(1.45);
}
60% {
opacity: 1;
transform: rotate(-12deg) scale(0.96);
}
100% {
opacity: 1;
transform: rotate(-12deg) scale(1);
}
}
.result-unit {
margin: 0 0 0.85rem;
font-family: var(--mono);
font-size: 0.72rem;
color: var(--ink-soft);
}
.result-blurb {
margin: 0 0 1rem;
font-size: 1rem;
line-height: 1.4;
font-weight: 600;
color: var(--ink-soft);
}
.result-breakdown {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.bd-row {
display: flex;
justify-content: space-between;
gap: 0.75rem;
padding: 0.7rem 0.85rem;
background: var(--paper);
border: 2px solid var(--ink);
font-size: 0.9rem;
font-weight: 600;
box-shadow: 2px 2px 0 rgba(20, 33, 61, 0.1);
}
.bd-row span {
color: var(--ink-soft);
}
.bd-row strong {
font-family: var(--mono);
color: var(--ink);
}
.bd-row.skip strong {
color: #b8860b;
}