/* The mode chooser (welcome screen and Appearance menu): three tall glowing cards on a blurred page.
   Its own fixed look, so it floats over every theme. */
.kzmode{position:fixed;inset:0;z-index:240;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(120% 90% at 50% 0%,rgba(60,34,70,.55),rgba(10,7,16,.72));-webkit-backdrop-filter:blur(14px) saturate(1.1);backdrop-filter:blur(14px) saturate(1.1);opacity:0;transition:opacity .28s ease;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans",sans-serif;color:#f3eef9}
.kzmode.in{opacity:1}
.kzmode button{font-family:inherit}
.kzmbox{position:relative;width:min(1040px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;padding:8px 6px 14px;scrollbar-width:none;transform:translateY(10px) scale(.985);transition:transform .3s ease}
.kzmbox::-webkit-scrollbar{display:none}
.kzmode.in .kzmbox{transform:none}
/* sparkle ornament */
.kzmorn{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px auto 6px;width:min(560px,80%)}
.kzmorn span{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(232,200,255,.55))}
.kzmorn span:last-child{background:linear-gradient(90deg,rgba(232,200,255,.55),transparent)}
.kzmorn i{font-style:normal;font-size:.62rem;color:#e9d5ff;opacity:.8}
.kzmorn b{font-size:1.15rem;color:#fbe8ff;text-shadow:0 0 10px rgba(244,200,255,.9);line-height:1}
.kzmhd{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;margin:0 0 18px;text-align:center}
.kzmhd small{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:#d8c6f0}
.kzmhd b{font-size:1.3rem;font-weight:700}
.kzmhd span{font-size:.84rem;color:rgba(243,238,249,.65)}
.kzmx{position:absolute;right:6px;top:-2px;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.04);color:#f3eef9;font-size:1.2rem;line-height:1;cursor:pointer}
.kzmx:hover{background:rgba(255,255,255,.1)}
/* the cards */
.kzmgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:6px 6px 4px}
.kzmcol{--c1:#ff8db8;--c2:#ffb8d4;--glow:rgba(255,141,184,.45);position:relative;display:flex;flex-direction:column;align-items:stretch;padding:14px 14px 12px;border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02) 40%),rgba(28,20,36,.82);border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 60px -24px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.08);cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .25s ease}
.kzmcol:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.22)}
.kzc-basic{background:linear-gradient(180deg,rgba(255,170,210,.12),rgba(255,255,255,.02) 45%),rgba(40,22,40,.84)}
.kzc-minimal{--c1:#c9c9cf;--c2:#8e8e96;--glow:rgba(220,220,230,.3);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 45%),rgba(20,20,24,.9)}
.kzc-advanced{--c1:#b98cff;--c2:#d8b8ff;--glow:rgba(185,140,255,.45);background:linear-gradient(180deg,rgba(185,140,255,.12),rgba(255,255,255,.02) 45%),rgba(30,20,44,.86)}
.kzmcol.on{border:1.5px solid var(--c1);box-shadow:0 0 0 1px var(--glow),0 0 34px -2px var(--glow),0 24px 60px -24px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.1)}
.kzmcard{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;border:0;background:transparent;color:inherit;text-align:center;cursor:pointer}
.kzmprev{position:relative;display:block;width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;background:#222 center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 10px 24px -14px rgba(0,0,0,.8)}
.kzmprev::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.25))}
.kzp-basic{background-image:linear-gradient(160deg,rgba(255,170,215,.22),rgba(255,120,190,.12)),url(vn/desk/desk-morning.webp);background-position:center,22% 60%}
.kzp-minimal{background-image:url(vn/desk/desk-night.webp);background-position:40% 60%;filter:grayscale(1) contrast(1.15) brightness(.85)}
.kzp-advanced{background-image:url(vn/cg/cg06.webp);background-position:center 20%}
.kzmchk{position:absolute;top:24px;right:24px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:1rem;font-weight:800;color:#fff;background:rgba(255,255,255,.15);border:2px solid #fff;box-shadow:0 0 14px var(--glow);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.kzmpill{margin-top:4px;padding:7px 20px;border-radius:999px;background:linear-gradient(135deg,var(--c1),var(--c2));color:#1d1424;font-weight:800;font-size:.95rem;letter-spacing:.01em;box-shadow:0 6px 18px -6px var(--glow)}
.kzc-minimal .kzmpill{color:#111}
.kzmdesc{font-size:.84rem;line-height:1.45;color:rgba(243,238,249,.78);max-width:28ch}
.kzmdef{font-style:normal;font-size:.72rem;color:var(--c1);opacity:.95}
.kzmdiv{display:flex;align-items:center;gap:8px;margin:12px 4px 10px}
.kzmdiv span{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25))}
.kzmdiv span:last-child{background:linear-gradient(90deg,rgba(255,255,255,.25),transparent)}
.kzmdiv i{font-style:normal;font-size:.7rem;color:var(--c2)}
/* colour scheme dots */
.kzmpals{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:0 0 12px}
.kzmpal{padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%}
.kzmpal span{display:block;width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 3px 8px rgba(0,0,0,.4);transition:transform .15s}
.kzmpal:hover span{transform:scale(1.1)}
.kzmpal.on span{box-shadow:0 0 0 2px rgba(20,14,26,.9),0 0 0 4px var(--c1),0 0 14px var(--glow)}
/* theme tray */
.kzmtray{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;padding:11px;border-radius:18px;background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.08)}
.kzmtile{padding:0;border:0;background:transparent;cursor:pointer;border-radius:12px;transition:transform .15s}
.kzmtile .kzi{width:42px;height:42px;border-radius:11px}
.kzmtile:hover{transform:translateY(-2px)}
.kzmtile.on .kzi{box-shadow:0 0 0 2px rgba(20,14,26,.95),0 0 0 4px var(--c1),0 0 16px var(--glow)}
.kzmcap{margin-top:8px;text-align:center;font-size:.76rem;color:rgba(243,238,249,.7);min-height:1.2em}
.kzmcol.on .kzmcap{color:var(--c1);font-weight:600}
/* page dots */
.kzmdots{display:flex;justify-content:center;align-items:center;gap:10px;margin:18px 0 2px}
.kzmdots::before,.kzmdots::after{content:"";width:min(160px,22vw);height:1px;background:linear-gradient(90deg,transparent,rgba(232,200,255,.4))}
.kzmdots::after{background:linear-gradient(90deg,rgba(232,200,255,.4),transparent)}
.kzmdots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.3);cursor:pointer;transition:all .2s}
.kzmdots button.on{width:12px;height:12px;background:#ffb8d4;box-shadow:0 0 10px rgba(255,184,212,.8)}
/* welcome screen: taller pictures, no trays */
.kzfirst .kzmcol{padding-bottom:18px}
/* phones: the cards become a swipeable row; the dots show which one you're on */
@media (max-width:820px){
  .kzmode{padding:10px 0}
  .kzmbox{padding:6px 0 10px}
  .kzmhd{padding:0 50px}
  .kzmgrid{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 9vw 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .kzmgrid::-webkit-scrollbar{display:none}
  .kzmcol{flex:0 0 82vw;max-width:360px;scroll-snap-align:center}
  .kzmcol:hover{transform:none}
}
@media (prefers-reduced-motion:reduce){.kzmode,.kzmbox,.kzmcol,.kzmpal span,.kzmtile{transition:none}}

/* ===== theme icons ===== */
.kzi{position:relative;flex:none;width:26px;height:26px;border-radius:50%;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35);background:#333}
.kzi::before,.kzi::after{content:"";position:absolute}
.kzi-glass{background:linear-gradient(135deg,#9b86ff,#ff7aa6)}
.kzi-glass::before{inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.75) 42%,transparent 56%)}
.kzi-spatial{background:linear-gradient(180deg,#0e1a2b,#1d2533)}
.kzi-spatial::before{left:-20%;right:-20%;top:28%;height:30%;background:linear-gradient(90deg,transparent,#34d399,#22d3ee,#a78bfa,transparent);filter:blur(1.5px);transform:rotate(-12deg);border-radius:50%}
.kzi-spatial::after{left:24%;top:16%;width:2px;height:2px;border-radius:50%;background:#fff;box-shadow:9px 4px 0 #fff,4px 12px 0 rgba(255,255,255,.7)}
.kzi-skeuo{background:radial-gradient(circle at 35% 30%,#b07a4a,#6b3d20 65%,#40220f)}
.kzi-skeuo::before{inset:4px;border-radius:50%;border:1px dashed rgba(244,214,160,.85)}
.kzi-clay{background:#e9dcc6}
.kzi-clay::before{left:5px;right:5px;top:7px;bottom:5px;border-radius:50% 50% 45% 45%;background:radial-gradient(circle at 40% 35%,#fffaf0,#f1dfc4);box-shadow:0 2px 2px rgba(90,60,30,.35)}
.kzi-clay::after{left:11px;top:11px;width:4px;height:4px;border-radius:50%;background:#e9a0b0}
.kzi-hogan{background:repeating-linear-gradient(180deg,#fdfbf4 0 4px,#9cc4e8 4px 5px)}
.kzi-hogan::before{left:7px;top:0;bottom:0;width:1.5px;background:#e05a5a}
.kzi-kokuban{background:#2f4a3a;box-shadow:inset 0 0 0 2px #8a6a44,0 1px 3px rgba(0,0,0,.35)}
.kzi-kokuban::before{left:6px;top:10px;width:14px;height:6px;border:1.5px solid rgba(255,255,255,.85);border-color:rgba(255,255,255,.85) transparent transparent transparent;border-radius:50%}
.kzi-sekkei{background:#1d4f91;background-image:linear-gradient(rgba(255,255,255,.35) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.35) 1px,transparent 1px);background-size:6px 6px}
.kzi-sekkei::before{left:7px;top:7px;width:12px;height:12px;border:1.3px solid #fff;border-radius:50%}
.kzi-eki{background:#111}
.kzi-eki::before{left:5px;top:8px;width:7px;height:10px;border-radius:1px;background:linear-gradient(180deg,#2a2a2a 50%,#1c1c1c 50%);box-shadow:8px 0 0 #222}
.kzi-eki::after{left:7px;top:10px;width:3px;height:6px;background:#fbbf24;box-shadow:8px 0 0 #fbbf24}
.kzi-toshokan{background:#5b3a22}
.kzi-toshokan::before{left:5px;bottom:6px;width:3px;height:12px;background:#b23a48;box-shadow:4px -2px 0 #2f6b3a,8px 0 0 #c69c40,12px -1px 0 #3f5fa0}
.kzi-toshokan::after{left:3px;right:3px;bottom:4px;height:2px;background:#d7b98a}
.kzi-koma{background:#fff;background-image:radial-gradient(#0003 1px,transparent 1.2px);background-size:4px 4px}
.kzi-koma::before{left:4px;top:4px;width:9px;height:18px;border:1.5px solid #111;box-shadow:12px 0 0 -1.5px #fff,12px 0 0 0 #111}
.kzi-koma::after{left:16px;top:4px;width:6px;height:8px;border:1.5px solid #111;background:#fff}
.kzi-terminal{background:#0b0f0b}
.kzi-terminal::before{content:">_";left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;font:700 10px/1 ui-monospace,Consolas,monospace;color:#4ade80;letter-spacing:-.5px}
.kzi-xmas{background:#b4232f}
.kzi-xmas::before{left:6px;top:7px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:13px solid #1f7a3a}
.kzi-xmas::after{left:12px;top:4px;width:3px;height:3px;background:#fde047;border-radius:50%;box-shadow:-3px 15px 0 #7a3b1d,0 0 0 1px #fde04766}
.kzi-minimal{background:linear-gradient(90deg,#0c0c0c 50%,#f5f5f4 50%)}
.kzi-minimal::before{inset:7px;border:1.3px solid #888;border-radius:2px}
.kzi-novel{background:radial-gradient(circle at 50% 30%,#3a2440,#140d19)}
.kzi-novel::before{content:"✦";left:0;right:0;top:3px;text-align:center;font:12px/1 Georgia,serif;color:#f3d98f;text-shadow:0 0 4px rgba(243,217,143,.7)}
.kzi-novel::after{left:5px;right:5px;bottom:5px;height:6px;border:1px solid #d6ba78;border-radius:1px;background:rgba(22,15,32,.9)}
.kzi-retroos{background:#008080;border-radius:5px}
.kzi-retroos::before{left:5px;top:6px;width:16px;height:13px;background:#c0c0c0;box-shadow:inset -1px -1px 0 #404040,inset 1px 1px 0 #fff}
.kzi-retroos::after{left:6px;top:7px;width:14px;height:3px;background:linear-gradient(90deg,#000080,#1084d0)}
.kzi-retro{background:#1a1c2c;border-radius:4px}
.kzi-retro::before{left:7px;top:8px;width:2px;height:2px;background:transparent;box-shadow:2px 0 0 #ff4d6d,4px 0 0 #ff4d6d,8px 0 0 #ff4d6d,10px 0 0 #ff4d6d,0 2px 0 #ff4d6d,2px 2px 0 #ff8fa3,4px 2px 0 #ff4d6d,6px 2px 0 #ff4d6d,8px 2px 0 #ff4d6d,10px 2px 0 #ff4d6d,12px 2px 0 #ff4d6d,0 4px 0 #ff4d6d,2px 4px 0 #ff4d6d,4px 4px 0 #ff4d6d,6px 4px 0 #ff4d6d,8px 4px 0 #ff4d6d,10px 4px 0 #ff4d6d,12px 4px 0 #ff4d6d,2px 6px 0 #ff4d6d,4px 6px 0 #ff4d6d,6px 6px 0 #ff4d6d,8px 6px 0 #ff4d6d,10px 6px 0 #ff4d6d,4px 8px 0 #ff4d6d,6px 8px 0 #ff4d6d,8px 8px 0 #ff4d6d,6px 10px 0 #ff4d6d}
.kzi.kzi-xmas{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' fill='%2314244a'/%3E%3Ccircle cx='5' cy='6' r='.8' fill='%23fff'/%3E%3Ccircle cx='21.5' cy='9' r='.7' fill='%23fff'/%3E%3Ccircle cx='19' cy='4' r='.6' fill='%23fff'/%3E%3Ccircle cx='4' cy='14' r='.6' fill='%23fff'/%3E%3Cpath d='M13 5 L18 11 H15.6 L19.6 16 H16.6 L20.6 20.6 H5.4 L9.4 16 H6.4 L10.4 11 H8 Z' fill='%232e9d57'/%3E%3Cpath d='M13 5 L18 11 H15.6 L19.6 16 H16.6 L20.6 20.6 H13 Z' fill='%2323824a'/%3E%3Crect x='11.8' y='20.4' width='2.4' height='2.6' fill='%237a4a24'/%3E%3Cpath d='M13 2.4l.95 1.9 2.05.3-1.5 1.45.36 2.05L13 7.15l-1.86.95.36-2.05L10 4.6l2.05-.3z' fill='%23fcd34d'/%3E%3Ccircle cx='11' cy='13' r='1' fill='%23ef4444'/%3E%3Ccircle cx='15.4' cy='17.6' r='1' fill='%23fbbf24'/%3E%3Ccircle cx='10' cy='18.3' r='.9' fill='%23e0f2fe'/%3E%3Ccircle cx='14.6' cy='12' r='.8' fill='%23e0f2fe'/%3E%3Cpath d='M0 23.2 Q13 20.6 26 23.2 V26 H0Z' fill='%23f8fafc'/%3E%3C/svg%3E") center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35)}
.kzi.kzi-xmas::before,.kzi.kzi-xmas::after{content:none;display:none}
.kzi.kzi-koma{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' fill='%23fff'/%3E%3Cdefs%3E%3Cpattern id='d' width='2.2' height='2.2' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1.1' cy='1.1' r='.5' fill='%23111'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M3 13.6 L23 10.4 V23 H3Z' fill='url(%23d)' opacity='.6'/%3E%3Cpath d='M3 3 H23 V23 H3Z M3 13.6 L23 10.4 M12.6 3 V12.1' fill='none' stroke='%23111' stroke-width='1.6' stroke-linejoin='round'/%3E%3Crect x='7' y='4.8' width='1.9' height='4.4' rx='.4' fill='%23111'/%3E%3Ccircle cx='7.95' cy='10.6' r='.95' fill='%23111'/%3E%3Cg stroke='%23111' stroke-width='.7' stroke-linecap='round'%3E%3Cpath d='M14.6 4.8 L18.4 7.4'/%3E%3Cpath d='M14.4 7.6 L18.2 8'/%3E%3Cpath d='M15.2 10.6 L18.4 8.6'/%3E%3Cpath d='M21.6 4.6 L19.4 6.8'/%3E%3Cpath d='M21.8 9.4 L19.6 8.6'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35)}
.kzi.kzi-koma::before,.kzi.kzi-koma::after{content:none;display:none}
.kzi.kzi-kokuban{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' fill='%238a5a2b'/%3E%3Crect x='3' y='3.6' width='20' height='15.6' rx='1' fill='%232f5a43'/%3E%3Crect x='3' y='3.6' width='20' height='15.6' rx='1' fill='none' stroke='%235e3a18' stroke-width='.6'/%3E%3Cpath d='M6 8.6 q1.4 -2.2 2.8 0 t2.8 0' stroke='%23f5f5f0' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cpath d='M14.2 15.6 L17.2 10.2 L20.2 15.6 Z' stroke='%23f5f5f0' stroke-width='.95' fill='none' stroke-linejoin='round'/%3E%3Cpath d='M5.8 13.2 h5.2 M5.8 15.6 h3.6' stroke='%23f5f5f0' stroke-width='.9' stroke-linecap='round' opacity='.75'/%3E%3Crect x='2' y='19.2' width='22' height='2.2' fill='%236b4220'/%3E%3Crect x='14.6' y='19.4' width='5.4' height='1.5' rx='.75' fill='%23fafaf5'/%3E%3Crect x='6' y='19.5' width='3' height='1.3' rx='.65' fill='%23f9c6d0'/%3E%3C/svg%3E") center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35)}
.kzi.kzi-kokuban::before,.kzi.kzi-kokuban::after{content:none;display:none}
.kzi.kzi-novel{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%' cy='28%' r='80%'%3E%3Cstop offset='0' stop-color='%234d2d56'/%3E%3Cstop offset='1' stop-color='%23130c18'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='26' height='26' fill='url(%23g)'/%3E%3Cpath d='M15.6 3.6a5.2 5.2 0 1 0 3.9 8.6a4.1 4.1 0 1 1-3.9-8.6z' fill='%23f3d98f'/%3E%3Cpath d='M8.2 6.1l.5 1 1.1.16-.8.78.19 1.1-.99-.52-.99.52.19-1.1-.8-.78 1.1-.16z' fill='%23f3d98f'/%3E%3Ccircle cx='11.4' cy='3.8' r='.5' fill='%23f3d98f' opacity='.8'/%3E%3Crect x='4.2' y='15.6' width='17.6' height='6.8' rx='1' fill='%231b1124' stroke='%23d6ba78' stroke-width='.9'/%3E%3Ccircle cx='10' cy='19' r='.85' fill='%23eee7da'/%3E%3Ccircle cx='13' cy='19' r='.85' fill='%23eee7da'/%3E%3Ccircle cx='16' cy='19' r='.85' fill='%23eee7da'/%3E%3C/svg%3E") center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.35)}
.kzi.kzi-novel::before,.kzi.kzi-novel::after{content:none;display:none}
.kzi.kzi.kzi-novel{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%' cy='40%' r='70%'%3E%3Cstop offset='0' stop-color='%234a2c52'/%3E%3Cstop offset='1' stop-color='%231a1020'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='26' height='26' fill='url(%23g)'/%3E%3Cpath d='M13 5.2 C13.6 10.4 15.6 12.4 20.8 13 C15.6 13.6 13.6 15.6 13 20.8 C12.4 15.6 10.4 13.6 5.2 13 C10.4 12.4 12.4 10.4 13 5.2Z' fill='%23f3d98f'/%3E%3C/svg%3E") center/cover no-repeat}
.kzi.kzi.kzi-spatial{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b1424'/%3E%3Cstop offset='1' stop-color='%231f2a3a'/%3E%3C/linearGradient%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2334d399' stop-opacity='0'/%3E%3Cstop offset='.3' stop-color='%2334d399'/%3E%3Cstop offset='.65' stop-color='%2322d3ee'/%3E%3Cstop offset='1' stop-color='%23a78bfa' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='26' height='26' fill='url(%23s)'/%3E%3Cpath d='M-1 17 C5 11 9 16 14 12 S22 9 27 12 L27 15 C22 12 18 16 13.5 15.5 S5 14 -1 20Z' fill='url(%23a)' opacity='.9'/%3E%3Cpath d='M18.6 4.4a3.8 3.8 0 1 0 2.8 6.3a3 3 0 1 1-2.8-6.3z' fill='%23eef2f7'/%3E%3Ccircle cx='6' cy='5.5' r='.7' fill='%23fff'/%3E%3Ccircle cx='11' cy='3.6' r='.5' fill='%23fff' opacity='.8'/%3E%3Ccircle cx='4' cy='10' r='.5' fill='%23fff' opacity='.7'/%3E%3Cpath d='M0 22.5 L6 19.5 L10 21.5 L15 18.5 L20 21 L26 19 V26 H0Z' fill='%230a0f18'/%3E%3C/svg%3E") center/cover no-repeat}
.kzi.kzi.kzi-spatial::before,.kzi.kzi.kzi-spatial::after{content:none;display:none}
.kzi.kzi.kzi.kzi-spatial{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cdefs%3E%3ClinearGradient id='sky' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23070d1a'/%3E%3Cstop offset='1' stop-color='%2317202e'/%3E%3C/linearGradient%3E%3ClinearGradient id='au' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2334d399' stop-opacity='0'/%3E%3Cstop offset='.35' stop-color='%2334d399' stop-opacity='.55'/%3E%3Cstop offset='.7' stop-color='%2322d3ee' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%23a78bfa' stop-opacity='0'/%3E%3C/linearGradient%3E%3CradialGradient id='glow' cx='50%' cy='50%' r='50%'%3E%3Cstop offset='.55' stop-color='%23e8eefc' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%23e8eefc' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='lit' cx='38%' cy='34%' r='70%'%3E%3Cstop offset='0' stop-color='%23fbfaf4'/%3E%3Cstop offset='.55' stop-color='%23e4e0d3'/%3E%3Cstop offset='1' stop-color='%23a9a291'/%3E%3C/radialGradient%3E%3CradialGradient id='shade' cx='30%' cy='30%' r='85%'%3E%3Cstop offset='.62' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%231a1d2a' stop-opacity='.55'/%3E%3C/radialGradient%3E%3CclipPath id='m'%3E%3Ccircle cx='13' cy='12' r='7.2'/%3E%3C/clipPath%3E%3C/defs%3E%3Crect width='26' height='26' fill='url(%23sky)'/%3E%3Cpath d='M-1 19 C5 14 9 18.5 14 15 S22 12.5 27 15 L27 18 C22 15.5 18 19 13.5 18.5 S5 17 -1 22Z' fill='url(%23au)'/%3E%3Ccircle cx='3.6' cy='4.2' r='.55' fill='%23fff'/%3E%3Ccircle cx='22.6' cy='4.8' r='.45' fill='%23fff' opacity='.85'/%3E%3Ccircle cx='23.4' cy='20.5' r='.4' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='2.6' cy='12.5' r='.35' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='13' cy='12' r='10' fill='url(%23glow)'/%3E%3Ccircle cx='13' cy='12' r='7.2' fill='url(%23lit)'/%3E%3Cg clip-path='url(%23m)'%3E%3Cpath d='M8.2 9.6 C9.4 7.8 12 7.6 12.6 9.1 C13.1 10.4 11.6 11.6 10.2 11.9 C8.9 12.2 7.6 11 8.2 9.6Z' fill='%239d9682' opacity='.55'/%3E%3Cpath d='M13.6 12.8 C15 11.6 17.4 12.1 17.6 13.6 C17.8 15.2 15.9 16.3 14.5 15.8 C13.3 15.4 12.7 13.7 13.6 12.8Z' fill='%239d9682' opacity='.5'/%3E%3Cpath d='M15.2 7.4 C16.4 6.9 17.9 7.6 17.7 8.7 C17.5 9.7 16.1 10 15.3 9.4 C14.7 8.9 14.6 7.7 15.2 7.4Z' fill='%239d9682' opacity='.45'/%3E%3Cpath d='M9.6 14.6 C10.5 14.1 11.7 14.6 11.6 15.5 C11.5 16.3 10.4 16.5 9.8 16 C9.3 15.6 9.1 14.9 9.6 14.6Z' fill='%239d9682' opacity='.4'/%3E%3Ccircle cx='11.4' cy='16.9' r='.95' fill='%238f8875' opacity='.6'/%3E%3Ccircle cx='11.2' cy='16.7' r='.95' fill='none' stroke='%23fff' stroke-width='.35' opacity='.55'/%3E%3Ccircle cx='16.6' cy='10.6' r='.7' fill='%238f8875' opacity='.6'/%3E%3Ccircle cx='16.45' cy='10.45' r='.7' fill='none' stroke='%23fff' stroke-width='.3' opacity='.55'/%3E%3Ccircle cx='10.6' cy='7.3' r='.55' fill='%238f8875' opacity='.55'/%3E%3Ccircle cx='14.2' cy='17.6' r='.5' fill='%238f8875' opacity='.5'/%3E%3Ccircle cx='18.4' cy='14.4' r='.45' fill='%238f8875' opacity='.5'/%3E%3Ccircle cx='12.4' cy='5.9' r='.35' fill='%238f8875' opacity='.5'/%3E%3Ccircle cx='13' cy='12' r='7.2' fill='url(%23shade)'/%3E%3C/g%3E%3Cpath d='M0 23 L5 20.6 L9.5 22.2 L14.5 19.8 L20 22 L26 20.2 V26 H0Z' fill='%23090d16'/%3E%3C/svg%3E") center/cover no-repeat}
.kzi.kzi.kzi-sekkei{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cdefs%3E%3Cpattern id='f' width='2' height='2' patternUnits='userSpaceOnUse'%3E%3Cpath d='M2 0H0V2' fill='none' stroke='%239cc3ff' stroke-width='.15' opacity='.5'/%3E%3C/pattern%3E%3Cpattern id='g' width='6' height='6' patternUnits='userSpaceOnUse'%3E%3Cpath d='M6 0H0V6' fill='none' stroke='%23b7d4ff' stroke-width='.3' opacity='.55'/%3E%3C/pattern%3E%3CradialGradient id='p' cx='40%' cy='35%' r='80%'%3E%3Cstop offset='0' stop-color='%232a64b8'/%3E%3Cstop offset='1' stop-color='%23163f7d'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='26' height='26' fill='url(%23p)'/%3E%3Crect width='26' height='26' fill='url(%23f)'/%3E%3Crect width='26' height='26' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23f4f8ff' stroke-width='.75' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6.5 18.5V11.2L12.5 6.4L18.5 11.2V18.5Z'/%3E%3Crect x='8.4' y='12.4' width='2.6' height='2.6'/%3E%3Crect x='14' y='12.4' width='2.6' height='2.6'/%3E%3Cpath d='M11.6 18.5V15.4H13.4V18.5'/%3E%3Cpath d='M9.7 12.4V15M8.4 13.7H11M15.3 12.4V15M14 13.7H16.6' stroke-width='.35'/%3E%3C/g%3E%3Cg stroke='%23f4f8ff' stroke-width='.45' fill='none' stroke-linecap='round'%3E%3Cpath d='M6.5 21.2H18.5'/%3E%3Cpath d='M6.5 20.4V22M18.5 20.4V22'/%3E%3Cpath d='M7.6 20.6L6.6 21.2L7.6 21.8M17.4 20.6L18.4 21.2L17.4 21.8'/%3E%3Cpath d='M20.6 11.2V18.5M20 11.2H21.2M20 18.5H21.2'/%3E%3Cpath d='M12.5 6.4 m-4.4 0 a4.4 4.4 0 0 1 8.8 0' stroke-dasharray='.9 .7' opacity='.8'/%3E%3C/g%3E%3Ccircle cx='12.5' cy='6.4' r='.55' fill='%23f4f8ff'/%3E%3Cpath d='M3.2 3.2H8.2M3.2 3.2V8.2' stroke='%23f4f8ff' stroke-width='.4' opacity='.7'/%3E%3C/svg%3E") center/cover no-repeat}
.kzi.kzi.kzi-sekkei::before,.kzi.kzi.kzi-sekkei::after{content:none;display:none}
.kzi.kzi.kzi-eki{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' fill='%230f1115'/%3E%3Crect x='2.5' y='3' width='21' height='5' rx='.6' fill='%231a1d24'/%3E%3Ccircle cx='5.4' cy='5.5' r='1.7' fill='%23f5f5f0'/%3E%3Cpath d='M5.4 4.5V5.5L6.1 6' stroke='%23111' stroke-width='.35' fill='none' stroke-linecap='round'/%3E%3Crect x='8' y='4.7' width='9' height='1.6' rx='.4' fill='%23fbbf24'/%3E%3Crect x='18' y='4.7' width='3.6' height='1.6' rx='.4' fill='%23fbbf24' opacity='.6'/%3E%3Crect x='2.8' y='10' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='2.8' y='10' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M2.8 11.8H5.8' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='6.2' y='10' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='6.2' y='10' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M6.2 11.8H9.2' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='10.2' y='10' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='10.2' y='10' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M10.2 11.8H13.2' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='13.6' y='10' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='13.6' y='10' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M13.6 11.8H16.6' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='17.6' y='10' width='5.6' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='17.6' y='10' width='5.6' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M17.6 11.8H23.200000000000003' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='2.8' y='15' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='2.8' y='15' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M2.8 16.8H5.8' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='6.2' y='15' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='6.2' y='15' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M6.2 16.8H9.2' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='10.2' y='15' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='10.2' y='15' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M10.2 16.8H13.2' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='13.6' y='15' width='3' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='13.6' y='15' width='3' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M13.6 16.8H16.6' stroke='%230b0c0f' stroke-width='.35'/%3E%3Crect x='17.6' y='15' width='5.6' height='3.6' rx='.35' fill='%2322252c'/%3E%3Crect x='17.6' y='15' width='5.6' height='1.8' rx='.35' fill='%232c3038'/%3E%3Cpath d='M17.6 16.8H23.200000000000003' stroke='%230b0c0f' stroke-width='.35'/%3E%3Cg fill='%23fbbf24'%3E%3Crect x='3.7' y='10.7' width='1.2' height='2.2' rx='.2'/%3E%3Crect x='7.1' y='10.7' width='1.2' height='2.2' rx='.2'/%3E%3Ccircle cx='9.75' cy='11.3' r='.25'/%3E%3Ccircle cx='9.75' cy='12.4' r='.25'/%3E%3Crect x='11.1' y='10.7' width='1.2' height='2.2' rx='.2'/%3E%3Crect x='14.5' y='10.7' width='1.2' height='2.2' rx='.2'/%3E%3Crect x='18.3' y='11.1' width='4.2' height='1.3' rx='.3'/%3E%3Crect x='3.7' y='15.7' width='1.2' height='2.2' rx='.2' opacity='.85'/%3E%3Crect x='7.1' y='15.7' width='1.2' height='2.2' rx='.2' opacity='.85'/%3E%3Ccircle cx='9.75' cy='16.3' r='.25' opacity='.85'/%3E%3Ccircle cx='9.75' cy='17.4' r='.25' opacity='.85'/%3E%3Crect x='11.1' y='15.7' width='1.2' height='2.2' rx='.2' opacity='.85'/%3E%3Crect x='14.5' y='15.7' width='1.2' height='2.2' rx='.2' opacity='.85'/%3E%3Crect x='18.3' y='16.1' width='3' height='1.3' rx='.3' opacity='.85'/%3E%3C/g%3E%3Ccircle cx='22.3' cy='16.75' r='.5' fill='%234ade80'/%3E%3Crect x='2.5' y='21' width='21' height='1.4' rx='.4' fill='%231a1d24'/%3E%3Crect x='3.4' y='21.35' width='8' height='.7' rx='.35' fill='%23fbbf24' opacity='.45'/%3E%3C/svg%3E") center/cover no-repeat}
.kzi.kzi.kzi-eki::before,.kzi.kzi.kzi-eki::after{content:none;display:none}
/* tiles: icons are drawn at 26px and scaled up, so every icon keeps its proportions */
.kzmtile{width:42px;height:42px;display:grid;place-items:center}
.kzmode .kzmtile .kzi{width:26px;height:26px;border-radius:7px;transform:scale(1.6)}
.kzmode .kzmtile.on .kzi{box-shadow:0 0 0 1.2px rgba(20,14,26,.95),0 0 0 2.4px var(--c1),0 0 10px var(--glow)}
/* previews: Basic is the sakura window with the sleeping cat; Advanced is the Academy's morning desk */
.kzp-basic{background-image:url(img/mode-basic.webp);background-position:center 55%}
.kzp-advanced{background-image:url(vn/desk/desk-morning.webp);background-position:22% 60%}
.kzp-minimal{background-image:url(img/mode-minimal.webp);background-position:center 60%;filter:none}
/* the page behind the cards shows the current mode's scene; picking another mode crossfades to its scene */
.kzmode::before,.kzmode::after{content:"";position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;background-repeat:no-repeat;transition:opacity .7s ease;pointer-events:none}
.kzmode::before{background-image:var(--bg0,none)}
.kzmode::after{background-image:var(--bg1,none);opacity:0}
.kzmode.kzb1::after{opacity:1}
.kzmode .kzmhd b,.kzmode .kzmhd small,.kzmode .kzmhd span{text-shadow:0 1px 8px rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){.kzmode::before,.kzmode::after{transition:none}}
/* "Recommended" ribbon on the Advanced card */
.kzmrec{position:absolute;top:-11px;left:50%;transform:translateX(-50%);z-index:2;white-space:nowrap;padding:4px 13px;border-radius:999px;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#2a1640;background:linear-gradient(135deg,#f3d98f,#e8b86a);box-shadow:0 0 0 1px rgba(255,240,200,.6),0 4px 14px -2px rgba(243,217,143,.55);pointer-events:none}
@media (max-width:820px){.kzmgrid{padding-top:16px}}

/* theme icons: the painted pictures (img/themes/*.webp); the Visual Novel keeps its gold star */
.kzi.kzi-glass,.kzi.kzi-spatial,.kzi.kzi-skeuo,.kzi.kzi-clay,.kzi.kzi-hogan,.kzi.kzi-kokuban,.kzi.kzi-sekkei,.kzi.kzi-eki,.kzi.kzi-toshokan,.kzi.kzi-koma,.kzi.kzi-terminal,.kzi.kzi-xmas,.kzi.kzi-retroos,.kzi.kzi-retro,.kzi.kzi-minimal{background-color:transparent!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;border-radius:21%!important;box-shadow:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.kzi.kzi-glass::before,.kzi.kzi-spatial::before,.kzi.kzi-skeuo::before,.kzi.kzi-clay::before,.kzi.kzi-hogan::before,.kzi.kzi-kokuban::before,.kzi.kzi-sekkei::before,.kzi.kzi-eki::before,.kzi.kzi-toshokan::before,.kzi.kzi-koma::before,.kzi.kzi-terminal::before,.kzi.kzi-xmas::before,.kzi.kzi-retroos::before,.kzi.kzi-retro::before,.kzi.kzi-minimal::before,.kzi.kzi-glass::after,.kzi.kzi-spatial::after,.kzi.kzi-skeuo::after,.kzi.kzi-clay::after,.kzi.kzi-hogan::after,.kzi.kzi-kokuban::after,.kzi.kzi-sekkei::after,.kzi.kzi-eki::after,.kzi.kzi-toshokan::after,.kzi.kzi-koma::after,.kzi.kzi-terminal::after,.kzi.kzi-xmas::after,.kzi.kzi-retroos::after,.kzi.kzi-retro::after,.kzi.kzi-minimal::after{content:none!important;display:none!important}
.kzi.kzi-glass{background-image:url(img/themes/glass.webp)!important}
.kzi.kzi-spatial{background-image:url(img/themes/spatial.webp)!important}
.kzi.kzi-skeuo{background-image:url(img/themes/skeuo.webp)!important}
.kzi.kzi-clay{background-image:url(img/themes/clay.webp)!important}
.kzi.kzi-hogan{background-image:url(img/themes/hogan.webp)!important}
.kzi.kzi-kokuban{background-image:url(img/themes/kokuban.webp)!important}
.kzi.kzi-sekkei{background-image:url(img/themes/sekkei.webp)!important}
.kzi.kzi-eki{background-image:url(img/themes/eki.webp)!important}
.kzi.kzi-toshokan{background-image:url(img/themes/toshokan.webp)!important}
.kzi.kzi-koma{background-image:url(img/themes/koma.webp)!important}
.kzi.kzi-terminal{background-image:url(img/themes/terminal.webp)!important}
.kzi.kzi-xmas{background-image:url(img/themes/xmas.webp)!important}
.kzi.kzi-retroos{background-image:url(img/themes/retroos.webp)!important}
.kzi.kzi-retro{background-image:url(img/themes/retro.webp)!important}
.kzi.kzi-minimal{background-image:url(img/themes/minimal.webp)!important}

/* The mode chooser keeps one look (as in the Visual Novel theme) whatever theme is active:
   other themes' button shapes, fonts and casing must not reach it. */
html:root:root:root:root:root body .kzmode,html:root:root:root:root:root body .kzmode *{font-family:"EB Garamond",Georgia,"Yu Mincho","Noto Serif JP",serif!important;text-transform:none!important;letter-spacing:normal}
html:root:root:root:root:root body .kzmode .kzmhd small{text-transform:uppercase!important;letter-spacing:.2em}
html:root:root:root:root:root body .kzmode .kzmhd b{font-size:1.45rem!important;font-weight:600!important}
html:root:root:root:root:root body .kzmode .kzmcol{border-radius:24px!important}
html:root:root:root:root:root body .kzmode .kzmprev{border-radius:16px!important}
html:root:root:root:root:root body .kzmode .kzmpill{border-radius:999px!important;border:0!important;font-weight:600!important;font-size:1rem!important}
html:root:root:root:root:root body .kzmode .kzmchk{border-radius:50%!important}
html:root:root:root:root:root body .kzmode .kzmx{border-radius:50%!important}
html:root:root:root:root:root body .kzmode .kzmpal,html:root:root:root:root:root body .kzmode .kzmpal span{border-radius:50%!important}
html:root:root:root:root:root body .kzmode .kzmtray{border-radius:18px!important}
html:root:root:root:root:root body .kzmode .kzmtile{border-radius:12px!important;background:transparent!important;border:0!important;box-shadow:none!important}
html:root:root:root:root:root body .kzmode .kzmdots button{border-radius:50%!important;border:0!important}
html:root:root:root:root:root body .kzmode .kzmrec{border-radius:999px!important;font-family:"EB Garamond",Georgia,serif!important;text-transform:uppercase!important;letter-spacing:.06em}
html:root:root:root:root:root body .kzmode button{min-height:0;text-shadow:none}

/* ---------- welcome intro (intro.js): the logo rises, the camera zooms into the asterisk's centre,
   and the mode chooser opens out of that point as a growing circle. Same timeline on phone and PC. ---------- */
.kzin{--s:clamp(112px,min(34vw,24vh),190px);position:fixed;inset:0;z-index:245;overflow:hidden;background:radial-gradient(90% 70% at 50% 46%,#2a1636 0%,#14102b 68%);touch-action:none;-webkit-user-select:none;user-select:none;cursor:default;transition:opacity .3s ease}
.kzin.kzin-out{opacity:0}
.kzin-glow{position:absolute;left:50%;top:50%;width:calc(var(--s)*3.2);height:calc(var(--s)*3.2);margin:calc(var(--s)*-1.6) 0 0 calc(var(--s)*-1.6);border-radius:50%;background:radial-gradient(circle,rgba(242,204,242,.26),rgba(242,204,242,.08) 38%,transparent 66%);opacity:0;transform:scale(.6);transition:opacity 1.1s ease .25s,transform 1.4s cubic-bezier(.16,1,.3,1) .2s}
.kzin-rise .kzin-glow{opacity:1;transform:none}
.kzin-zoom .kzin-glow{opacity:0;transition:opacity .4s ease}
.kzin-logo{position:absolute;left:50%;top:50%;width:var(--s);height:var(--s);margin:calc(var(--s)/-2) 0 0 calc(var(--s)/-2);opacity:0;transform:translateY(42vh) scale(.7);transition:transform .95s cubic-bezier(.16,1,.3,1),opacity .55s ease;will-change:transform}
.kzin-rise .kzin-logo{opacity:1;transform:none}
.kzin-star{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 0 18px rgba(242,204,242,.35));transform:rotate(-40deg) scale(.82);transition:transform 1.15s cubic-bezier(.16,1,.3,1) .12s;pointer-events:none}
.kzin-rise .kzin-star{transform:none}
/* the zoom: ease-in, so it starts gently and rushes into the centre at the end */
.kzin-zoom .kzin-star{filter:none;transform:rotate(1turn);transition:transform 1.05s cubic-bezier(.45,0,.65,1)}
.kzin-zoom .kzin-logo{transform:scale(var(--kzz,60));transition:transform 1.05s cubic-bezier(.7,0,.84,0)}
.kzin-word{position:absolute;left:0;right:0;top:calc(50% + var(--s)/2 + 26px);text-align:center;font-family:"EB Garamond",Georgia,serif;font-size:clamp(1.25rem,4.6vw,1.75rem);letter-spacing:.34em;text-indent:.34em;text-transform:uppercase;color:#f6e6f6;text-shadow:0 0 18px rgba(242,204,242,.45);opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .8s cubic-bezier(.16,1,.3,1)}
.kzin-named .kzin-word{opacity:1;transform:none}
.kzin-zoom .kzin-word{opacity:0;transform:translateY(16px) scale(.96);transition:opacity .25s ease,transform .3s ease}
/* the asterisk's pink, so the screen is fully covered however the zoom lands */
.kzin-flood{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,#f6d8f6,#f2ccf2 60%,#e7b9ea);opacity:0;transition:opacity .3s ease}
.kzin-flooded .kzin-flood{opacity:1}
/* the chooser coming out of the logo: above the intro, clipped to a circle that grows from the centre */
.kzmode.kzfromin{z-index:250;transition:opacity .3s ease,clip-path .75s cubic-bezier(.65,0,.35,1)}
.kzmode.kzfromin.kzclip{opacity:1;clip-path:circle(var(--kzr,150%) at 50% 50%)}
.kzmode.kzfromin:not(.in) .kzmbox{transform:scale(1.16)}
.kzmode.kzfromin .kzmbox{transition:transform 1.15s cubic-bezier(.16,1,.3,1)}
@media (prefers-reduced-motion:reduce){.kzin,.kzin *{transition:none!important}}

/* Start studying: at the foot of each card in the Appearance menu, so you don't have to hunt for the × */
.kzmgo{align-self:center;margin-top:auto;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 20px;border-radius:999px;border:1px solid var(--c1);background:transparent;color:var(--c2);font-size:.88rem;font-weight:700;letter-spacing:.01em;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s,transform .15s}
.kzmcap{margin-bottom:12px}
.kzmgo:hover{background:color-mix(in srgb,var(--c1) 16%,transparent);transform:translateY(-1px)}
.kzmgo:focus-visible{outline:2px solid var(--c2);outline-offset:3px}
.kzmcol.on .kzmgo{background:linear-gradient(180deg,var(--c2),var(--c1));color:#1b1222;border-color:transparent;box-shadow:0 0 22px -4px var(--glow)}
.kzmgo span{transition:transform .2s}
.kzmgo:hover span{transform:translateX(3px)}
@media (prefers-reduced-motion:reduce){.kzmgo,.kzmgo span{transition:none}}

/* ---------- first-run setup (setup.js): exam, date, where to start, daily goal ----------
   One dialog. Everything sits straight on its surface and shares one left edge; only things you can press have a border,
   in the Exam Library's style (thin line, square-ish corners, accent when chosen). The footer is a fixed row under a scrolling body. */
html:root .ovl.kzsetup{z-index:231}
.kzsdlg{--kzs-serif:"EB Garamond",Georgia,"Times New Roman",serif;width:100%;max-width:500px;padding:24px;text-align:left;display:flex;flex-direction:column;gap:0;max-height:calc(100dvh - 40px);overflow:hidden}
.kzsdlg :focus-visible{outline:2px solid var(--phy);outline-offset:2px}
.kzsbody{flex:1 1 auto;min-height:min(380px,calc(100dvh - 190px));overflow-y:auto;overscroll-behavior:contain;margin:0 -24px;padding:2px 24px 6px;scrollbar-width:thin}
.kzsdots{display:flex;gap:6px;margin:0 0 14px}
.kzsdots i{flex:0 0 28px;height:4px;border-radius:2px;background:var(--edge)}
.kzsdots i.past{background:color-mix(in srgb,var(--phy) 50%,var(--edge))}
.kzsdots i.on{background:var(--phy)}
.kzskick{display:block;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sub);margin:0 0 6px}
.kzsdlg .kzsh:focus-visible{outline:0}
.kzsh{margin:0 0 6px;font-family:var(--kzs-serif);font-weight:600;font-size:1.65rem;line-height:1.15;letter-spacing:.005em;outline:0;overflow-wrap:anywhere}
.kzssub{margin:0 0 18px;color:var(--sub);font-size:.92rem;line-height:1.45}
.kzsh+.kzsexam,.kzsh+.kzsfield,.kzsh+.kzsopts,.kzsh+.kzsopt{margin-top:16px}

/* options you can choose: subjects, goals, the Exam Library opener */
.kzsopts{display:flex;flex-direction:column;gap:8px}
.kzsgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.kzsopt{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--edge);border-radius:6px;background:var(--glass2);color:var(--ink);font:inherit;font-family:var(--kzs-serif);font-size:1.08rem;text-align:left;cursor:pointer;box-sizing:border-box}
.kzsopt:hover{border-color:color-mix(in srgb,var(--phy) 55%,var(--edge))}
.kzsopt.on{border-color:var(--phy);box-shadow:inset 0 0 0 1px var(--phy)}
.kzslbl{flex:1;min-width:0;overflow-wrap:anywhere}
.kzsmeta{flex:none;font:inherit;font-family:inherit;font-size:.82rem;color:var(--sub);font-style:italic}
.kzsck{flex:none;display:none;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--phy);color:var(--inv,#fff)}
.kzsopt.on .kzsck,.kzsexam .kzsck{display:grid}
.kzspicker{color:var(--sub)}
.kzspicker .kzsico{flex:none;display:grid;place-items:center;opacity:.85}
.kzspicker svg:last-child{flex:none;opacity:.7}

/* the chosen exam: no wrapper, just the name, a Change action and what its syllabus holds */
.kzsexam{display:flex;align-items:center;gap:12px;margin:0 0 4px}
.kzsname{flex:1;min-width:0;font-family:var(--kzs-serif);font-size:1.45rem;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.kzsprev{margin:4px 0 0;color:var(--sub);font-size:.92rem;line-height:1.45;min-height:1.45em}
.kzsprev b{color:var(--ink);font-weight:600}
.kzsprev span{white-space:nowrap}

/* text actions (Change, Add exam time, Back, Skip) */
.kzslink{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--phy);font:inherit;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.kzslink.quiet{color:var(--sub);font-weight:500}
.kzslink:hover{text-decoration-thickness:2px}
.kzsq{min-height:44px;padding:0 14px;border:0;border-radius:999px;background:none;color:var(--sub);font:inherit;font-weight:600;cursor:pointer}
.kzsq:hover{color:var(--ink);background:var(--glass2)}

/* fields */
.kzsfield{display:flex;flex-direction:column;gap:6px;margin:0 0 12px;min-width:0}
.kzsfield.kzsgap{margin-top:14px}
.kzslabel{font-size:.78rem;font-weight:700;color:var(--sub)}
.kzsdlg .rvin{border-radius:6px}
.kzsinp{min-height:48px;font-size:1rem;padding:0 14px}
.kzsdate{min-height:56px;font-size:1.25rem;padding:0 16px;width:100%}
.kzsrow{display:flex;align-items:center;gap:12px}
.kzsrow .rvin{flex:1;min-width:0}
.kzssuffix{color:var(--sub);font-size:.92rem}
.kzsmore{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:2px}
.kzsdlg .perr{margin:6px 0 4px}
.kzsdlg .perr[hidden]{display:none}

/* the recap: plain text, only what was answered */
.kzsrecap{margin-top:20px}
.kzsrecap dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;margin:0}
.kzsrecap dt{color:var(--sub);font-size:.88rem}
.kzsrecap dd{margin:0;min-width:0;overflow-wrap:anywhere}
.kzsrecap dd span{color:var(--sub)}
.kzsrecap .kzssub{margin:0}

/* footer: Back on the left, Skip quiet, the main action on the right; always in the same place */
.kzsfoot{flex:none;display:flex;align-items:center;gap:8px;margin-top:18px}
.kzsfoot .kzsback{margin-left:-14px}
.kzsfoot .kzsskip{margin-left:auto}
.kzsfoot .tbtn{min-width:128px;padding:12px 24px}
.kzsdlg .tbtn:disabled{opacity:.45;cursor:default;filter:saturate(.6)}
.kzsoffer{bottom:calc(env(safe-area-inset-bottom,0px) + 96px)}

@media (max-width:520px){
  .kzsdlg{padding:16px}
  .kzsbody{margin:0 -16px;padding:2px 16px 6px}
  .kzsgrid{grid-template-columns:1fr}
  .kzsh{font-size:1.45rem}
  .kzsfoot .tbtn{min-width:0;padding:12px 20px}
}
html:root:root[data-skin="novel"] body .kzsopt.on{border-color:#d6ba78;box-shadow:inset 0 0 0 1px #d6ba78}
html:root:root[data-skin="novel"] body .kzsck{background:linear-gradient(180deg,#e9cf8e,#c6a85f);color:#1d1423}
html:root:root[data-skin="novel"] body .kzsdots i.on{background:#d6ba78}
html:root:root[data-skin="novel"] body .kzslink{color:#d6ba78}
