/* Bearish: the secret code disk. All of the page's styling.
   Came from the "Bearish Secret Code Disk" artifact of 2026-10-03 (kept in archive/), unchanged
   except for the last rule (the byline's link home). */
:root{--sky:#0f1b33;--sky2:#17284a;--cream:#efeed5;--dim:#9fa8c0;--red:#e30d1a;--glow:#ffe9a8;
 box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--sky:#0f1b33;--sky2:#17284a;--cream:#efeed5}}
:root[data-theme="dark"]{--sky:#0f1b33;--sky2:#17284a;--cream:#efeed5}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:inherit}
body{margin:0;background:radial-gradient(ellipse at 50% 20%,var(--sky2),var(--sky) 70%) fixed,var(--sky);color:var(--cream);
 font:400 16px/1.5 Montserrat,system-ui,sans-serif;min-height:100vh}
main{max-width:720px;margin:0 auto;padding:28px 18px 60px;text-align:center}
h1{font-family:Fraunces,"Cooper Black",Georgia,serif;font-variation-settings:"SOFT" 100;font-weight:900;font-size:clamp(40px,9vw,64px);line-height:1;margin:0}
.by{color:var(--dim);margin:6px 0 18px;font-size:15px}
.stage{position:relative;width:min(94vw,620px);aspect-ratio:1;margin:0 auto;touch-action:none;user-select:none;-webkit-user-select:none}
.stage img,.rotor,.rotor svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.rotor{transform-origin:50% 50%;will-change:transform}
.rotor.snap{transition:transform .45s cubic-bezier(.2,1.4,.4,1)}
.stage{cursor:grab}.stage.dragging{cursor:grabbing}
.stage:focus-visible{outline:3px solid var(--glow);outline-offset:6px;border-radius:50%}
.stars circle{fill:var(--cream)}
.dip line{stroke:var(--cream);stroke-width:3.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;opacity:0;transition:stroke-dashoffset .35s ease-out,opacity .15s}
.locked .dip line{stroke-dashoffset:0;opacity:1}
.dragging .dip line{transition:none;transition-delay:0s!important}
.dip circle{fill:var(--cream)}
.dip{transition:filter .5s .4s}
.dragging .dip{transition:none}
.locked .dip{filter:drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow))}
.controls{display:flex;gap:10px;justify-content:center;align-items:center;margin:14px 0 4px}
button{font:600 15px Montserrat,system-ui,sans-serif;color:var(--cream);background:transparent;border:2px solid var(--cream);border-radius:999px;padding:8px 16px;cursor:pointer}
button:hover{background:rgba(239,238,213,.12)}button:focus-visible{outline:3px solid var(--glow);outline-offset:2px}
.status{min-height:1.5em;margin:6px 0 30px;font-weight:600;color:var(--dim);transition:color .3s}
.locked-status{color:var(--glow)}
section{text-align:left;margin-top:28px}
h2{font-family:Fraunces,Georgia,serif;font-weight:900;font-variation-settings:"SOFT" 100;font-size:28px;margin:0 0 4px}
.note{color:var(--dim);font-size:14px;margin:0 0 10px}
textarea{width:100%;font:400 17px Montserrat,system-ui,sans-serif;color:var(--cream);background:rgba(0,0,0,.25);border:2px solid rgba(239,238,213,.35);border-radius:10px;padding:10px 12px;resize:vertical}
textarea:focus{outline:none;border-color:var(--cream)}
.out{display:flex;flex-wrap:wrap;gap:4px 2px;align-items:center;min-height:64px;margin-top:10px;padding:12px;background:var(--red);border-radius:12px}
.out img{height:44px;width:auto}.out .sp{width:20px}.out .br{flex-basis:100%;height:0}.out .raw{font-weight:600;font-size:22px;padding:0 2px}
.out:empty::before{content:"Your message appears here";color:rgba(239,238,213,.6);font-size:14px}
.pad{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:6px;margin-top:10px}
.pad button{padding:4px;border-radius:8px;background:var(--red);border-color:transparent;aspect-ratio:3/4;display:grid;place-items:center}
.pad button img{width:100%;height:auto}
.pad button:hover{border-color:var(--cream)}
.decoded{margin-top:10px;padding:12px;min-height:52px;border:2px dashed rgba(239,238,213,.35);border-radius:12px;font-weight:600;font-size:22px;letter-spacing:.06em;word-break:break-word}
.row{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.rotor.snap{transition:none}}
.by a{color:inherit;text-decoration:none}.by a:hover,.by a:focus-visible{text-decoration:underline}
/* the turning disk is a square picture, so its corners swing out past the page's edge on a phone:
   cut them off there so the page can't slide sideways (added 2026-12-05; the corners are empty) */
main{overflow-x:clip}
