/* Scaredy GmCat (scaredy.gmcat.io). Look blended from Pixel's and Claude's takes, 2026-11-19:
   "cozy caution": two browser windows joined by a glowing dotted route (the route doubles as progress).
   Night: Pixel's deep plum + a soft flashlight glow. Day: Pixel's warm cream. Follows the device; toggle in the corner. */
:root {
  --bg: #FFF7E8; --panel: #FFFCF6; --ink: #24212A; --muted: #6b6475; --line: #eadfca; --orange: #F28A3A; --peach: #FFD8B5;
  --blue: #3B73D1; --green: #3E9B72; --lav: #8C82B8; --danger: #c2413b; --glow: rgba(255, 216, 181, .55); --field: #fff;
  --shadow: rgba(36, 33, 42, .10); --route: #8C82B8;
}
html[data-theme="dark"] {
  --bg: #17131F; --panel: #241D30; --ink: #FFF1D2; --muted: #BEB5CB; --line: #3a3048; --orange: #F39A4A; --peach: #4a3a3a;
  --blue: #78A9FF; --green: #70D6A8; --lav: #B9A7E8; --danger: #ff8a7a; --glow: rgba(255, 233, 168, .14); --field: #1c1726;
  --shadow: rgba(0, 0, 0, .35); --route: #B9A7E8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "Nunito", "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image: radial-gradient(circle at 50% 160px, var(--glow), transparent 340px),
                    radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 100% 100%, 22px 22px; background-attachment: fixed;
}
a { color: var(--blue); }
img { image-rendering: auto; }

/* ---- the scene: two windows and the route ---- */
.scene { position: fixed; inset: auto 0 0 0; height: 150px; pointer-events: none; opacity: .55; z-index: 0; }
.win { position: absolute; bottom: 30px; width: 92px; height: 64px; border: 2px solid var(--route); border-radius: 8px; background: var(--panel); }
.win i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--route); margin: 6px 0 0 6px; opacity: .6; }
.win-a { left: 4vw; } .win-b { right: 4vw; }
.win-b.lit { background: color-mix(in srgb, var(--green) 35%, var(--panel)); border-color: var(--green); }
.route { position: absolute; left: calc(4vw + 92px); right: calc(4vw + 92px); bottom: 40px; width: calc(100% - 8vw - 184px); height: 90px; overflow: visible; }
.route path { fill: none; stroke: var(--route); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route .done-trail { stroke: var(--green); stroke-dasharray: none; opacity: .9; transition: opacity 2s; }
.traveller { position: fixed; z-index: 1; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; font-size: 18px; line-height: 22px; text-align: center; }
@media (max-width: 640px) { .scene { opacity: .35; height: 110px; } .win { width: 58px; height: 42px; bottom: 18px; } .route { left: calc(4vw + 58px); width: calc(100% - 8vw - 116px); bottom: 26px; height: 60px; } }

/* ---- top bar ---- */
.top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .01em; }
.brand b { color: var(--orange); }
.theme { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 16px; cursor: pointer; }
html[data-theme="dark"] .theme .sun, html:not([data-theme="dark"]) .theme .moon { display: none; }

/* ---- layout ---- */
main { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 16px 190px; }
.hero { text-align: center; margin: 4px 0 18px; }
.hero h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1.05; margin: 6px 0 8px; font-weight: 900; letter-spacing: -.01em; }
.tag { font-size: 19px; margin: 0; }
.tag2 { color: var(--muted); margin: 4px 0 0; font-style: italic; }
.cat { display: inline-block; position: relative; border: 0; background: none; padding: 0; cursor: default; }
button.cat { cursor: pointer; }
.cat img { display: block; width: 192px; height: 192px; filter: drop-shadow(0 10px 18px var(--shadow)); }
#share-cat img, #recv-cat img { width: 160px; height: 160px; }
.cat-float img { animation: float 3.6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cat.rise img { transform: translateY(-6px); transition: transform .2s; animation: none; }
.cat.wobble img { animation: wobble .18s steps(2) infinite; }
@keyframes wobble { 0% { transform: translateX(-2px); } 100% { transform: translateX(2px); } }
.cat.faded img { opacity: .4; }
.boo { position: absolute; top: 4px; right: -34px; background: var(--panel); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 2px 10px; font-weight: 900; font-size: 18px; }
.boo::after { content: ""; position: absolute; left: -9px; bottom: 6px; border: 6px solid transparent; border-right-color: var(--ink); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin: 0 0 16px; box-shadow: 0 10px 30px var(--shadow); }
.card h2 { font-size: 21px; margin: 0 0 10px; }
.small { font-size: 14px; color: var(--muted); }
.err { color: var(--danger); font-weight: 700; margin: 10px 0 0; }

/* drop zone */
.drop { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px; border: 2px dashed var(--lav); border-radius: 16px; cursor: pointer; transition: background .15s; }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--lav) 12%, transparent); }
.drop img { width: 72px; height: 72px; }
.drop-main { font-size: 18px; } .drop-main b { color: var(--orange); }
.drop-sub { font-size: 14px; color: var(--muted); }
.drop.has { border-style: solid; border-color: var(--green); }

/* modes */
.modes { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.modes legend { font-weight: 900; font-size: 18px; margin-bottom: 8px; }
.mode { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.mode:has(input:checked) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, transparent); }
.mode input { margin-top: 5px; accent-color: var(--orange); }
.mode em { color: var(--muted); font-size: 14px; font-style: italic; font-weight: 400; }
.mode small { display: block; font-size: 15px; margin-top: 2px; }
.pc { display: grid; gap: 1px; margin-top: 6px; font-size: 14px; }
.pro { color: var(--green); } .con { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--ink); background: var(--panel); color: var(--ink); border-radius: 14px; padding: 11px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.go { background: var(--orange); color: #24212A; border-color: #24212A; box-shadow: 3px 3px 0 #24212A; width: 100%; margin-top: 16px; font-size: 18px; }
.ghost-btn { box-shadow: none; border-color: var(--line); }
.trust { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }

.scares summary { font-weight: 900; font-size: 19px; cursor: pointer; }
.scares ul { padding-left: 1.2em; margin: 10px 0 0; } .scares li { margin: 8px 0; }

/* sharing */
.keep { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 14%, transparent); }
.what { font-weight: 800; margin: 0 0 8px; word-break: break-word; }
.linkrow { display: flex; gap: 8px; }
.linkrow input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); }
@media (max-width: 520px) { .linkrow { flex-direction: column; } }
.qr summary { cursor: pointer; color: var(--muted); margin-top: 10px; }
#qr { display: block; margin: 10px 0 0; background: #fff; border-radius: 10px; padding: 6px; }
.people-h { margin-top: 16px !important; font-size: 17px !important; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.people li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.people .nobody { color: var(--muted); border-style: dashed; }
.people b { display: block; }
.people .st { color: var(--muted); font-size: 15px; }
.pbar, .bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.pbar i, .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--green) 0 8px, color-mix(in srgb, var(--green) 70%, var(--panel)) 8px 12px); transition: width .2s; }
.row { margin: 14px 0 0; }

/* receiver */
.status { font-weight: 800; font-size: 18px; margin: 0 0 10px; }
.file { display: flex; gap: 12px; align-items: center; }
.file .ico { font-size: 34px; }
.file b { display: block; word-break: break-word; }
.file span { color: var(--muted); font-size: 15px; }
.hint { color: var(--orange); font-weight: 700; }

/* why + faq */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.why-grid div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.why-grid b { display: block; margin-bottom: 2px; } .why-grid span { color: var(--muted); font-size: 15px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; } .faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 800; cursor: pointer; } .faq p { margin: 8px 0 0; color: var(--muted); }

.foot { position: relative; z-index: 2; text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 170px; }
.foot p { margin: 4px 0; }

/* in-page dialog (never the browser's own boxes) */
.ask { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--ink); max-width: 420px; width: calc(100% - 32px); padding: 20px; }
.ask::backdrop { background: rgba(10, 8, 16, .55); }
.ask h3 { margin: 0 0 8px; } .ask p { margin: 0 0 16px; color: var(--muted); }
.ask-acts { display: flex; gap: 8px; justify-content: flex-end; } .ask-acts .btn.go { width: auto; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .cat-float img, .cat.wobble img { animation: none; }
  .bar i, .pbar i { transition: none; }
}

