system-one-arcade / game /web /style.css
Aurelien-Lac's picture iamleonie's picture
Add Fit Check outfit-scoring demo (#1)
2feaec3
Raw History Blame Contribute Delete
32 kB
/* Light and quiet, like Liquid's newest pages: white surfaces, hairlines, a serif
title, black buttons. Liquid's purple marks what the model decided, mono labels
carry the numbers. Colours live here as tokens only. */
:root {
--bg: #fafaf9;
--card: #ffffff;
--soft: #f6f5fa;
--line: #e7e6ea;
--line-2: #d9d8de;
--ink: #0a0a0a;
--muted: #59616c;
--faint: #8a9099;
--purple: #cd82f0;
--violet: #8b5cf6;
--deep: #6c4fe0;
--deepest: #5505af;
--good: #16a34a;
--bad: #dc2626;
--warn: #d97706;
--sans: "Inter", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
--radius: 14px;
--shadow: 0 1px 2px #0000000a, 0 8px 24px -12px #1d0b3b1f;
color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
background: var(--bg); color: var(--ink);
font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
/* top bar */
.topbar {
position: sticky; top: 0; z-index: 10; height: 58px; display: flex; align-items: center; gap: 16px;
padding: 0 28px; border-bottom: 1px solid var(--line); background: #fafaf9e6; backdrop-filter: blur(12px);
}
.logo { display: inline-flex; color: var(--ink); }
.logo svg { width: 74px; height: auto; display: block; }
.topbar .sep { width: 1px; height: 20px; background: var(--line-2); }
.topbar .product { font: 400 19px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.back {
display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 8px;
border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--muted);
}
.back:hover { color: var(--ink); border-color: var(--line-2); }
.topbar .title { font: 400 19px/1 var(--serif); letter-spacing: -.01em; }
.topbar .tag { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.pill {
margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
border-radius: 99px; border: 1px solid var(--line); background: var(--card);
font: 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill > span { overflow: hidden; text-overflow: ellipsis; }
.pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pill.live i { background: var(--purple); box-shadow: 0 0 0 3px #cd82f033; }
/* menu */
.hero { position: relative; padding: 76px 24px 44px; text-align: center; overflow: hidden; }
.hero .glow {
position: absolute; left: 50%; top: -260px; width: 760px; height: 560px; transform: translateX(-50%);
border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #cd82f024, #cd82f000 65%);
}
.orb {
position: relative; width: 34px; height: 34px; margin: 0 auto 22px; border-radius: 50%;
background: radial-gradient(circle at 65% 25%, #fff, var(--purple) 30%, var(--deepest) 70%, #1a0533);
box-shadow: 0 6px 22px -4px #8b5cf680;
}
.eyebrow { position: relative; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.hero h1 {
position: relative; margin: 18px 0 16px; font: 400 clamp(38px, 5vw, 62px)/1.04 var(--serif); letter-spacing: -.02em;
}
.hero p { position: relative; max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.menu {
display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px;
max-width: 1360px; margin: 0 auto; padding: 8px 28px 56px;
}
.card {
display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--soft); border-bottom: 1px solid var(--line); }
.card .thumb svg { width: 100%; height: 100%; display: block; }
.card .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card .name { font: 400 19px/1.2 var(--serif); letter-spacing: -.01em; }
.card .blurb { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags span {
font: 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line);
}
.tags span.cap { color: var(--deep); border-color: #6c4fe033; background: #6c4fe00a; }
.foot {
max-width: 1360px; margin: 0 auto; padding: 0 28px 40px; color: var(--faint);
font: 11px/1.6 var(--mono); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
/* play screen */
.play { padding: 20px 28px 28px; max-width: 1500px; margin: 0 auto; }
.stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .stage { grid-template-columns: 1fr; } }
.view { position: relative; border-radius: var(--radius); overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); }
.view:has(.camera-hint) { min-height: 280px; }
.view video { width: 100%; max-height: calc(100vh - 124px); object-fit: contain; display: block; transform: scaleX(-1); }
.view.nocam, .view.covered { background: var(--card); }
.view.nocam > video, .view.covered > video { display: none; }
.caption {
position: absolute; z-index: 2; inset: auto 0 0 0; padding: 22px 18px; text-align: center; pointer-events: none;
font: 600 clamp(26px, 4vw, 50px)/1.05 var(--sans); letter-spacing: -.03em; color: #fff;
text-shadow: 0 2px 18px #000a;
}
.caption[data-tone="good"] { color: #86efac; }
.caption[data-tone="bad"] { color: #fca5a5; }
.caption[data-tone="warn"] { color: #fcd34d; }
.caption[data-tone="accent"] { color: #e9c6fb; }
.view.nocam .caption { inset: 18px 0 auto 0; font: 400 clamp(22px, 2.8vw, 34px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-shadow: none; }
.view.nocam .caption[data-tone="good"] { color: var(--good); }
.view.nocam .caption[data-tone="bad"] { color: var(--bad); }
.view.nocam .caption[data-tone="accent"] { color: var(--deep); }
.camera-hint {
position: absolute; inset: 0; display: grid; place-items: center; color: #a1a1aa;
font: 12px var(--mono); text-align: center; padding: 24px;
}
.panel { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; overflow: hidden; }
.sect { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.sect:last-child { border-bottom: 0; }
.label { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.note { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.note kbd { font: 11px var(--mono); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink); background: var(--soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kpi { background: var(--card); padding: 12px 10px; text-align: center; }
.kpi .v { font: 300 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.kpi .v.accent { color: var(--deep); }
.kpi .k { margin-top: 6px; font: 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
height: 36px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card);
font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #f5f5f5; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 3px 8px #00000014; }
.btn:disabled { opacity: .4; cursor: default; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; background: var(--soft); }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }
/* probability bars */
.bars { display: flex; flex-direction: column; gap: 8px; }
.prob { display: grid; grid-template-columns: 1fr 48px; row-gap: 4px; align-items: center; }
.prob .name { font-size: 13px; color: var(--muted); }
.prob .value { text-align: right; font: 12px var(--mono); font-variant-numeric: tabular-nums; color: var(--faint); }
.prob .track { grid-column: 1 / span 2; height: 5px; border-radius: 5px; background: #0000000d; overflow: hidden; }
.prob .fill { height: 100%; width: 0; background: #c9c7cf; border-radius: 5px; transition: width .08s linear; }
.prob.top .name, .prob.top .value { color: var(--ink); }
.prob.top .fill { background: linear-gradient(90deg, var(--violet), var(--purple)); }
/* Fit Check: a single purple purikura photo frame */
.stage.fit-stage {
width: 100%;
max-width: 1300px;
margin: 0 auto;
grid-template-columns: minmax(0, 1fr);
gap: 12px;
--puri: #8700f5;
--puri-dark: #3f0079;
--puri-mid: #6d00d8;
--puri-light: #ad62fe;
--puri-lilac: #c253f5;
--puri-pale: #f7f0ff;
}
.view.fitcheck {
isolation: isolate;
padding: 62px 54px 58px;
border: 0;
border-radius: 24px;
background:
radial-gradient(circle, #ffffffbd 0 1.5px, transparent 2.5px) 0 0 / 20px 20px,
radial-gradient(circle, #f8dcffb8 0 2px, transparent 3px) 9px 12px / 39px 39px,
repeating-linear-gradient(135deg, #af61de 0 15px, #c47fe9 15px 30px, #d89bed 30px 45px, #aa5bd9 45px 60px);
box-shadow: 0 14px 28px #3f00792e;
}
.view.fitcheck video {
position: relative;
display: block;
width: 100%;
aspect-ratio: 16 / 9;
max-height: none;
object-fit: contain;
background: #211132;
border: 0;
border-radius: 0;
box-shadow: none;
-webkit-mask: url("assets/puri-opening.svg") center / 100% 100% no-repeat;
mask: url("assets/puri-opening.svg") center / 100% 100% no-repeat;
}
.view.fitcheck .camera-hint {
z-index: 5;
inset: 35% 22%;
min-height: 74px;
padding: 16px;
border: 3px solid var(--puri-light);
border-radius: 6px;
background: #f7f0ffee;
color: var(--puri-dark);
font: 800 13px/1.6 "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
box-shadow: 4px 5px 0 var(--puri);
}
.fit-weather, .purikura-decor, .sticker-field {
position: absolute;
inset: 0;
overflow: hidden;
pointer-events: none;
}
.fit-weather {
z-index: 1;
inset: 62px 54px 58px;
opacity: 0;
transition: opacity .3s ease;
-webkit-mask: url("assets/puri-opening.svg") center / 100% 100% no-repeat;
mask: url("assets/puri-opening.svg") center / 100% 100% no-repeat;
}
.fit-weather::before, .fit-weather::after { content: ""; position: absolute; inset: 0; }
.view.fitcheck[data-mood="low"] .fit-weather { opacity: .68; }
.view.fitcheck[data-mood="low"] .fit-weather::before {
z-index: 1;
background:
repeating-linear-gradient(105deg, transparent 0 27px, #bda7ed85 28px 29px, transparent 30px 67px),
repeating-linear-gradient(105deg, transparent 0 52px, #ffffff8a 53px 54px, transparent 55px 109px);
background-size: 90px 120px, 150px 160px;
animation: puri-rain .45s linear infinite;
}
.view.fitcheck[data-mood="low"] .fit-weather::after {
background: linear-gradient(#44345c1c, #38204e0e 45%, #35254e2b);
}
.view.fitcheck[data-mood="cute"] .fit-weather,
.view.fitcheck[data-mood="sparkle"] .fit-weather { opacity: 1; }
.view.fitcheck[data-mood="cute"] .fit-weather::before,
.view.fitcheck[data-mood="sparkle"] .fit-weather::before {
background:
radial-gradient(circle at 12% 23%, #f8c4e9 0 3px, transparent 4px),
radial-gradient(circle at 27% 72%, #b9eaff 0 2px, transparent 3px),
radial-gradient(circle at 56% 20%, #fff 0 4px, transparent 5px),
radial-gradient(circle at 78% 61%, #fff0b0 0 2px, transparent 3px),
radial-gradient(circle at 89% 31%, #d9bdff 0 3px, transparent 4px);
background-size: 280px 210px;
animation: puri-twinkle .7s steps(2, end) infinite;
}
.view.fitcheck[data-mood="sparkle"] .fit-weather::after {
background: linear-gradient(105deg, transparent 30%, #ffffff38 49%, transparent 60%);
background-size: 180px 100%;
animation: puri-sweep 1.4s linear infinite;
mix-blend-mode: screen;
}
.puri-lace {
position: absolute;
z-index: 2;
top: 62px;
left: 54px;
width: calc(100% - 108px);
height: calc(100% - 120px);
pointer-events: none;
}
.purikura-decor { z-index: 3; font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
.sticker-field { z-index: 4; }
.puri-title {
position: absolute;
top: -4px;
left: 72px;
transform: rotate(-5deg);
white-space: nowrap;
color: #f5c2ff;
font-size: clamp(48px, 5.7vw, 78px);
font-family: "Yomogi", "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
font-weight: 900;
letter-spacing: .02em;
-webkit-text-stroke: 5px #7014b4;
paint-order: stroke fill;
text-shadow: -2px -2px 0 #fff, 3px 4px 0 #fff, 6px 7px 0 #54217e, 0 0 13px #fff;
}
.puri-logo {
position: absolute;
object-fit: contain;
filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #f1b9ff) drop-shadow(2px 3px 0 #682595);
}
.puri-logo-bottom { left: 23px; bottom: 17px; width: 63px; height: 79px; transform: rotate(-10deg); }
.puri-logo-top { top: 19px; left: 64%; width: 50px; height: 68px; transform: rotate(12deg); }
.puri-logo-side { top: 69%; left: 25px; width: 50px; height: 67px; transform: rotate(-13deg); }
.puri-frame-heart, .puri-frame-star {
position: absolute;
line-height: 1;
font-family: Georgia, serif;
-webkit-text-stroke: 2px #fff;
paint-order: stroke fill;
text-shadow: 0 0 5px #fff, 0 0 11px #e9b2ff, 3px 3px 0 #7742a7;
}
.puri-frame-heart { top: 15px; right: 59px; color: #e6b8f9; font-size: 83px; transform: rotate(16deg); }
.puri-frame-star { bottom: 11px; left: 43%; color: #c5dafa; font-size: 81px; transform: rotate(-11deg); }
.puri-model {
position: absolute;
top: 83px;
left: 180px;
transform: rotate(-6deg);
white-space: nowrap;
color: #fff4ff;
font: 900 clamp(32px, 3.5vw, 48px)/1 "Yomogi", "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
-webkit-text-stroke: 5px #b84ae7;
paint-order: stroke fill;
text-shadow: 3px 4px 0 #5a2389, 0 0 8px #fff, 0 0 18px #dc8eff;
}
.puri-date {
position: absolute;
right: 40px;
bottom: 12px;
transform: rotate(-5deg);
color: #45445b;
font: 900 clamp(22px, 2.9vw, 34px)/1 "Yomogi", "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
letter-spacing: -.08em;
-webkit-text-stroke: 4px #fff;
paint-order: stroke fill;
text-shadow: 2px 2px 0 #d6b3fa;
}
.puri-doodle {
position: absolute;
line-height: 1;
font-weight: 900;
scale: 1.16;
-webkit-text-stroke: 3px white;
paint-order: stroke fill;
text-shadow: 0 0 5px white, 0 0 12px #ffc4fa, 2px 3px 0 #8e4bc5;
}
.puri-doodle { font-family: Georgia, serif; }
.heart-one { top: 21%; left: 25px; color: #f9b9dc; font-size: 79px; transform: rotate(-20deg); }
.heart-two { right: 24px; bottom: 14%; color: #bce8f7; font-size: 80px; transform: rotate(18deg); }
.heart-three { top: 26px; left: 56%; color: #ffd3ed; font-size: 55px; transform: rotate(12deg); }
.heart-four { top: 10%; right: 21px; color: #fbd6fa; font-size: 58px; transform: rotate(-17deg); }
.heart-five { top: 36%; left: 17px; color: #f1c2fc; font-size: 62px; transform: rotate(15deg); }
.heart-six { top: 40%; right: 15px; color: #d6bdfb; font-size: 64px; transform: rotate(-13deg); }
.heart-seven { bottom: 13px; left: 17%; color: #ffc6df; font-size: 57px; transform: rotate(15deg); }
.heart-eight { bottom: 18px; right: 18%; color: #d9c2ff; font-size: 54px; transform: rotate(-17deg); }
.star-one { bottom: 20px; left: 28%; color: #e8b9f7; font-size: 77px; transform: rotate(-14deg); }
.star-two { top: 27%; right: 22px; color: #fff2b0; font-size: 74px; transform: rotate(12deg); }
.star-three { right: 27%; bottom: 20px; color: #c9eaff; font-size: 72px; transform: rotate(9deg); }
.star-four { top: 12%; left: 24px; color: #c9eaff; font-size: 57px; transform: rotate(-9deg); }
.star-five { top: 60%; left: 19px; color: #c0e4ff; font-size: 59px; transform: rotate(13deg); }
.star-six { top: 61%; right: 16px; color: #f9c6f3; font-size: 62px; transform: rotate(-9deg); }
.star-seven { top: 13px; right: 23%; color: #fff0b5; font-size: 52px; transform: rotate(12deg); }
.star-eight { bottom: 16px; left: 62%; color: #e6c5ff; font-size: 54px; transform: rotate(-12deg); }
.spark-one { top: 48%; left: 30px; color: #d9d3ff; font-size: 56px; transform: rotate(15deg); }
.spark-two { right: 29px; bottom: 43%; color: #efc4fa; font-size: 60px; transform: rotate(-12deg); }
.spark-three { right: 25px; top: 72%; color: #fff0bb; font-size: 55px; transform: rotate(15deg); }
.spark-four { top: 25px; left: 46%; color: #fff2c9; font-size: 49px; transform: rotate(-10deg); }
.spark-five { top: 30%; left: 16px; color: #ffe7ac; font-size: 45px; transform: rotate(-12deg); }
.spark-six { bottom: 27%; left: 15px; color: #ffe7fc; font-size: 51px; transform: rotate(10deg); }
.spark-seven { top: 20%; right: 16px; color: #bbf1ff; font-size: 48px; transform: rotate(14deg); }
.spark-eight { bottom: 13px; right: 35%; color: #fff0b5; font-size: 48px; transform: rotate(-9deg); }
.view.fitcheck[data-mood="low"] .puri-doodle { color: #abb6d8; text-shadow: 0 0 5px #fff, 2px 3px 0 #7368a3; }
.fit-sticker {
position: absolute;
color: var(--sticker-ink, #c590ff);
font: 900 clamp(26px, 3.5vw, 46px)/1.2 "Yomogi", "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
white-space: nowrap;
-webkit-text-stroke: 2.5px #271139;
paint-order: stroke fill;
text-shadow: 0 0 3px #fff, 0 0 11px currentColor, 0 0 22px currentColor;
animation: sticker-pop 1.35s cubic-bezier(.2, 1, .4, 1) var(--delay) forwards;
}
.fit-sticker.doodle {
font: 900 clamp(55px, 7vw, 105px)/1 Georgia, serif;
-webkit-text-stroke: 3px #271139;
}
.fit-sticker.edge { font-size: clamp(20px, 2.5vw, 34px); -webkit-text-stroke-width: 2px; }
.fit-sticker.edge.doodle { font-size: clamp(37px, 4.5vw, 67px); -webkit-text-stroke-width: 2px; }
.fit-sticker.low { color: #a6b5ff; }
.fit-sticker.sparkle { color: var(--sticker-ink, #ee55cb); }
@keyframes sticker-pop {
0% { opacity: 0; transform: translate(-50%, -40%) scale(.55) rotate(var(--spin)); }
13% { opacity: 1; transform: translate(-50%, -50%) scale(1.24) rotate(var(--spin)); }
55% { opacity: 1; transform: translate(-50%, -55%) scale(1) rotate(var(--spin)); }
100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), calc(-50% - var(--rise))) scale(.76) rotate(var(--spin)); }
}
@keyframes puri-rain { from { background-position: 0 -120px, 0 -160px; } to { background-position: -90px 0, -150px 0; } }
@keyframes puri-twinkle { 0%, 100% { opacity: .3; filter: brightness(1); } 50% { opacity: 1; filter: brightness(1.8); } }
@keyframes puri-sweep { from { background-position: -180px 0; } to { background-position: 180px 0; } }
.fit-panel {
display: block;
width: 100%;
border: 4px solid var(--puri);
border-radius: 13px;
background: linear-gradient(120deg, #f7f7fa, #e7e4ed 31%, #f5eafd 56%, #e9f2f5 79%, #f7f7fa);
box-shadow: 0 8px 0 #bec0ca, 0 16px 24px #3f007926;
color: var(--puri-dark);
}
.fit-panel-main { padding: 14px 22px 10px; }
.fit-score-row { display: flex; align-items: center; gap: 20px; min-height: 75px; }
.fit-panel-heading { display: flex; flex-direction: column; flex: 1; gap: 5px; }
.fit-panel-heading strong { font: 900 clamp(21px, 2.4vw, 29px)/1.2 "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
.fit-panel-heading small { color: var(--puri-mid); font: 800 clamp(18px, 1.9vw, 23px)/1.25 var(--sans); letter-spacing: .01em; }
.fit-score { color: var(--puri); font: 900 clamp(49px, 6vw, 78px)/1 var(--sans); letter-spacing: -.07em; font-variant-numeric: tabular-nums; text-shadow: 3px 3px 0 #d8adff; }
.fit-meter { height: 25px; overflow: hidden; border: 3px solid var(--puri-mid); border-radius: 5px; background: white; box-shadow: inset 0 2px 4px #6d00d833; }
.fit-meter i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, #ffffff91 0 8px, transparent 8px 16px), linear-gradient(90deg, #aeb3c1, #b89ee1 24%, #add8ea 40%, #b9dcc9 56%, #e7d19d 73%, #d5a9cf 86%, #8700f5); transition: width .12s linear; }
.fit-panel-foot { display: flex; justify-content: space-between; gap: 20px; padding: 9px 22px; border-top: 1px dashed #c797fe; color: #71538d; }
.fit-panel-foot p { margin: 0; font-size: 11px; line-height: 1.5; }
.fit-panel-foot .note { max-width: 55%; color: inherit; font-size: 11px; }
.fit-panel[data-mood="low"] { border-color: #6c6196; background: #eeeaf7; box-shadow: 0 8px 0 #c7bedf, 0 16px 24px #28203d26; }
.fit-panel[data-mood="low"] .fit-score { color: #6c6196; text-shadow: 3px 3px 0 #d0cae1; }
.fit-panel[data-mood="low"] .fit-meter { border-color: #887daa; }
.fit-panel[data-mood="low"] .fit-meter i { background: repeating-linear-gradient(-45deg, #ffffff55 0 8px, transparent 8px 16px), linear-gradient(90deg, #b2a7d2, #6c6196); }
.view.fitcheck .caption[data-tone="badge"] { z-index: 6; inset: auto 30px 65px; padding: 10px; border: 3px solid white; border-radius: 6px; background: #5b368ce8; font: 800 17px/1.3 "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
@media (max-width: 700px) {
.view.fitcheck { padding: 48px 29px 42px; }
.fit-weather { inset: 48px 29px 42px; }
.puri-lace { top: 48px; left: 29px; width: calc(100% - 58px); height: calc(100% - 90px); }
.puri-title { left: 23px; top: -3px; font-size: clamp(34px, 8.5vw, 47px); -webkit-text-stroke-width: 3px; }
.puri-logo-bottom { left: 12px; bottom: 9px; width: 39px; height: 51px; }
.puri-logo-top { top: 65px; right: 9px; left: auto; width: 33px; height: 45px; }
.puri-logo-side { top: 68%; left: 8px; width: 33px; height: 45px; }
.puri-frame-heart { top: 51px; right: 13px; font-size: 50px; }
.puri-frame-star { bottom: 8px; font-size: 51px; }
.puri-doodle { font-size: 47px; }
.heart-three, .heart-eight, .star-three, .star-seven, .spark-four, .spark-five, .spark-seven { display: none; }
.spark-three { right: 8px; font-size: 40px; }
.heart-one { left: 10px; }
.star-one { left: 28%; }
.heart-two, .star-two { right: 10px; }
.spark-one, .spark-two { display: none; }
.heart-five { top: 34%; left: 8px; }
.heart-six { top: 42%; right: 8px; }
.heart-seven { bottom: 8px; left: 18%; }
.star-five { top: 57%; left: 8px; }
.star-six { top: 61%; right: 8px; }
.star-eight { bottom: 9px; left: 63%; }
.spark-six { bottom: 25%; left: 7px; }
.spark-eight { bottom: 9px; right: 37%; }
.puri-model { top: 44px; left: 49px; right: auto; font-size: clamp(23px, 5.4vw, 32px); writing-mode: horizontal-tb; -webkit-text-stroke-width: 3px; }
.puri-date { right: 20px; bottom: 9px; font-size: clamp(17px, 3.5vw, 23px); }
.fit-score-row { flex-wrap: wrap; gap: 6px 14px; }
.fit-panel-heading { min-width: 100%; }
.fit-panel-heading strong { font-size: 23px; }
.fit-panel-heading small { font-size: 20px; }
.fit-score { font-size: 52px; }
.fit-panel-foot { flex-direction: column; gap: 3px; }
.fit-panel-foot .note { max-width: none; }
}
@media (max-width: 480px) {
.fitcheck-page .play { padding: 14px 16px 28px; }
.fitcheck-page .topbar { gap: 8px; padding: 0 12px; }
.fitcheck-page .topbar .logo, .fitcheck-page .topbar .sep, .fitcheck-page .topbar .tag, .fitcheck-page .topbar .pill { display: none; }
.fitcheck-page .topbar .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.view.fitcheck .camera-hint { inset: 32% 12%; font-size: 11px; }
.puri-title { font-size: clamp(34px, 9vw, 40px); }
.puri-model { font-size: clamp(23px, 6vw, 27px); }
.fit-panel-heading strong { font-size: 23px; }
.fit-panel-heading small { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
.fit-sticker, .view.fitcheck[data-mood="low"] .fit-weather::before,
.view.fitcheck[data-mood="cute"] .fit-weather::before,
.view.fitcheck[data-mood="sparkle"] .fit-weather::before,
.view.fitcheck[data-mood="sparkle"] .fit-weather::after { animation: none; }
}
/* game surfaces */
.surface { display: block; width: 100%; height: auto; }
.view .surface { max-height: calc(100vh - 124px); object-fit: contain; }
.mirror { transform: scaleX(-1); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumbs figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; transform: scaleX(-1); }
.thumbs figcaption {
position: absolute; inset: auto 0 0 0; padding: 3px 6px; font: 9.5px var(--mono); background: #ffffffd9; color: var(--ink);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
textarea {
width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--card);
color: var(--ink); font: 13px/1.55 var(--mono); resize: vertical;
}
textarea:focus { outline: none; border-color: #8b5cf680; box-shadow: 0 0 0 3px #8b5cf61f; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 5px 11px; font-size: 12px; color: var(--muted); }
.chips button:hover { color: var(--ink); border-color: var(--line-2); }
.frame { display: block; width: 100%; border-radius: 10px; transform: scaleX(-1); }
.frame-tile { display: block; width: 100%; max-width: 300px; margin: 0 auto; height: auto; border-radius: 10px; background: #0a0a0a; }
/* quick draw */
.paper-wrap { display: grid; place-items: center; padding: 64px 18px 22px; background: var(--soft); }
.paper { width: min(100%, calc(100vh - 210px)); aspect-ratio: 1; border-radius: 12px; cursor: crosshair; touch-action: none; border: 1px solid var(--line); box-shadow: var(--shadow); }
.logrow { display: flex; justify-content: space-between; font: 12px var(--mono); padding: 4px 0; border-bottom: 1px solid var(--line); }
.logrow .ok { color: var(--good); } .logrow .miss { color: var(--bad); }
/* rep counter */
.rep-big { position: absolute; top: 14px; right: 20px; text-align: right; pointer-events: none; color: #fff; }
.rep-big .n { font: 200 104px/1 var(--mono); font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px #0008; }
.rep-big .n.pop { animation: pop .25s ease-out; }
@keyframes pop { 40% { color: var(--purple); transform: scale(1.08); } }
.rep-big .l { font: 500 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: #ffffffcc; }
.phase-tag {
position: absolute; top: 12px; left: 12px; padding: 8px 14px; font: 600 11px/1 var(--mono); letter-spacing: .2em;
text-transform: uppercase; background: #ffffffe6; color: var(--ink); border-radius: 99px;
}
.phase-tag[data-phase="1"] { color: var(--deep); }
.meter { position: relative; height: 8px; border-radius: 6px; background: linear-gradient(90deg, #0000000a, #cd82f055); }
.meter i { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); left: 50%; transition: left .08s linear; }
.meter-ends { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.strip { position: relative; height: 20px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.strip i { position: absolute; top: 0; width: 1.2%; height: 100%; background: #0000000f; }
.strip i[data-phase="1"] { background: var(--purple); }
.strip i[data-phase="0"] { background: #d4d2da; }
/* find it */
.target { font: 400 32px/1.15 var(--serif); letter-spacing: -.01em; }
/* live triage */
.inbox { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; }
.inbox-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px #cd82f033; }
.composer { min-height: 220px; font: 17px/1.6 var(--sans); padding: 18px; border-radius: 12px; background: var(--soft); }
.pass { font: 12px/1.6 var(--mono); color: var(--muted); }
.pass b { color: var(--deep); font-weight: 600; }
.scale { display: flex; align-items: center; gap: 12px; }
.scale .cells { display: flex; gap: 4px; }
.scale .cells i { width: 26px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--purple)); opacity: .12; transition: opacity .1s; }
.scale-text { font: 12px var(--mono); color: var(--ink); }
/* red light */
.doll { display: flex; gap: 10px; padding: 7px 10px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); }
.doll i { width: 26px; height: 26px; border-radius: 50%; opacity: .16; transition: opacity .15s, box-shadow .15s; }
.doll i.red { background: var(--bad); } .doll i.green { background: var(--good); }
.doll i.on { opacity: 1; }
.doll i.red.on { box-shadow: 0 0 0 4px #dc262626; } .doll i.green.on { box-shadow: 0 0 0 4px #16a34a26; }
@media (max-width: 720px) {
.topbar { gap: 10px; padding: 0 14px; }
.logo svg { width: 60px; }
.topbar .tag, .topbar .sep { display: none; }
.topbar .product { font-size: 16px; }
.topbar .title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.back { flex: none; padding: 0 9px; }
.pill { min-width: 0; max-width: 34vw; }
.play { padding: 12px 14px 20px; }
.menu { padding: 8px 14px 40px; }
.hero { padding: 48px 16px 28px; }
.rep-big .n { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.caption[data-tone="badge"] {
inset: auto auto 20px 50%; transform: translateX(-50%); width: max-content; padding: 10px 18px; border-radius: 99px;
background: #0a0a0ae6; color: #fff; font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; text-shadow: none;
}
/* "Run it locally" */
.hero .btn { position: relative; margin-top: 18px; }
.local { max-width: 620px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; color: var(--ink); background: var(--card); }
.local::backdrop { background: #0006; }
.local h2 { margin: 0 0 10px; font-size: 22px; }
.local .label { margin: 18px 0 6px; }
.local pre { margin: 0; padding: 12px 14px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); overflow-x: auto; user-select: all; }
.local .note + .label, .local pre + .note { margin-top: 14px; }
.local .x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 22px; color: var(--muted); }
.note a { color: var(--deep); }
.lag { padding: 16px 18px; background: #6c4fe014; border-bottom: 1px solid #6c4fe040; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lag strong { font-size: 16px; color: var(--deep); }
.lag p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }