/* The guard's two looks (the owner's picks, mailbox/panel-home/guard.html): night, the aurora, and day, the
   halo; `data-theme` on <html> picks one (theme.js), and with none it is night. Only transform, opacity and a
   stroke move: the phone draws them cheaply. One who asked their phone for less motion gets none. No image, font
   or link from outside: the page's policy lets none in, and the system's own fonts read Arabic too. */
:root{--soft:cubic-bezier(.2,.8,.2,1);--ease:cubic-bezier(.22,1,.36,1);--spring:cubic-bezier(.34,1.5,.64,1);--r:24px;
--st:env(safe-area-inset-top);--sb:env(safe-area-inset-bottom);
--sans:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Arabic","Noto Naskh Arabic",Tahoma,sans-serif;
--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
/* night: the aurora */
:root,[data-theme=night]{color-scheme:dark;--bg:#060914;--ink:#eef2ff;--dim:#97a3c7;--faint:#5f6a8c;--card:rgba(255,255,255,.055);
--card2:rgba(255,255,255,.09);--edge:rgba(255,255,255,.09);--line:rgba(255,255,255,.12);--good:#3ee0a1;--good-ink:#3ee0a1;
--warn:#ffb547;--bad:#ff6b8a;--a:#8b93ff;--b:#22d3ee;--g1:#c4b5fd;--g2:#67e8f9;--onmark:#120b2a;--tint:#8b93ff1f;
--solid:#0d1228;--bar:#080c1dcc;--veil:#02040acc;--sh:0 14px 30px -18px #000,inset 0 1px #ffffff12;--lift:0 20px 50px -20px #000c}
/* day: the halo */
[data-theme=day]{color-scheme:light;--bg:#eef1f8;--ink:#101731;--dim:#5d6684;--faint:#8d95ad;--card:#ffffffd9;--card2:#f4f6fc;
--edge:#fff;--line:#e3e7f1;--good:#10b981;--good-ink:#047857;--warn:#c2740a;--bad:#e11d48;--a:#6366f1;--b:#ec4899;--g1:#6366f1;
--g2:#ec4899;--onmark:#fff;--tint:#eef0ff;--solid:#eef1f8;--bar:#eef1f8d9;--veil:#10173155;
--sh:0 1px 2px #1017310d,0 10px 30px -12px #10173129;--lift:0 1px 2px #1017310d,0 10px 30px -12px #10173129}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
/* the body's colour is the canvas's, so the sky (z-index -1) shows above it */
body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg);color:var(--ink);font:15px/1.45 var(--sans);
overflow-x:hidden;-webkit-font-smoothing:antialiased}
main{max-width:560px;margin:auto;padding:calc(16px + var(--st)) 16px calc(36px + var(--sb));position:relative}
h1,h2,h3,p,dl,dd,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
p,b,dd,h1,h2,h3,.says{overflow-wrap:anywhere}
button,input{font:inherit;color:inherit;border:0;background:none;padding:0}
button{text-align:start;cursor:pointer}
button:disabled{opacity:.55;cursor:default}
[hidden]{display:none!important}
.screen,.screen:focus-visible{outline:none}
:focus-visible{outline:2px solid var(--b);outline-offset:3px;border-radius:12px}
[data-theme=day] :focus-visible{outline-color:var(--a)}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block;
flex:none}
svg path{stroke-dasharray:1}
.mono{font-family:var(--mono)}

/* the sky behind (theme.js puts it in): the aurora's lights and stars, or the halo's soft colours and dots */
.sky{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.sky i{position:absolute;width:110vmax;height:110vmax;border-radius:50%;will-change:transform}
.sky i:nth-child(1){background:radial-gradient(closest-side,#4f46e5b0,transparent 72%);top:-68vmax;left:-48vmax;
animation:a1 21s ease-in-out infinite alternate}
.sky i:nth-child(2){background:radial-gradient(closest-side,#06b6d48a,transparent 72%);top:-30vmax;right:-72vmax;
animation:a2 27s ease-in-out infinite alternate}
.sky i:nth-child(3){background:radial-gradient(closest-side,#c026d36b,transparent 72%);bottom:-78vmax;left:-26vmax;
animation:a3 33s ease-in-out infinite alternate}
.sky i:nth-child(4){background:radial-gradient(closest-side,#10b98140,transparent 72%);bottom:-60vmax;right:-60vmax;
animation:a1 39s ease-in-out infinite alternate-reverse}
.sky b{position:absolute;left:0;right:0;top:-260px;bottom:0;opacity:.55;will-change:transform;animation:stars 70s linear infinite;
background-image:radial-gradient(1.2px 1.2px at 22px 34px,#fff,transparent),radial-gradient(1px 1px at 132px 86px,#fffb,transparent),
radial-gradient(1.6px 1.6px at 206px 170px,#cfe8ff,transparent),radial-gradient(1px 1px at 64px 214px,#fff9,transparent),
radial-gradient(1px 1px at 172px 236px,#fff8,transparent);background-size:260px 260px}
.sky u{position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,#060914cc)}
[data-theme=day] .sky i{width:80vmax;height:80vmax}
[data-theme=day] .sky i:nth-child(1){background:radial-gradient(closest-side,#a5b4fc99,transparent);top:-40vmax;left:-30vmax;
animation:w1 19s ease-in-out infinite alternate}
[data-theme=day] .sky i:nth-child(2){background:radial-gradient(closest-side,#fbcfe8aa,transparent);top:-20vmax;right:-45vmax;
animation:w2 24s ease-in-out infinite alternate}
[data-theme=day] .sky i:nth-child(3){background:radial-gradient(closest-side,#a7f3d088,transparent);bottom:-45vmax;left:-25vmax;
animation:w3 29s ease-in-out infinite alternate}
[data-theme=day] .sky i:nth-child(4){background:radial-gradient(closest-side,#fed7aa88,transparent);bottom:-40vmax;right:-35vmax;
animation:w1 34s ease-in-out infinite alternate-reverse}
[data-theme=day] .sky b{top:0;opacity:1;animation:none;will-change:auto;
background:radial-gradient(#10173114 1px,transparent 1.2px) 0 0/22px 22px;
-webkit-mask:linear-gradient(180deg,#000,transparent 55%);mask:linear-gradient(180deg,#000,transparent 55%)}
[data-theme=day] .sky u{display:none}

/* the line above every screen (theme.js): the guard's mark and the switch between night and day */
.topline{position:relative;max-width:560px;margin:0 auto;padding:calc(12px + var(--st)) 16px 0;display:flex;align-items:center;
justify-content:space-between;gap:10px}
.topline+main{padding-top:10px}
.brand{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
color:var(--dim)}
.brand svg{width:16px;height:16px;color:var(--a)}
.thm{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:50%;color:var(--ink);background:var(--card2);
border:1px solid var(--edge);box-shadow:var(--sh);transition:transform .35s var(--spring)}
.thm:active{transform:scale(.9) rotate(-20deg)}
.thm svg{width:18px;height:18px}
.thm svg path,.brand svg path{stroke-dasharray:none}

/* the face, and its frame that turns */
.ring{position:relative;display:grid;place-items:center;width:62px;height:62px;flex:none}
.ring::before{content:"";position:absolute;inset:0;border-radius:22px;background:conic-gradient(var(--a),var(--b),#e879f9,var(--a));
animation:turn 6s linear infinite}
.face{position:relative;width:56px;height:56px;border-radius:19px;object-fit:cover;background:linear-gradient(135deg,#1d2448,#0d1124)}
.letter{display:grid;place-items:center;font-size:24px;font-weight:800;color:var(--ink)}
[data-theme=day] .ring::before{border-radius:50%;background:conic-gradient(var(--a),var(--b),#f59e0b,var(--a))}
[data-theme=day] .face{border-radius:50%;border:3px solid #fff;background:linear-gradient(135deg,#f59e0b,var(--b))}
[data-theme=day] .letter{color:#fff}

/* waiting: the mark breathes while LINE and the squad answer */
.wait{min-height:78vh;display:grid;place-content:center;justify-items:center;gap:22px;color:var(--dim);text-align:center}
.wait>p{font-size:12px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;animation:rise .6s var(--soft) .2s both}
.wait .ring.big{width:96px;height:96px}
.wait .big::before{border-radius:50%;animation-duration:1.4s}
.wait .big::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid #8b93ff66;animation:radar 2s var(--ease) infinite}
.wait .big .face{width:88px;height:88px;border-radius:50%;font-size:38px}
[data-theme=day] .wait .big::before{border-radius:30px;background:linear-gradient(135deg,var(--a),var(--b));
animation:breathe 1.6s var(--ease) infinite alternate}
[data-theme=day] .wait .big::after{display:none}
[data-theme=day] .wait .big .face{border-radius:27px;border:0;background:none}
[data-theme=day] .wait>p{letter-spacing:.04em;text-transform:none;font-size:14px}

/* the big buttons */
.act{min-height:48px;padding:10px 26px;border-radius:16px;text-align:center;font-weight:800;color:var(--onmark);
background:linear-gradient(100deg,var(--g1),var(--g2));box-shadow:0 10px 24px -12px var(--g2);
transition:transform .3s var(--spring),opacity .18s}
.act:active{transform:scale(.955);transition-duration:.12s}
.plain{color:var(--ink);background:var(--card2);border:1px solid var(--edge);box-shadow:none}

/* a trouble: its sign draws itself */
.sign{display:grid;place-items:center;width:76px;height:76px;border-radius:26px;color:var(--a);background:var(--card);
border:1px solid var(--edge);box-shadow:var(--sh);animation:pop .5s var(--spring) both}
.sign svg{width:36px;height:36px}
.sign path{animation:draw .9s var(--soft) .25s both}
.trouble .words{display:grid;gap:6px;max-width:300px;animation:rise .5s var(--soft) .12s both}
.trouble h1{font-size:22px;line-height:1.3;font-weight:800;color:var(--ink)}
.trouble .act{animation:rise .5s var(--soft) .24s backwards}

/* the link */
.link{display:grid;gap:16px;text-align:center}
.link header{display:grid;justify-items:center;gap:6px;padding-top:12px}
.link header .sign{margin-bottom:8px}
.link h1{font-size:24px;line-height:1.3;font-weight:800}
.box{display:grid;gap:12px;padding:22px 18px 18px;border-radius:22px;background:var(--card);border:1px solid var(--edge);
box-shadow:var(--sh);animation:rise .5s var(--soft) .1s both}
.code{font:750 clamp(26px,9.5vw,42px)/1.2 var(--mono);letter-spacing:.1em;margin-inline-end:-.1em;overflow-wrap:anywhere;
user-select:all;-webkit-user-select:all}
.left{height:5px;border-radius:9px;overflow:hidden;background:var(--line)}
.left span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--good),var(--g2));transform-origin:left;
transition:transform 1s linear}
.over .code{opacity:.35;text-decoration:line-through;user-select:none;-webkit-user-select:none}
.steps{display:grid;gap:8px;text-align:start;counter-reset:step}
.steps li{display:flex;align-items:center;gap:12px;counter-increment:step}
.steps li::before{content:counter(step);display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;
font-weight:800;color:var(--a);background:var(--tint)}
.told{min-height:1.4em;color:var(--dim)}
.told:empty{display:none}
.sub.warn{color:var(--warn)}

/* Home: who looks, in a glass card */
.who{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 14px;padding:18px;
margin-bottom:12px;border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#ffffff16,#ffffff06);
border:1px solid var(--edge);box-shadow:var(--lift),inset 0 1px #ffffff1a;animation:rise .6s var(--ease) both}
.who::before{content:"";position:absolute;inset:-40% -10% auto auto;width:240px;height:240px;border-radius:50%;pointer-events:none;
background:radial-gradient(closest-side,#22d3ee38,transparent);animation:a2 14s ease-in-out infinite alternate}
.who .ring{grid-row:1/3}
.who>div{position:relative;min-width:0}
/* two lines of a long name, in lines tall enough for Arabic's marks; beside the face in either direction */
.who h1{font-size:21px;line-height:1.35;font-weight:800;text-align:left;display:-webkit-box;-webkit-box-orient:vertical;
-webkit-line-clamp:2;overflow:hidden}
.who .sub{text-align:left}
.sub{color:var(--dim);font-size:13px}
/* the rank: a chip with a crown cut out of its own colour (no picture) */
.rank{position:relative;grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:5px;margin-top:6px;
padding:3px 10px 3px 7px;border-radius:99px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
color:#1a1033;background:linear-gradient(100deg,#c4b5fd,#67e8f9);box-shadow:0 4px 14px -4px #67e8f988}
.rank::before{content:"";width:12px;height:10px;background:currentColor;
clip-path:polygon(0 25%,28% 55%,50% 0,72% 55%,100% 25%,88% 100%,12% 100%)}
[data-theme=day] .who{background:var(--card);border-color:#fff;box-shadow:var(--sh)}
[data-theme=day] .who::before{display:none}
[data-theme=day] .who h1{font-size:19px}
[data-theme=day] .rank{color:#fff;background:linear-gradient(100deg,var(--a),var(--b));box-shadow:0 6px 16px -6px #6366f1aa}
@media (min-width:401px){
.who{grid-template-columns:auto minmax(0,1fr) auto}
.who .rank{grid-column:3;grid-row:1/3;margin-top:0}
}

/* Home: the numbers, each its value above its name */
.numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.numbers div{display:flex;flex-direction:column-reverse;justify-content:center;min-width:0;padding:12px 6px 10px;border-radius:18px;
text-align:center;background:var(--card);border:1px solid var(--edge);box-shadow:var(--sh);
animation:rise .5s var(--soft) calc(.08s + var(--i)*.05s) both}
dt{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
dd{font-size:18px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.good dd{color:var(--good-ink)}
.good dt::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--good);margin-inline-end:5px;
vertical-align:1px;animation:beat 1.8s ease-in-out infinite}
[data-theme=day] dt{color:var(--dim);letter-spacing:0;text-transform:none;font-size:11.5px;font-weight:500}
[data-theme=day] dd{font-size:19px}

/* Home: the parts' titles */
h2{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
color:var(--dim);margin:26px 4px 12px}
h2::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--edge),transparent)}
[data-theme=day] h2{font-size:20px;font-weight:800;letter-spacing:-.01em;text-transform:none;color:var(--ink);margin:26px 4px 10px}
[data-theme=day] h2::after{display:none}
li{animation:rise .55s var(--soft) calc(.18s + var(--i,0)*.045s) both}
li svg path{animation:draw .8s var(--soft) calc(.35s + var(--i,0)*.045s) both}

/* Home: the tiles. Each takes its colour from its hue (`--h`): by its place here, unless the page gives its own. */
.tiles li{--h:250}
section:nth-of-type(odd) .tiles li:nth-child(5n+1){--h:155}
section:nth-of-type(odd) .tiles li:nth-child(5n+2){--h:38}
section:nth-of-type(odd) .tiles li:nth-child(5n+3){--h:250}
section:nth-of-type(odd) .tiles li:nth-child(5n+4){--h:199}
section:nth-of-type(odd) .tiles li:nth-child(5n+5){--h:322}
section:nth-of-type(even) .tiles li:nth-child(4n+1){--h:262}
section:nth-of-type(even) .tiles li:nth-child(4n+2){--h:215}
section:nth-of-type(even) .tiles li:nth-child(4n+3){--h:174}
section:nth-of-type(even) .tiles li:nth-child(4n+4){--h:24}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{position:relative;display:grid;grid-template-rows:1fr auto auto;gap:2px;width:100%;height:100%;min-height:132px;padding:15px;
border-radius:var(--r);overflow:hidden;background:linear-gradient(160deg,hsl(var(--h) 70% 60%/.13),hsl(var(--h) 70% 40%/.04) 60%),
var(--card);border:1px solid hsl(var(--h) 80% 70%/.16);box-shadow:var(--sh);transition:transform .35s var(--spring)}
.tile:active{transform:scale(.955);transition-duration:.12s}
.icon{display:grid;place-items:center;align-self:start;width:44px;height:44px;margin-bottom:10px;border-radius:15px;color:#fff;
background:linear-gradient(135deg,hsl(var(--h) 90% 66%),hsl(calc(var(--h) + 35) 85% 52%));
box-shadow:0 8px 20px -6px hsl(var(--h) 90% 55%/.7),inset 0 1px #fff5}
.icon svg{width:21px;height:21px}
.tile b{font-size:16px;font-weight:700;line-height:1.25;min-width:0}
.tile b,.says,.top h1{text-align:left}
.says{min-width:0;color:var(--dim);font-size:12.5px}
.on .says{color:var(--good-ink)}
.on .says::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--good);margin-inline-end:5px;
vertical-align:1px}
/* night: a wide tile (the first, and an even last) is a row, with the way on at its end */
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)){grid-column:1/-1}
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)) .tile{
grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;min-height:0;align-items:center}
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)) .icon{grid-row:1/3;margin:0}
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)) b{align-self:end}
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)) .says{grid-column:2;align-self:start}
:root:not([data-theme=day]) :is(.tiles li:first-child,.tiles li:last-child:nth-child(even)) .tile::after{content:"";grid-column:3;
grid-row:1/3;width:9px;height:9px;margin-inline-end:4px;border:solid var(--faint);border-width:2px 2px 0 0;transform:rotate(45deg);
transition:transform .3s var(--ease)}
:root:not([data-theme=day]) .tiles li .tile:active::after{transform:translateX(4px) rotate(45deg)}
/* day: the first part a bento (its first tile tall), the others one white list */
[data-theme=day] .tile{border-radius:24px;background:var(--card);border-color:#fff;min-height:112px;padding:14px}
[data-theme=day] .icon{width:40px;height:40px;border-radius:13px;background:hsl(var(--h) 72% 56%);
box-shadow:0 8px 16px -6px hsl(var(--h) 72% 56%),inset 0 1px #ffffff66}
[data-theme=day] section:first-of-type .tiles li:first-child{grid-row:span 2}
[data-theme=day] section:first-of-type .tiles li:first-child .tile{background:linear-gradient(160deg,#eef2ff,#fff 55%)}
[data-theme=day] section:first-of-type .tiles li:first-child b{font-size:18px}
[data-theme=day] section:not(:first-of-type) .tiles{display:block;border-radius:24px;background:var(--card);border:1px solid #fff;
box-shadow:var(--sh);overflow:hidden}
[data-theme=day] section:not(:first-of-type) .tiles li{position:relative;animation-name:glide}
[data-theme=day] section:not(:first-of-type) .tiles li+li::before{content:"";position:absolute;z-index:1;top:0;inset-inline:66px 0;
height:1px;background:var(--line)}
[data-theme=day] section:not(:first-of-type) .tile{grid-template-columns:auto minmax(0,1fr) minmax(0,auto) auto;
grid-template-rows:none;align-items:center;column-gap:12px;min-height:60px;padding:10px 14px;border:0;border-radius:0;
background:none;box-shadow:none}
[data-theme=day] section:not(:first-of-type) .icon{margin:0}
[data-theme=day] section:not(:first-of-type) b{font-weight:600}
[data-theme=day] section:not(:first-of-type) .says{text-align:right;color:var(--faint);white-space:nowrap;overflow:hidden;
text-overflow:ellipsis}
[data-theme=day] section:not(:first-of-type) .tile::after{content:"";width:8px;height:8px;margin-inline-end:4px;border:solid #c3c8d8;
border-width:2px 2px 0 0;transform:rotate(45deg)}
[data-theme=day] section:not(:first-of-type) .tile:active{transform:none;background:#f4f6fc}

/* a page: its bar, with the way back */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;margin:calc(-16px - var(--st)) -16px 6px;
padding:calc(10px + var(--st)) 12px 10px;background:var(--bar);-webkit-backdrop-filter:blur(18px) saturate(1.4);
backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line)}
.topline+main .top{margin-top:-10px}
.top h1{flex:1;min-width:0;font-size:18px;font-weight:800;line-height:1.3}
.top button{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--card2);
border:1px solid var(--edge);transition:transform .3s var(--spring)}
.top button:active{transform:scale(.92)}
[dir=rtl] .top button svg{transform:scaleX(-1)}
[data-theme=day] .top button{color:var(--a);background:#fff;box-shadow:var(--sh)}
[data-theme=day] .top h1{font-size:17px;font-weight:700;text-align:center;margin-inline-end:52px}
.note{background:var(--card);border:1px solid var(--edge);border-radius:22px;padding:16px 18px;color:var(--dim);box-shadow:var(--sh);
animation:rise .5s var(--soft) .1s both}

/* the screens coming and going */
/* backwards, not both: a transform kept after the move would make the screen the box of what is fixed in it (a sheet) */
.screen.in{animation:from-right .38s var(--soft) backwards}
.screen.back{animation:from-left .38s var(--soft) backwards}
.screen.gone{position:absolute;inset-inline:16px;pointer-events:none;animation:to-left .26s ease-in both}
.screen.gone.back{animation-name:to-right}
/* what was there already is not brought in again */
.screen:is(.back,.gone) :is(.who,.numbers div,li,li path,.note,.sign,.sign path,.words,.act,.box,p,.stagger>*,.rise){animation:none}

/* ---- for the pages (the generic renderer): plain names, both looks ---- */

/* a part's label, with something at its end (a count) */
.sec{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
color:var(--dim);margin:22px 4px 10px}
[data-theme=day] .sec{font-size:13px;font-weight:600;letter-spacing:.08em;margin:20px 8px 8px}
/* pieces that come in one after another, by `--i` */
.stagger>*,.rise{animation:rise .6s var(--ease) both;animation-delay:calc(var(--i,0)*55ms + 60ms)}
/* a card, and a list of rows in one card */
.card{border-radius:22px;padding:16px;background:var(--card);border:1px solid var(--edge);box-shadow:var(--sh)}
.list{margin-top:12px;border-radius:22px;background:var(--card);border:1px solid var(--edge);box-shadow:var(--sh);overflow:hidden}
.list>header{display:flex;align-items:center;gap:10px;padding:14px 16px 6px;font-weight:700}
.list>header svg{color:var(--a);width:19px;height:19px}
.count{margin-inline-start:auto;min-width:26px;padding:2px 8px;border-radius:99px;font-size:12px;text-align:center;background:var(--card2);
color:var(--dim)}
/* a row: alone it is a card; in a list, a line of it */
.row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 16px;margin-bottom:8px;border-radius:18px;
background:var(--card);border:1px solid var(--edge);text-align:start}
.list .row{margin:0;border:0;border-radius:0;background:none;border-top:1px solid var(--line)}
.list>.row:first-child,.list>header+.row{border-top:0}
button.row,.row[role=button],.row[role=radio]{cursor:pointer;transition:background-color .2s}
button.row:active,.row[role=button]:active,.row[role=radio]:active{background:var(--card2)}
.row .t{flex:1;min-width:0}
.row b{display:block;font-weight:600;font-size:14.5px}
.row small{display:block;color:var(--dim);font-size:12px}
.row .v{color:var(--dim);font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums;text-align:end;min-width:0}
.row.off b{color:var(--dim)}
.row.cmd b{font-family:var(--mono);font-size:14px}
[data-theme=day] .list{border-color:#fff;border-radius:24px}
[data-theme=day] .row{border-color:#fff;box-shadow:var(--sh)}
[data-theme=day] .list .row{box-shadow:none;border-top-color:var(--line)}
/* a coloured icon swatch, by `--h` */
.ico{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:14px;color:#fff;
background:linear-gradient(135deg,hsl(var(--h,250) 75% 60%),hsl(var(--h,250) 80% 42%));box-shadow:0 8px 18px -8px hsl(var(--h,250) 75% 56%)}
.ico svg{width:19px;height:19px}
/* a switch: `.sw` is the switch itself (role=switch, aria-checked); `.knob` sits inside an element that has them */
.sw,.knob{position:relative;display:block;width:50px;height:30px;flex:none;border-radius:99px;background:var(--line);
transition:background-color .3s;cursor:pointer}
.sw::after,.knob::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;
background:#fff;box-shadow:0 3px 8px #0006;transition:transform .45s var(--spring)}
.sw[aria-checked=true],[aria-checked=true] .knob{background:linear-gradient(90deg,#22c58b,var(--good))}
.sw[aria-checked=true]::after,[aria-checked=true] .knob::after{transform:translateX(20px)}
[dir=rtl] .sw[aria-checked=true]::after,[dir=rtl] [aria-checked=true] .knob::after{transform:translateX(-20px)}
[data-theme=day] .sw,[data-theme=day] .knob{background:#e1e5ef}
[data-theme=day] .sw[aria-checked=true],[data-theme=day] [aria-checked=true] .knob{background:var(--good)}
/* a choice of one (in a row with role=radio, aria-checked) */
.radio{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);flex:none;display:grid;place-items:center;
transition:border-color .3s}
.radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--b);transform:scale(0);
transition:transform .4s var(--spring)}
[aria-checked=true]>.radio{border-color:var(--b)}
[aria-checked=true]>.radio::after{transform:scale(1)}
[data-theme=day] .radio{border-color:#cfd5e3}
[data-theme=day] [aria-checked=true]>.radio{border-color:var(--a)}
[data-theme=day] .radio::after{background:var(--a)}
/* tabs: buttons with aria-selected; `.two` for two */
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin:16px 0 6px;padding:4px;border-radius:16px;
background:var(--card);border:1px solid var(--edge)}
.seg.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.seg button{padding:9px 4px;border-radius:12px;text-align:center;font-size:13.5px;font-weight:700;color:var(--dim);
transition:color .3s,background-color .3s}
.seg button[aria-selected=true]{color:var(--onmark);background:linear-gradient(100deg,var(--g1),var(--g2));
box-shadow:0 6px 18px -6px var(--g2)}
.seg button small{display:block;font:500 10.5px/1.3 var(--mono);opacity:.7}
[data-theme=day] .seg{background:#e3e7f1;border:0;padding:3px}
[data-theme=day] .seg button[aria-selected=true]{color:var(--ink);background:#fff;box-shadow:0 3px 10px #10173122}
/* a search box: a label holding an icon and its input */
.search{display:flex;align-items:center;gap:10px;margin-top:12px;padding:0 14px;height:48px;border-radius:16px;background:var(--card);
border:1px solid var(--edge);color:var(--dim)}
.search input{flex:1;min-width:0;height:100%;color:var(--ink);outline:0}
.search input::placeholder,.field input::placeholder{color:var(--faint)}
[data-theme=day] .search{background:#e3e7f1;border:0}
/* a field and its buttons */
.field{display:block;margin:12px 0 4px;font-size:12px;color:var(--dim)}
.field input{display:block;width:100%;margin-top:6px;height:46px;padding:0 14px;border-radius:14px;color:var(--ink);background:var(--card2);
border:1px solid var(--edge);font-size:15px}
.btns{display:flex;gap:10px;margin-top:18px}
.save{display:block;width:100%;height:48px;margin-top:14px;border-radius:15px;text-align:center;font-weight:800;color:var(--onmark);
background:linear-gradient(100deg,var(--g1),var(--g2));transition:transform .3s var(--spring)}
.save:active,.mbtn:active,.add:active,.play:active,.rk:active{transform:scale(.94)}
.btns .save{margin:0;flex:1}
.save.ghost{background:var(--card2);color:var(--ink);border:1px solid var(--edge)}
[data-theme=day] .field input{background:#f2f4fa;border-color:transparent}
[data-theme=day] .save:not(.ghost){box-shadow:0 10px 24px -10px #6366f1}
[data-theme=day] .save.ghost{background:#e3e7f1;border:0}
/* small buttons in a row: one of words (`.warn` for one to think twice about), one to add, one to run (`.done` once run) */
.mbtn{flex:none;padding:8px 13px;border-radius:12px;font-size:13px;font-weight:700;background:var(--card2);border:1px solid var(--edge);
transition:transform .3s var(--spring)}
.mbtn.warn{color:var(--warn)}
.add{display:inline-flex;align-items:center;gap:6px;flex:none;padding:8px 13px;border-radius:12px;font-size:13px;font-weight:700;
color:var(--g1);background:var(--tint);border:1px dashed #8b93ff66;transition:transform .3s var(--spring)}
.add svg{width:16px;height:16px}
.play{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:13px;color:#062a1d;
background:linear-gradient(135deg,#6ef3be,#22c58b);box-shadow:0 6px 16px -6px #3ee0a1aa;transition:transform .3s var(--spring)}
.play svg{width:18px;height:18px}
.play.done{background:linear-gradient(135deg,var(--g1),var(--g2));color:var(--onmark)}
[data-theme=day] .mbtn{color:var(--a);background:var(--tint);border:0;font-weight:600}
[data-theme=day] .mbtn.warn{color:#c2410c;background:#fff1e6}
[data-theme=day] .add{color:var(--a);border:0}
[data-theme=day] .play{color:#fff;border-radius:50%;background:linear-gradient(135deg,#34d399,#059669)}
/* the rank a command needs (a chip that opens the access sheet); `.g` when set for this group only */
.rk{position:relative;flex:none;padding:5px 10px;border-radius:99px;font-size:11.5px;font-weight:700;color:var(--g1);background:var(--tint);
border:1px solid #8b93ff44;transition:transform .3s var(--spring)}
.rk.g::after{content:"";position:absolute;top:-3px;inset-inline-end:-3px;width:10px;height:10px;border-radius:50%;background:#f59e0b;
box-shadow:0 0 0 2px var(--bg)}
.rk.bump{animation:bump .6s var(--spring)}
[data-theme=day] .rk{color:var(--a);border:0}
.legend{display:flex;align-items:center;gap:7px;margin:10px 4px 0;font-size:12px;color:var(--dim)}
.legend>i{width:9px;height:9px;border-radius:50%;background:#f59e0b;flex:none}
.legend .lang{margin-inline-start:auto}
/* the language of the commands' descriptions: <button class=lang aria-pressed=(Arabic)><i></i><span>EN</span><span>ع</span> */
.lang{position:relative;display:grid;grid-template-columns:1fr 1fr;flex:none;width:66px;height:30px;padding:3px;border-radius:99px;
font-size:12px;font-weight:800;background:var(--card2);border:1px solid var(--edge)}
.lang span{position:relative;z-index:1;display:grid;place-items:center;color:var(--dim);transition:color .3s}
.lang i{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:99px;
background:linear-gradient(100deg,var(--g1),var(--g2));transition:transform .45s var(--spring)}
.lang[aria-pressed=true] i{transform:translateX(100%)}
.lang:not([aria-pressed=true]) span:nth-of-type(1),.lang[aria-pressed=true] span:nth-of-type(2){color:var(--onmark)}
[data-theme=day] .lang{background:#fff;border:0;box-shadow:var(--sh)}
/* a lock: why something is not shown */
.lock{display:flex;align-items:center;gap:8px;margin:16px 4px 0;font-size:12.5px;color:var(--warn)}
.lock svg{width:16px;height:16px}
/* a bar of how much, its `i` as wide as the share */
.meter{height:5px;border-radius:9px;background:var(--line);margin-top:9px;overflow:hidden}
.meter i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,var(--good),var(--g2));transform-origin:left;
animation:grow 1.2s var(--ease) .4s both}
/* a living dot (`.z` when frozen) */
.dot{display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:var(--good);animation:dot 2s infinite}
.dot.z{background:var(--warn);animation:none}
/* faces in a row */
.avs{display:flex}
.avs>*{width:26px;height:26px;border-radius:50%;margin-inline-start:-7px;box-shadow:0 0 0 2px var(--bg);object-fit:cover}
.avs>:first-child{margin-inline-start:0}

/* the commands' expiry: `.warn` near the end, `.crit` in the last hour, `.expired` once past. Home's (pages.js) is
   `.expiry` with `.soon`, `.last`, `.expired`: the same card. */
.exp,.expiry{display:flex;align-items:center;gap:12px;width:100%;margin-top:12px;padding:12px 14px;border-radius:18px;text-align:start;
background:var(--card2);border:1px solid var(--edge);color:var(--ink)}
:is(.exp,.expiry) svg{width:18px;height:18px;color:var(--dim)}
.exp span,.expiry>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
:is(.exp,.expiry) b{font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums}
:is(.exp,.expiry) small{display:block;color:var(--dim);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exp.warn,.expiry.soon{background:#f59e0b1c;border-color:#f59e0b55}
:is(.exp.warn,.expiry.soon) :is(svg,b){color:var(--warn)}
.exp.crit,.expiry.last{background:#ff6b8a1f;border-color:#ff6b8a66;animation:expPulse 1.6s ease-in-out infinite}
:is(.exp.crit,.expiry.last) :is(svg,b){color:var(--bad)}
.exp.expired,.expiry.expired{background:#6b728022;border-color:#6b728055}
:is(.exp,.expiry).expired :is(svg,b){color:var(--faint)}

/* the access sheet: rises from below over a veil; both take `.on` */
.veil{position:fixed;inset:0;z-index:30;background:var(--veil);opacity:0;transition:opacity .4s;pointer-events:none}
.veil.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:31;max-width:560px;margin:0 auto;max-height:78vh;display:flex;flex-direction:column;
padding:10px 16px calc(16px + var(--sb));border-radius:28px 28px 0 0;background:var(--solid);border:1px solid var(--edge);border-bottom:0;
box-shadow:0 -20px 60px #000c;transform:translateY(105%);visibility:hidden;
transition:transform .5s var(--ease),visibility 0s linear .5s}
.sheet.on{transform:none;visibility:visible;transition:transform .5s var(--spring)}
.sheet .grab{width:42px;height:5px;border-radius:9px;background:var(--line);margin:0 auto 12px}
.sheet h3{font-size:17px;font-weight:800}
.sheet .list{overflow-y:auto;margin-top:10px}
[data-theme=day] .sheet{border:0;box-shadow:0 -20px 60px #10173140}
[data-theme=day] .sheet .grab{background:#c9cfdd}
/* a word that comes and goes: `.on`, and `.bad` when it went wrong */
.toast{position:fixed;left:50%;bottom:calc(22px + var(--sb));z-index:40;display:flex;align-items:center;gap:10px;width:max-content;
max-width:calc(100vw - 32px);
padding:11px 16px 11px 12px;border-radius:16px;background:#151b36f0;color:#eef2ff;border:1px solid var(--edge);box-shadow:0 14px 40px #000b;
font-size:13.5px;font-weight:600;transform:translate(-50%,140%);opacity:0;transition:transform .5s var(--spring),opacity .3s;
pointer-events:none}
.toast.on{transform:translate(-50%,0);opacity:1}
.toast svg{width:18px;height:18px;color:var(--good)}
.toast.bad svg{color:var(--warn)}
[data-theme=day] .toast{top:calc(12px + var(--st));bottom:auto;border-radius:99px;background:#101731;border:0;
transform:translate(-50%,-160%) scale(.9)}
[data-theme=day] .toast.on{transform:translate(-50%,0)}

/* the bots: a grid of them, each with its picture */
.bots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.bot{padding:12px 10px;border-radius:18px;background:var(--card);border:1px solid var(--edge);box-shadow:var(--sh);text-align:start}
.bot b{display:block;font-size:13.5px;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bot small{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--dim)}
/* a bot's own picture (or video, with its badge): `.bp-l` large, `.bp-xl` larger */
.bp{position:relative;display:inline-block;flex:none;width:40px;height:40px;border-radius:14px;overflow:hidden;background:var(--card2)}
.bp>img,.bp>video{width:100%;height:100%;object-fit:cover;display:block}
.vbadge{position:absolute;left:3px;bottom:3px;padding:1px 5px;border-radius:6px;font-size:8px;font-weight:800;letter-spacing:.03em;
line-height:1.4;background:#0009;color:#fff}
.bp.bp-l{width:84px;height:84px;border-radius:28px;border:4px solid var(--solid);box-shadow:0 10px 24px -8px rgba(0,0,0,.4)}
.bp.bp-xl{width:104px;height:104px;border-radius:50%;border:3px solid #fff;box-shadow:0 12px 28px -8px rgba(0,0,0,.5)}
/* a bot's page: its profile as LINE shows it (cover, picture, name, status), which opens its editor */
.pcard{position:relative;display:block;width:100%;margin-top:14px;border-radius:26px;overflow:hidden;background:var(--card);
border:1px solid var(--edge);box-shadow:var(--lift);text-align:center}
.pc-cover{position:relative;height:148px;overflow:hidden;background:var(--card2)}
.pc-cover>img,.pc-cover>video{width:100%;height:100%;object-fit:cover;display:block}
.pc-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,#00000066)}
.deco-n{position:absolute;right:12px;top:12px;z-index:2;padding:4px 10px;border-radius:99px;font-size:11px;font-weight:700;
background:#0007;color:#fff}
.pc-body{position:relative;display:flex;flex-direction:column;align-items:center;padding:0 16px 18px;margin-top:-46px}
.pc-body .bp{margin:0 auto 10px}
.pc-body b{display:block;font-size:17px;font-weight:800;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-body small{display:block;color:var(--dim);font-size:12.5px;margin-top:2px;max-width:100%;white-space:nowrap;overflow:hidden;
text-overflow:ellipsis}
.pc-edit{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:7px 14px;border-radius:12px;font-size:12.5px;
font-weight:700;background:var(--card2);border:1px solid var(--edge);color:var(--ink)}
.pc-edit svg{width:14px;height:14px}

/* the reader's card shapes: a row that scrolls and snaps; each `.rc` (aria-pressed when picked) holds the shape's picture (an
   <img>) or its moving scene (`.scene.s-<name>`), and `.rrow`, the welcome's line; `.rn` its name below */
.cards{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 4px 10px;margin:0 -4px;scrollbar-width:none;
-webkit-overflow-scrolling:touch}
.cards::-webkit-scrollbar{display:none}
.rcw{flex:none;width:150px;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.rc{position:relative;display:block;width:100%;aspect-ratio:3/4;border-radius:22px;overflow:hidden;background:var(--cb,#111);
border:2px solid transparent;transition:transform .35s var(--spring),border-color .3s;box-shadow:0 14px 30px -16px #0008}
.rc>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rc[aria-pressed=true]{border-color:var(--ca,var(--b));transform:translateY(-5px) scale(1.02)}
.rrow{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;gap:8px;padding:30px 12px 12px;text-align:start;
background:linear-gradient(180deg,transparent,#00000093 55%);color:var(--ct,#fff)}
.rrow b{display:block;font-size:12.5px;font-weight:800;line-height:1.2}
.rrow small{display:block;font-size:10.5px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pick{position:absolute;top:9px;right:9px;z-index:2;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
background:#fff;color:var(--ca,#111);opacity:0;transform:scale(.6);transition:transform .35s var(--spring),opacity .3s}
.rc[aria-pressed=true] .pick{opacity:1;transform:none}
.pick svg{width:13px;height:13px;stroke-width:3}
.rn{font-size:12.5px;font-weight:700;color:var(--dim);transition:color .3s}
.rc[aria-pressed=true]+.rn{color:var(--ink);font-weight:800}
.scene{position:absolute;inset:0;overflow:hidden}
.s-aurora{background:radial-gradient(120% 90% at 50% 112%,var(--cs),transparent 60%),var(--cb)}
.s-aurora i{position:absolute;left:-20%;width:140%;height:42%;border-radius:50%;filter:blur(16px);opacity:.55;
background:linear-gradient(90deg,transparent,var(--ca),transparent);animation:auroraDrift 8s ease-in-out infinite alternate}
.s-aurora i:nth-child(1){top:2%}
.s-aurora i:nth-child(2){top:18%;animation-duration:10s;animation-delay:-3s;opacity:.4}
.s-aurora i:nth-child(3){top:32%;animation-duration:6s;animation-delay:-1s;opacity:.35}
.s-dunes{background:linear-gradient(180deg,var(--cs),var(--cb) 70%)}
.s-dunes .sun,.s-tide .sun{position:absolute;left:50%;top:16%;width:36%;aspect-ratio:1;border-radius:50%;transform:translateX(-50%);
background:radial-gradient(circle,#fff,var(--ca) 60%,transparent 72%)}
.s-dunes .d1,.s-dunes .d2{position:absolute;left:-12%;right:-12%;height:44%;border-radius:50%}
.s-dunes .d1{bottom:-8%;background:var(--ca);opacity:.85;animation:sway 9s ease-in-out infinite}
.s-dunes .d2{bottom:-18%;background:var(--cb);opacity:.95;animation:sway 12s ease-in-out infinite reverse}
.s-orbit{background:radial-gradient(130% 100% at 30% 0%,var(--cs),transparent 60%),var(--cb)}
.s-orbit .pl{position:absolute;left:50%;top:24%;width:28%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);
background:radial-gradient(circle at 35% 30%,#fff,var(--ca) 55%,var(--cb) 100%);box-shadow:0 0 28px var(--ca)}
.s-orbit .orb{position:absolute;left:50%;top:24%;width:46%;aspect-ratio:1;border:1.5px solid var(--ca);border-radius:50%;opacity:.6;
transform:translate(-50%,-50%) rotate(-18deg);animation:orbSpin 14s linear infinite}
.s-petals{background:linear-gradient(180deg,var(--cs),var(--cb))}
.s-petals i{position:absolute;top:-10%;width:9px;height:9px;border-radius:70% 0 70% 0;background:var(--ca);opacity:.85;
animation:petalFall 6s linear infinite}
.s-tide{background:linear-gradient(180deg,var(--cs),var(--cb) 75%)}
.s-tide .sun{top:13%;width:30%}
.s-tide .w1,.s-tide .w2{position:absolute;left:-16%;right:-16%;height:28%;border-radius:50%;opacity:.7}
.s-tide .w1{bottom:8%;background:var(--ca);animation:sway 6s ease-in-out infinite}
.s-tide .w2{bottom:-2%;background:var(--cb);animation:sway 8s ease-in-out infinite reverse}
.s-embers{background:radial-gradient(120% 90% at 50% 112%,var(--cs),var(--cb))}
.s-embers i{position:absolute;bottom:-5%;width:4px;height:4px;border-radius:50%;background:var(--ca);box-shadow:0 0 8px 2px var(--ca);
animation:emberRise 4s linear infinite}
.s-petals i:nth-child(1),.s-embers i:nth-child(1){left:8%}
.s-petals i:nth-child(2),.s-embers i:nth-child(2){left:24%;animation-delay:-1.1s;animation-duration:5s}
.s-petals i:nth-child(3),.s-embers i:nth-child(3){left:38%;animation-delay:-2.2s}
.s-petals i:nth-child(4),.s-embers i:nth-child(4){left:55%;animation-delay:-3.3s;animation-duration:7s}
.s-petals i:nth-child(5),.s-embers i:nth-child(5){left:70%;animation-delay:-4.4s;animation-duration:5s}
.s-petals i:nth-child(6),.s-embers i:nth-child(6){left:86%;animation-delay:-5.5s}

@keyframes rise{from{opacity:0;transform:translateY(18px) scale(.98)}}
@keyframes glide{from{opacity:0;transform:translateX(34px)}}
@keyframes from-right{from{opacity:0;transform:translateX(44px)}}
@keyframes from-left{from{opacity:0;transform:translateX(-44px)}}
@keyframes to-left{to{opacity:0;transform:translateX(-28px)}}
@keyframes to-right{to{opacity:0;transform:translateX(28px)}}
@keyframes pop{from{opacity:0;transform:scale(.6)}}
@keyframes turn{to{transform:rotate(1turn)}}
@keyframes beat{50%{opacity:.35;transform:scale(.7)}}
@keyframes draw{from{stroke-dashoffset:1}}
@keyframes radar{from{transform:scale(.7);opacity:1}to{transform:scale(1.7);opacity:0}}
@keyframes breathe{to{transform:scale(1.06) rotate(-4deg)}}
@keyframes grow{from{transform:scaleX(0)}}
@keyframes bump{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.15);opacity:1}}
@keyframes dot{0%{box-shadow:0 0 0 0 #3ee0a199}70%,100%{box-shadow:0 0 0 7px #3ee0a100}}
@keyframes expPulse{0%,100%{box-shadow:0 0 0 0 #ff6b8a4d}50%{box-shadow:0 0 0 6px #ff6b8a00}}
@keyframes a1{to{transform:translate(28vmax,22vmax) rotate(35deg) scale(1.12)}}
@keyframes a2{to{transform:translate(-30vmax,26vmax) scale(1.2)}}
@keyframes a3{to{transform:translate(18vmax,-24vmax) scale(.9)}}
@keyframes w1{to{transform:translate(22vmax,18vmax) scale(1.15)}}
@keyframes w2{to{transform:translate(-24vmax,22vmax) scale(.9)}}
@keyframes w3{to{transform:translate(20vmax,-20vmax) scale(1.1)}}
@keyframes stars{to{transform:translateY(260px)}}
@keyframes auroraDrift{from{transform:translateX(-6%) scaleY(1)}to{transform:translateX(6%) scaleY(1.3)}}
@keyframes sway{0%,100%{transform:translateX(-3%) scaleY(1)}50%{transform:translateX(3%) scaleY(1.1)}}
@keyframes orbSpin{to{transform:translate(-50%,-50%) rotate(342deg)}}
@keyframes petalFall{0%{transform:translateY(-10%) rotate(0deg);opacity:0}10%{opacity:.9}100%{transform:translateY(420%) rotate(260deg);opacity:0}}
@keyframes emberRise{0%{transform:translate(0,0);opacity:0}15%{opacity:1}100%{transform:translate(10px,-420%);opacity:0}}

/* small phones */
@media (max-width:400px){
main,.topline{padding-inline:12px}
.top{margin-inline:-12px}
.screen.gone{inset-inline:12px}
.numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
.tiles{gap:8px}
.tile{padding:13px;min-height:124px}
[data-theme=day] .tile{padding:12px}
.bots{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.screen.gone{display:none}}