/* the route strip inside the card: two windows, a dotted path, the file stepping across (Pixel's progress idea) */
.strip { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.sw { flex: none; width: 46px; height: 32px; border: 2px solid var(--route); border-radius: 6px; background: var(--panel); position: relative; }
.sw::before { content: "• • •"; position: absolute; top: 1px; left: 5px; font-size: 9px; color: var(--route); letter-spacing: -1px; }
.sw-b.lit { border-color: var(--green); background: color-mix(in srgb, var(--green) 35%, var(--panel)); }
.path { position: relative; flex: 1; height: 26px; background: radial-gradient(circle, var(--route) 1.6px, transparent 2px) 0 50% / 12px 12px repeat-x; }
.trail { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; background: var(--green); border-radius: 3px; transition: width .2s steps(4); }
.trail.fade { opacity: 0; transition: opacity 2.5s; }
.mover { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); font-size: 20px; transition: left .2s steps(4); }
.lock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 15px; display: none; }
.strip.relay .lock { display: block; }
.strip.relay .mover.hop { top: 2px; }
.strip.idle .mover { animation: peek 2.4s ease-in-out infinite; }
@keyframes peek { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .trail, .mover { transition: none; } .strip.idle .mover { animation: none; } }

/* ---- top bar link + how-to guide (2026-11-20, Turtle asked for a step-by-step guide like the music site's) ---- */
.topnav { display: flex; align-items: center; gap: 12px; }
.topnav a { color: var(--ink); font-weight: 800; text-decoration: none; font-size: 15px; }
.topnav a:hover { color: var(--orange); }
.howlink { display: inline-block; margin-top: 10px; font-weight: 800; }
.howto .hero .cat img { width: 150px; height: 150px; }
.hsteps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; counter-reset: s; }
.hsteps li { counter-increment: s; display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 8px 24px var(--shadow); position: relative; }
.hsteps li::before { content: counter(s); position: absolute; top: -10px; left: -6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #24212A; font-weight: 900; border: 2px solid #24212A; }
.hsteps b { display: block; font-size: 19px; margin-bottom: 4px; }
.hsteps span { color: var(--muted); }
.hsteps em { color: var(--ink); font-style: normal; font-weight: 800; }
@media (max-width: 600px) { .hsteps li { grid-template-columns: 1fr; } }
.cta { max-width: 360px; margin: 0 auto 18px !important; display: flex; }
.hdemo { width: 100%; height: auto; background: color-mix(in srgb, var(--lav) 10%, var(--bg)); border-radius: 14px; overflow: visible; }
.hdemo * { animation-duration: 5s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; transform-box: fill-box; }
.h-box { fill: none; stroke: var(--lav); stroke-width: 2.4; stroke-dasharray: 6 5; }
.h-paper { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.h-lines { stroke: var(--lav); stroke-width: 2; }
.h1-file { animation-name: h1drop; }
@keyframes h1drop { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 35% { transform: translate(0, 70px); } 40% { transform: translate(0, 66px); } 44%, 88% { transform: translate(0, 70px); opacity: 1; } 96%, 100% { transform: translate(0, 70px); opacity: 0; } }
.h1-check { fill: var(--green); animation-name: pop; transform-origin: center; }
.h1-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation-name: pop; transform-origin: center; }
@keyframes pop { 0%, 44% { transform: scale(0); } 50% { transform: scale(1.25); } 55%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
.h-card { fill: var(--panel); stroke: var(--line); stroke-width: 2; }
.h2-pick { fill: none; stroke: var(--orange); stroke-width: 3; animation-name: h2move; }
@keyframes h2move { 0%, 40% { transform: translateX(0); } 50%, 90% { transform: translateX(88px); } 100% { transform: translateX(0); } }
.h-route-s { fill: none; stroke: var(--route); stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.h-route { fill: none; stroke: var(--route); stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.h-dot { fill: var(--route); }
.h-lbl { font: 800 12px system-ui, sans-serif; fill: var(--ink); }
.h-emoji { font-size: 14px; }
.h3-btn { fill: var(--orange); stroke: #24212A; stroke-width: 2; animation-name: h3press; transform-origin: center; }
@keyframes h3press { 0%, 18% { transform: scale(1); } 22% { transform: scale(.94); } 26%, 100% { transform: scale(1); } }
.h-btxt { font: 800 10px system-ui, sans-serif; fill: #24212A; }
.h3-tap { fill: var(--ink); opacity: 0; animation-name: h3tap; transform-origin: center; }
@keyframes h3tap { 0%, 14% { opacity: 0; transform: scale(.4); } 20% { opacity: .25; transform: scale(1); } 30%, 100% { opacity: 0; transform: scale(1.6); } }
.h3-link { animation-name: h3show; }
@keyframes h3show { 0%, 26% { opacity: 0; transform: translateY(8px); } 34%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.h-field { fill: var(--field); stroke: var(--line); stroke-width: 2; }
.h-url { font: 700 10.5px ui-monospace, monospace; fill: var(--ink); }
.h-key { font-size: 13px; animation-name: h3key; transform-origin: center; }
@keyframes h3key { 0%, 40% { transform: scale(1); } 46% { transform: scale(1.4) rotate(-12deg); } 52%, 100% { transform: scale(1); } }
.h-win { fill: var(--panel); stroke: var(--route); stroke-width: 2.4; }
.h-win.big { stroke-width: 3; }
.h-plane { fill: var(--orange); stroke: #24212A; stroke-width: 1.2; }
.h4-plane { animation-name: h4fly; }
@keyframes h4fly { 0% { transform: translate(64px, 46px); opacity: 0; } 10% { opacity: 1; } 30% { transform: translate(92px, 26px) rotate(-14deg); } 50% { transform: translate(120px, 40px) rotate(14deg); opacity: 1; } 56%, 100% { transform: translate(126px, 46px); opacity: 0; } }
.h-bubble { fill: var(--green); }
.h4-bubble { animation-name: h4pop; transform-origin: center; }
@keyframes h4pop { 0%, 52% { transform: scale(0); } 58% { transform: scale(1.15); } 62%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
.h-mini { font: 800 10px system-ui, sans-serif; fill: var(--ink); }
.h4-bubble .h-mini { fill: #10251c; }
.h-candle { font-size: 30px; animation-name: flicker; transform-origin: center bottom; }
@keyframes flicker { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.04, .97); } 50% { transform: scale(.98, 1.03); } 75% { transform: scale(1.03, .98); } }
.h-xbg { fill: var(--danger); opacity: .25; } .h-xmark { stroke: var(--danger); stroke-width: 2.4; stroke-linecap: round; }
.h5-x { animation-name: shake; transform-origin: center; }
@keyframes shake { 0%, 30%, 60%, 100% { transform: translateX(0); } 40% { transform: translateX(-3px); } 45% { transform: translateX(3px); } 50% { transform: translateX(-2px); } }
.h5-no { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; animation-name: h5no; }
@keyframes h5no { 0%, 30% { opacity: 0; } 40%, 90% { opacity: 1; } 100% { opacity: 0; } }
.h6-win { fill: var(--panel); stroke: var(--route); stroke-width: 2.4; animation-name: h6lit; }
@keyframes h6lit { 0%, 55% { fill: var(--panel); stroke: var(--route); } 62%, 90% { fill: color-mix(in srgb, var(--green) 40%, var(--panel)); stroke: var(--green); } 100% { fill: var(--panel); } }
.h6-trail { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 76; stroke-dashoffset: 76; animation-name: h6trail; }
@keyframes h6trail { 0%, 5% { stroke-dashoffset: 76; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 75%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.h6-file { animation-name: h6move; }
@keyframes h6move { 0%, 5% { transform: translate(62px, 54px); opacity: 1; } 55% { transform: translate(138px, 54px); opacity: 1; } 60%, 100% { transform: translate(138px, 54px); opacity: 0; } }
.h6-ok { font: 900 20px system-ui, sans-serif; fill: var(--green); opacity: 0; animation-name: h6ok; }
@keyframes h6ok { 0%, 58% { opacity: 0; } 64%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hdemo * { animation: none !important; } .h1-file { transform: translate(0, 70px); } .h3-link { opacity: 1; } .h6-trail { stroke-dashoffset: 0; } }

.why-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .why-grid.two { grid-template-columns: 1fr; } }
