:root{color-scheme:dark;--bg:#100a0f;--ink:#fff0f7;--muted:#b6a6b1;--pink:#ff85c1;--line:#ffffff1c;font-family:"MS PGothic","ＭＳ Ｐゴシック","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,a,input{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,a{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--pink);outline-offset:4px}button:active:not(:disabled),a.secondary:active{transform:scale(.97)}[hidden]{display:none!important}.icons{position:absolute;width:0;height:0;overflow:hidden}button svg,a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#app{position:relative;min-height:100svh;isolation:isolate;overflow:hidden}#camera{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;z-index:-3}body.active #camera{opacity:1}#camera.mirror{transform:scaleX(-1)}.shade{position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(ellipse at 85% 5%,#ff85c10b,transparent 55%)}body.active .shade{background:linear-gradient(#000a,transparent 25%,transparent 65%,#000d)}
.app-header{max-width:1024px;margin:auto;padding:calc(18px + env(safe-area-inset-top)) 22px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:800;white-space:nowrap;letter-spacing:-.025em}.brand-mark{display:grid;place-items:center;background:var(--pink);color:var(--bg);width:30px;height:32px;border-radius:8px;font:700 29px/1 ui-monospace,monospace;transform:rotate(-5deg)}.age-mark{font:500 12px ui-monospace,monospace;letter-spacing:.04em;border:1px solid var(--line);padding:6px 9px;border-radius:7px;color:var(--muted)}
#intro{width:100%;max-width:480px;margin:auto;padding:18px 24px 24px}.eyebrow{font-size:13px;color:var(--muted);margin:0 0 10px;letter-spacing:.08em}h1{font-size:clamp(38px,10.5vw,48px);line-height:1.22;letter-spacing:-.045em;font-weight:850;margin:0}h1 span{color:var(--pink)}.description{font-size:16px;line-height:1.75;color:#dbcbd5;margin:14px 0 0}.narrow-only{display:none}.sample{position:relative;background:linear-gradient(140deg,#ff85c109,#ff85c102);border:1px solid #ff85c12b;border-radius:20px;padding:15px 18px 16px;margin:24px 0;text-align:center;overflow:hidden}.sample-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.sample-badge{font:11px ui-monospace,monospace;letter-spacing:.13em;color:var(--pink)}.sample-number{font:750 clamp(58px,17vw,76px)/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--pink);margin-top:8px;letter-spacing:-.04em}.sample-number span{font:700 16px sans-serif;letter-spacing:0;margin-left:8px}.sample-stem{height:16px;width:1px;margin:4px auto 0;background:linear-gradient(var(--pink),#ff85c110)}.sample p{font-size:12px;color:var(--muted);margin:12px 0 0}.consent{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:14px;line-height:1.65;color:#e3d5df;margin:0 0 16px;padding:2px 0}.consent input{appearance:none;flex:0 0 24px;width:24px;height:24px;margin:0;border:1px solid #987287;border-radius:6px;display:grid;place-content:center;background:#ffffff04}.consent input:checked{background:var(--pink);border-color:var(--pink)}.consent input:checked:after{content:'✓';color:var(--bg);font-weight:900;font-size:19px}.primary,.secondary{min-height:56px;border:0;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;text-decoration:none;font-size:16px;font-weight:750;padding:14px 18px;transition:opacity .15s,transform .15s}.primary{width:100%;background:var(--pink);color:#250e1a}.primary:disabled{opacity:1;background:#35232e;color:#b59aa9}.secondary{background:#ffffff08;border:1px solid var(--line);color:var(--ink)}.privacy,.intro-note{font-size:12px;text-align:center;color:var(--muted);line-height:1.65;margin:13px 0 0}.intro-note{margin-top:4px;color:#d7bacb}.message{font-size:14px;color:var(--pink);line-height:1.6;margin:12px 0 0;white-space:pre-line;overflow-wrap:anywhere}.message:empty{display:none}
body.active{overflow:hidden}body.active #app{height:100svh;height:100dvh;min-height:0}body.active .app-header{max-width:none;padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:8px}body.active .brand{font-size:14px}body.active .brand-mark{width:26px;height:28px;font-size:25px}body.active .age-mark{display:none}.exit-button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 10px;color:white;border:1px solid #ffffff24;border-radius:22px;background:#0004;font-size:13px;backdrop-filter:blur(12px)}.exit-button svg{width:18px;height:18px}
#labels{position:fixed;inset:0;pointer-events:none;z-index:-1}.counter{position:absolute;left:0;top:0;text-align:center;will-change:transform;color:var(--pink);filter:drop-shadow(0 2px 3px #000);text-shadow:0 0 12px #0008}.counter .value{display:flex;align-items:baseline;justify-content:center;gap:5px;font:800 52px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap}.counter .unit{font:700 14px/1 sans-serif}.counter .stem{height:14px;width:1px;background:var(--pink);margin:6px auto 0}.counter .plus{position:absolute;right:-25px;top:-12px;font:700 22px ui-monospace,monospace;opacity:0}.counter.rolling{opacity:.82}.counter.bump .plus{animation:added 1.4s ease-out}.counter.revealed .value{animation:reveal .28s ease-out}.counter.bump .value{animation:flash 1.2s ease-out}
@keyframes added{0%{opacity:0;transform:translateY(10px)}20%{opacity:1}100%{opacity:0;transform:translateY(-20px)}}@keyframes flash{20%{color:white}100%{color:var(--pink)}}@keyframes reveal{from{transform:scale(.88)}to{transform:scale(1)}}
#hint{position:fixed;top:calc(78px + env(safe-area-inset-top));left:16px;right:16px;text-align:center;font-size:14px;line-height:1.6;color:white;margin:0;text-shadow:0 1px 5px #000}#viewfinder{position:fixed;width:min(62vw,260px);height:min(36vh,290px);left:50%;top:44%;transform:translate(-50%,-50%);opacity:.4;pointer-events:none}#viewfinder i{position:absolute;width:28px;height:28px;border:1.5px solid #fff}#viewfinder i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0;border-radius:14px 0 0}#viewfinder i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0;border-radius:0 14px 0 0}#viewfinder i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0;border-radius:0 0 0 14px}#viewfinder i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0;border-radius:0 0 14px}
.camera-footer{position:fixed;bottom:0;left:0;right:0;padding:18px 20px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#0007)}.controls{display:flex;align-items:center;justify-content:center;gap:clamp(22px,8vw,44px)}.tool-button,.capture-button{border:0;background:transparent;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:3px 4px;min-width:64px;font-size:13px;line-height:1.4;font-weight:600}.tool-disc{width:48px;height:48px;border:1px solid #ffffff38;border-radius:50%;background:#1d0e1799;display:grid;place-items:center;backdrop-filter:blur(12px)}.tool-disc svg{width:23px;height:23px}.capture-button{gap:7px}.shutter{display:grid;place-items:center;width:76px;height:76px;border:3px solid var(--pink);border-radius:50%;background:var(--pink);box-shadow:inset 0 0 0 4px #250e1a;color:#250e1a}.shutter svg{width:27px;height:27px}.capture-button:disabled{opacity:.48}.live-note{text-align:center;font-size:12px;color:#f0dce7;margin:16px 0 0}.live-note span{font:600 11px ui-monospace,monospace;letter-spacing:.06em;color:var(--pink);margin-right:6px}
#result{max-width:480px;margin:auto;padding:10px 24px 24px;text-align:center}.result-heading{text-align:left;display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:2px 0 16px}.result-heading .eyebrow{order:2;margin:0}.result-heading h1{font-size:26px;letter-spacing:-.03em}#result-image{display:block;width:auto;max-width:100%;height:auto;max-height:53vh;max-height:53dvh;margin:auto;border:1px solid #ffffff24;border-radius:14px;box-shadow:0 12px 40px #0004}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0 0}.result-actions .primary,.result-actions .secondary{padding:13px 10px;font-size:15px}.result-actions.single{grid-template-columns:1fr}.save-tip{font-size:12px;color:var(--muted);margin:12px 0 0}.result-links{display:flex;justify-content:center;gap:20px;margin-top:8px;flex-wrap:wrap}.text-button{padding:12px 0;min-height:44px;border:0;background:none;color:var(--ink);font-size:14px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#ffffff40}
@media(min-width:700px){.app-header{padding-top:26px}#intro{padding-top:24px}.sample{margin:28px 0}body.active .app-header{padding:20px 28px}#result{padding-top:20px}.camera-footer{padding-bottom:24px}.controls{gap:48px}}
@media(max-height:730px) and (max-width:699px){.app-header{padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:10px;min-height:62px}#intro{padding-top:10px}h1{font-size:38px}.eyebrow{margin-bottom:8px}.description{margin-top:10px}.sample{margin:18px 0;padding-top:12px;padding-bottom:12px}.sample-number{font-size:58px;margin-top:4px}.sample p{margin-top:6px}.sample-stem{height:12px}.consent{margin-bottom:12px}.primary{min-height:54px}.privacy{margin-top:11px}.camera-footer{padding-top:10px}.shutter{width:68px;height:68px}.live-note{margin-top:12px}}
@media(max-width:350px){#intro,#result{padding-left:18px;padding-right:18px}.app-header{padding-left:18px;padding-right:18px}.brand{font-size:14px}.description{font-size:15px}.narrow-only{display:block}.consent{font-size:14px}.result-actions{grid-template-columns:1fr}.controls{gap:20px}}
@media(max-height:480px) and (orientation:landscape){.camera-footer{left:auto;width:160px;padding:12px}.controls{flex-wrap:wrap;gap:12px}.capture-button{order:-1;flex-basis:100%}.live-note{font-size:11px}#hint{top:70px;right:170px}.result-heading{margin-bottom:10px}#result-image{max-height:65vh}}
body.show-result .age-mark{display:none}

/* Personal-homepage / BBS styling; camera controls retain their touch targets. */
body{background-color:var(--bg);background-image:radial-gradient(#ff85c118 .7px,transparent .7px);background-size:8px 8px}
.shade{background:none}
.app-header{border-bottom:1px solid #634153;padding-bottom:12px}
.brand{font-size:14px;letter-spacing:0}
.brand-mark{width:28px;height:29px;border-radius:1px;transform:none;font-size:26px;border:1px outset #ffd0e8;box-shadow:2px 2px 0 #000}
.age-mark{border-radius:1px;padding:4px 7px;border-color:#876078;color:#dcb3ca;background:#27151f}
#intro{max-width:440px;width:calc(100% - 32px);margin:18px auto 28px;padding:0 20px 15px;border:1px solid #93667f;box-shadow:4px 4px 0 #000;background:#160e14}
.window-bar{margin:0 -20px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#452336;border-bottom:1px solid #b7789b;box-shadow:inset 1px 1px #ffffff24;color:#ffe8f4;font-size:12px;line-height:1.5}
.window-label{border:1px solid #b8809f;padding:0 4px;font-size:11px;white-space:nowrap;color:#ffe5f3}
.intro-copy{padding-top:19px}
.intro-copy .eyebrow{font-size:12px;letter-spacing:0;margin:0 0 12px;color:#bba4b2}
.intro-copy .eyebrow span{color:#dcb3ca;text-decoration:underline;text-underline-offset:3px}
.thread-title{color:var(--pink);font-size:14px;line-height:1.6;margin:0 0 8px}
h1{color:#ffadd6;font-size:clamp(26px,8.1vw,34px);line-height:1.25;letter-spacing:0;font-weight:800;text-shadow:2px 2px 0 #5e2847}
.description{font-size:16px;line-height:1.65;margin:14px 0 0}
.sample{border:0;border-top:1px dashed #80576e;border-bottom:1px dashed #80576e;border-radius:0;background:none;padding:14px 0 12px;margin:22px 0 18px;overflow:visible}
.sample-top{color:#c4a3b7;font-size:12px}
.sample-badge{font-family:inherit;font-size:12px;letter-spacing:0;color:#c4a3b7}
.sample-number{width:max-content;max-width:100%;border:1px inset #9a6584;background:#090609;padding:6px 13px 8px;margin:10px auto 0;font:700 clamp(44px,13.5vw,58px)/1.15 "Courier New",ui-monospace,monospace;letter-spacing:0;color:var(--pink);text-shadow:1px 1px 0 #6b274a}
.sample-number span{font:700 14px sans-serif;margin-left:5px}
.sample-stem{display:none}
.sample p.reaction{font-family:"MS PGothic","ＭＳ Ｐゴシック",sans-serif;font-size:16px;color:#f2d5e5;line-height:1.5;margin:10px 0 0}
.consent{font-size:14px;gap:10px}
.consent input{border-radius:2px;border:1px inset #ba92aa;background:#0b070a}
.primary,.secondary{border-radius:2px;border:2px solid;border-color:#ffd6eb #b34880 #b34880 #ffd6eb;box-shadow:2px 2px 0 #000;min-height:54px}
.primary{background:#ff85c1;color:#250e1a}
.primary:disabled{border-color:#735467 #36232e #36232e #735467;background:#35232e;color:#bba1b0}
.secondary{border-color:#8d7182 #36232e #36232e #8d7182;background:#32202b}
.primary:active:not(:disabled),.secondary:active{box-shadow:none;transform:translate(1px,1px);border-style:inset}
.home-signoff{font-size:12px;line-height:1.6;margin:16px 0 0;padding-top:12px;border-top:1px dotted #664453;text-align:center;color:#bda3b2}
.privacy{font-size:12px;color:#bdaeb7}
.intro-note{color:#e3b4d0}
body.active .app-header{border-bottom:0}
body.active .brand-mark{border-radius:1px}
.exit-button{border-radius:2px;backdrop-filter:none;background:#160b12b3;border-color:#977084}
.counter{filter:drop-shadow(0 2px 3px #000);text-shadow:-1px -1px 0 #250e1a,1px -1px 0 #250e1a,-1px 1px 0 #250e1a,1px 1px 0 #250e1a}
.counter .value{font-family:"Courier New",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.tool-button,.capture-button{font-size:14px}
.tool-disc{border-radius:3px;background:#21111db3;border-color:#c18cab #67344f #67344f #c18cab;backdrop-filter:none;box-shadow:2px 2px 0 #0006}
.shutter{box-shadow:inset 0 0 0 4px #250e1a,2px 2px 0 #0006}
.live-note span{font-family:inherit;font-size:12px;letter-spacing:0;border:1px solid #b57395;padding:2px 4px;background:#1a0c1580}
#result{max-width:440px}
.result-heading{padding-bottom:10px;border-bottom:1px dashed #815469}
.result-heading h1{font-size:27px;color:#ffadd6}
.result-heading .eyebrow{letter-spacing:0}
#result-image{border-radius:0;border:3px double #b17c9a;box-shadow:4px 4px 0 #000}
.text-button{color:#c4bcff;text-decoration-color:currentColor;text-underline-offset:3px}
@media(max-height:730px) and (max-width:699px){
 #intro{padding-top:0;margin-top:12px}
 .intro-copy{padding-top:14px}
 .intro-copy .eyebrow{margin-bottom:8px}
 h1{font-size:clamp(26px,8.1vw,32px)}
 .sample{margin:16px 0;padding:12px 0}
 .sample-number{font-size:46px;margin-top:8px}
 .sample p.reaction{margin-top:8px}
 .home-signoff{margin-top:12px;padding-top:10px}
}
@media(max-width:350px){
 #intro{width:calc(100% - 24px);padding-left:16px;padding-right:16px}
 .window-bar{margin-left:-16px;margin-right:-16px;padding-left:10px;padding-right:10px}
 .window-label{font-size:10px}
 .description{font-size:16px}
 .sample-number{font-size:42px}
 .consent{gap:8px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
