/* Atoms visual layer — open, bright, calm. Colour blocks carry meaning: each subject has one colour. */
body { background: var(--paper); font-size: 1.02rem; }
h1 { font-size: 1.9rem; letter-spacing: -.005em; }
h2 { font-size: 1.25rem; }
.kicker { font-family: var(--sans); font-style: normal; font-weight: 700; color: var(--teal); font-size: .9rem; }
.small { font-size: .9rem; }

/* ---------- shell ---------- */
.top { padding-top: env(safe-area-inset-top, 0px); height: auto; min-height: 58px; background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); }
.atomlogo { width: 34px; height: 34px; color: var(--teal); }
.bt { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; line-height: .95; }
.bt small { color: var(--slate); font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: 0; }
.topnav .navl { color: var(--slate); font-weight: 700; }
.topnav .navl.on, .topnav .navl:hover { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
#focusbtn { color: var(--ink); border-color: var(--line); background: var(--white); border-radius: 999px; }
.tabbar { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.tabbar .navl { font-weight: 700; color: var(--slate); }
.tabbar .navl.on { color: var(--ink); }
.ti { width: 26px; height: 6px; border-radius: 4px; }
.tabbar .navl.on .ti { background: var(--teal); }
.toast { background: var(--solid); border-left-color: var(--sun); border-radius: 16px; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-family: var(--sans); font-weight: 800; border-width: 2px; border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--solid); border-color: var(--ink); }
.btn-ghost { border-color: var(--line); background: var(--white); }
.btn-pause { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.linkbtn { color: var(--teal); font-weight: 700; }
.chip { border-radius: 999px; font-weight: 700; }

/* ---------- colour blocks ---------- */
.block { display: block; border-radius: var(--r2); padding: 1.1rem 1.2rem; margin: .9rem 0; color: var(--ink); text-decoration: none; position: relative; }
.b-sun, .c-sun { background: var(--sun); } .b-lav, .c-lav { background: var(--lav); } .b-sky, .c-sky { background: var(--sky); }
.b-mint, .c-mint { background: var(--mint); } .b-coral, .c-coral { background: var(--coral); } .b-peach, .c-peach { background: var(--peach); }
.c-teal { background: #8FD3C4; } .b-white { background: var(--white); border: 1.5px solid var(--line); }
.block h2 { margin: 0 0 .4rem; }
.b-lab { display: block; font-weight: 800; font-size: .88rem; opacity: .75; }
.b-big { display: block; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; margin: .2rem 0 .35rem; padding-right: 4.5rem; }
.b-sub { display: block; font-size: .92rem; opacity: .8; padding-right: 4.5rem; }
.b-go { position: absolute; right: 1rem; bottom: 1rem; background: var(--solid); color: #fff; border-radius: 999px; padding: .5rem .95rem; font-weight: 800; font-size: .9rem; }
.nextup:hover .b-go { background: var(--teal); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tile { border-radius: 20px; padding: .8rem .75rem; text-decoration: none; color: var(--ink); display: grid; gap: .1rem; }
.tile b { font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.tile span { font-size: .8rem; font-weight: 700; opacity: .75; }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1.5rem; }
.sect-h h2 { margin: 0; }

/* ---------- Eole ---------- */
.eole-card { display: flex; align-items: flex-end; gap: .4rem; margin: .4rem 0 .8rem; }
.eole-card .eole-img { width: 88px; height: auto; flex: none; }
.eole-card.big .eole-img { width: 112px; }
.eole-bubble { background: var(--white); border: 1.5px solid var(--line); border-radius: 22px 22px 22px 6px; padding: .75rem .95rem; margin-bottom: 1.4rem; max-width: 30rem; }
.eole-bubble p { margin: 0; }
.t-greet { font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.25; }
.eole-dock { position: fixed; right: 12px; bottom: 82px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; pointer-events: none; }
@media (min-width: 900px) { .eole-dock { bottom: 18px; right: 18px; } }
.eole-dock.hushed { display: none; }
.eole-btn { pointer-events: auto; width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); padding: 4px; cursor: pointer; box-shadow: 0 6px 20px rgba(27, 36, 64, .12); }
.eole-btn img { width: 100%; height: 100%; object-fit: contain; }
.eole-say { pointer-events: auto; background: var(--solid); color: #fff; border-radius: 18px 18px 6px 18px; padding: .65rem .85rem; max-width: min(78vw, 19rem); font-size: .95rem; font-weight: 600; box-shadow: 0 8px 24px rgba(27, 36, 64, .2); animation: pop .25s ease-out; }
.eole-say p { margin: 0; }
.eole-acts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.eole-acts .chip { background: var(--white); color: var(--ink); border: 0; text-decoration: none; padding: .35rem .7rem; font-size: .82rem; min-height: 34px; display: inline-flex; align-items: center; }
.eole-dock.bounce .eole-btn { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-14px) scale(1.06); } 70% { transform: translateY(0) scale(.97); } 100% { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.page { padding-bottom: 6rem; }

/* ---------- subjects ---------- */
.subrow { display: flex; gap: .7rem; overflow-x: auto; padding: .4rem .1rem .8rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.subcard { flex: 0 0 9.6rem; scroll-snap-align: start; display: grid; align-content: start; gap: .15rem; border-radius: 22px; padding: .9rem; text-decoration: none; color: var(--ink); min-height: 10rem; }
.subcard:hover { filter: saturate(1.15); }
.sub-ic { font-family: var(--display); font-size: 1.4rem; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: rgba(255, 255, 255, .55); display: grid; place-items: center; margin-bottom: .35rem; }
.sub-ic.big { width: 3.2rem; height: 3.2rem; font-size: 2rem; border-radius: 16px; }
.sub-n { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; }
.sub-l { font-weight: 800; font-size: .82rem; opacity: .7; margin: 0; }
.sub-t { font-size: .9rem; margin: .3rem 0; }
.sub-s { font-size: .78rem; font-weight: 700; opacity: .75; }
.sub-bar { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .6); overflow: hidden; margin: .5rem 0 .25rem; }
.sub-bar span { display: block; height: 100%; background: var(--solid); border-radius: 6px; transition: width .8s ease; }
.subgrid { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .subgrid { grid-template-columns: repeat(3, 1fr); } }
.subcard.tall { min-height: 13rem; }
.pill { justify-self: start; background: rgba(255, 255, 255, .65); border-radius: 999px; padding: .2rem .6rem; font-size: .75rem; font-weight: 800; margin-top: .4rem; }
.subhero { border-radius: 28px; padding: 1.2rem 1.2rem 1rem; margin: .4rem 0 1rem; }
.subhero h1 { margin: .1rem 0 .3rem; }
.subhero .sub-bar { max-width: 22rem; }
.chcard { border-radius: 22px; border: 1.5px solid var(--line); }
.chcard .sub-bar { background: var(--line2); }
.chcode { color: var(--teal); font-family: var(--display); }
.chtitle { font-family: var(--display); color: var(--ink); }
.tool { border-radius: 18px; border: 1.5px solid var(--line); color: var(--ink); }
.tool:hover { border-color: var(--teal); }

/* ---------- week & pause card & leaderboard ---------- */
.wbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; align-items: end; height: 7rem; margin: .4rem 0; }
.wb { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; justify-items: center; gap: .2rem; }
.wb-b { width: 100%; max-width: 2rem; height: max(6px, var(--h)); border-radius: 10px; background: var(--lav); transform-origin: bottom; animation: grow .7s ease-out both; }
.wb-b.today { background: var(--teal); }
.wb:nth-child(2) .wb-b { animation-delay: .05s } .wb:nth-child(3) .wb-b { animation-delay: .1s } .wb:nth-child(4) .wb-b { animation-delay: .15s } .wb:nth-child(5) .wb-b { animation-delay: .2s } .wb:nth-child(6) .wb-b { animation-delay: .25s } .wb:nth-child(7) .wb-b { animation-delay: .3s }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.wb-l { font-size: .75rem; font-weight: 800; color: var(--slate); }
.pausecard { overflow: hidden; padding-right: 7.5rem; }
.pc-eole { position: absolute; right: .3rem; bottom: 0; width: 7rem; }
.on-mint { background: rgba(255, 255, 255, .7); border-color: transparent; }
.lb-list { list-style: none; padding: 0; margin: .5rem 0; }
.lb-list li { display: grid; grid-template-columns: 3rem 1fr auto; gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; }
.lb-list li.me { background: var(--sun); font-weight: 800; }
.lb-p { font-family: var(--display); font-size: 1.15rem; }

/* ---------- lessons ---------- */
.lhead h1 { font-size: 1.7rem; }
.lnum { color: var(--teal); font-family: var(--display); }
.rail { background: var(--paper); }
.rail-st.on .rail-dot { background: var(--teal); border-color: var(--teal); }
.rail-st.cur .rail-dot { box-shadow: 0 0 0 5px var(--cobalt-l); }
.rail-fill { background: var(--teal); }
.blk { border-radius: 24px; border: 1.5px solid var(--line); }
.blk.enter { animation: rise .45s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.prose, .qtext, .step-do { font-size: 1.06rem; line-height: 1.65; }
.stage { display: inline-block; border-radius: 999px; padding: .12rem .6rem; font-size: .75rem; font-weight: 800; }
.stage-U { background: var(--sky); color: var(--ink); } .stage-R { background: var(--lav); color: var(--ink); } .stage-E { background: var(--mint); color: var(--ink); } .stage-C { background: var(--sun); color: var(--ink); }
.callout-h { font-weight: 800; font-size: .95rem; }
.method { border: 0; background: #EAF5FF; border-left: 0; }
.checkc { border: 0; background: #FFF6D9; }
.trap { border: 0; background: #FFE9E2; }
.trap .callout-h { color: #A33A26; }
.worked { border-left: 1.5px solid var(--line); }
.step { background: var(--paper); border-radius: 14px; padding: .55rem .7rem; list-style-position: inside; animation: rise .35s ease-out; }
.opt { border-radius: 16px; font-family: var(--sans); font-weight: 600; }
.opt.right { animation: yes .4s ease-out; }
.opt.wrong { animation: shake .35s ease-in-out; }
@keyframes yes { 50% { transform: scale(1.03); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fb-good, .fb-bad, .fb-warn, .fb-neutral { border-radius: 14px; font-weight: 600; animation: pop .25s ease-out; }
.abox-in { border-radius: 14px; }
.key { border-radius: 12px; }
.hint { background: #F1EFFF; border-radius: 14px; }
.solution { background: var(--paper); border-radius: 14px; font-family: var(--sans); }
.warmup { background: var(--white); border: 2px dashed var(--lav); }
.warm-h { display: flex; gap: .7rem; align-items: center; }
.warm-eole { width: 64px; flex: none; }
.warm-yes { background: var(--mint); border-radius: 16px; padding: .7rem .9rem; margin-top: .6rem; animation: pop .3s ease-out; }
details.skipped { background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: .6rem .9rem; margin-bottom: .9rem; }
details.skipped > summary { font-weight: 800; cursor: pointer; min-height: 36px; display: flex; align-items: center; }
.endcard { border: 0; background: var(--sun); border-radius: 28px; text-align: center; }
.end-eole { width: 9rem; display: block; margin: -.4rem auto .2rem; animation: hop .8s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
.endcard .skilllist { text-align: left; background: rgba(255, 255, 255, .6); border-radius: 16px; padding: .7rem; }
.endact { justify-content: center; }
.lv { border-radius: 999px; }
.lv-mastered { background: var(--sun); color: var(--ink); }
.transcript p.now { background: var(--sun); border-radius: 8px; padding: .1rem .3rem; }

/* diagrams draw themselves in */
.drawin .wsvg .c1, .drawin .wsvg .c2, .drawin .wsvg .c3, .drawin .wsvg .edge, .drawin .wsvg .circ, .drawin .figsvg path, .drawin .figsvg line, .drawin .figsvg polyline { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.4s ease-out forwards; }
.drawin .wsvg .dot, .drawin .wsvg .lab { animation: fadein .5s ease-out .8s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* celebration burst */
.burst { position: absolute; z-index: 70; pointer-events: none; width: 0; height: 0; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 3px; animation: fly .85s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fly { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }

/* ---------- real pause ---------- */
.pause-ov { position: fixed; inset: 0; z-index: 90; background: linear-gradient(180deg, #DDF3EC 0%, #EEF6FF 100%); display: grid; place-items: center; padding: 1.2rem; overflow: auto; animation: fadein .4s ease-out; }
.pause-in { text-align: center; max-width: 26rem; }
.pause-eole { width: 9.5rem; margin: 0 auto -.4rem; display: block; }
.pause-sub { font-weight: 600; }
.breath { width: 9rem; height: 9rem; margin: 1rem auto .4rem; display: grid; place-items: center; }
.breath-c { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--mint)); box-shadow: 0 0 0 12px rgba(47, 127, 112, .1); animation: breathe 12s ease-in-out infinite; }
.breath.still .breath-c { animation: none; }
@keyframes breathe { 0% { transform: scale(1); } 33% { transform: scale(1.55); } 50% { transform: scale(1.55); } 100% { transform: scale(1); } }
.breath-t { font-family: var(--display); font-size: 1.35rem; font-weight: 500; min-height: 1.8rem; }
.pause-time { font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.pause-ideas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .8rem 0 1.2rem; }
.pause-ideas li { background: rgba(255, 255, 255, .8); border-radius: 999px; padding: .3rem .75rem; font-size: .88rem; font-weight: 700; }

/* ---------- onboarding ---------- */
.onb { position: fixed; inset: 0; z-index: 95; background: var(--paper); overflow: auto; display: grid; place-items: start center; padding: 1rem; }
.onb-in { max-width: 30rem; width: 100%; padding-bottom: 2rem; }
.onb-eole { width: 10rem; display: block; margin: .5rem auto 0; animation: hop 1s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
.onb h1 { text-align: center; font-size: 2.2rem; margin: .3rem 0; }
.onb .lede { text-align: center; font-family: var(--sans); font-size: 1.05rem; color: var(--slate); }
.onb-l { font-weight: 800; margin: 1rem 0; }
.onb-l input { font-size: 1.1rem; min-height: 50px; border-radius: 14px; }
.onb-subs { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.onb-subs legend { font-weight: 800; margin-bottom: .5rem; padding: 0; }
.subchip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .45rem .8rem; font-weight: 800; font-size: .92rem; margin: 0; cursor: pointer; border: 2px solid transparent; min-height: 44px; }
.subchip input { width: auto; margin: 0; accent-color: var(--ink); }
.subchip small { font-weight: 700; opacity: .7; }
.subchip:has(input:checked) { border-color: var(--ink); }

/* reduced motion: everything still works, nothing moves */
.rm .eole-dock.bounce .eole-btn, .rm .end-eole, .rm .onb-eole, .rm .wb-b, .rm .breath-c { animation: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ================= v0.2: platform ================= */
#main.pagein > .page { animation: pagein .35s cubic-bezier(.2, .8, .3, 1); }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.noshell .tabbar, body.noshell .topnav, body.noshell #focusbtn, body.noshell .eole-dock { display: none; }
body.noshell { padding-bottom: 0; }
.center { text-align: center; }
.stagger > * { animation: rise .45s cubic-bezier(.2, .9, .3, 1.1) both; }
.stagger > *:nth-child(2) { animation-delay: .04s } .stagger > *:nth-child(3) { animation-delay: .08s } .stagger > *:nth-child(4) { animation-delay: .12s } .stagger > *:nth-child(5) { animation-delay: .16s } .stagger > *:nth-child(6) { animation-delay: .2s } .stagger > *:nth-child(n+7) { animation-delay: .24s }
.segtabs { display: flex; gap: .3rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: .25rem; margin: .6rem 0 .2rem; overflow-x: auto; }
.segtabs a { flex: 1; text-align: center; white-space: nowrap; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--slate); font-weight: 800; font-size: .9rem; min-height: 40px; display: grid; place-items: center; }
.segtabs a.on { background: var(--solid); color: #fff; }

/* pills & locks */
.pill { display: inline-block; justify-self: start; border-radius: 999px; padding: .2rem .65rem; font-size: .74rem; font-weight: 800; background: rgba(255, 255, 255, .7); color: var(--ink); text-decoration: none; }
.pl-live { background: var(--solid); color: #fff; } .pl-build { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); } .pl-soon { background: rgba(255, 255, 255, .55); } .pl-free { background: var(--sun); }
.feat { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; } .feat i { font-style: normal; font-size: .7rem; font-weight: 800; background: rgba(255, 255, 255, .5); border-radius: 6px; padding: .1rem .4rem; }
.subcard.dim { filter: saturate(.55); opacity: .92; }
.lockmini { display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 3px; position: relative; top: 2px; margin-left: .2rem; }
.lockmini::before { content: ''; position: absolute; left: 1px; top: -8px; width: 6px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.chcard.locked, .tool.locked { opacity: .75; } .srow.locked .stitle { color: var(--slate); }
.lockbar { display: grid; gap: .1rem; } .lockbar span { font-size: .9rem; }
.lockhero { border-radius: 28px; padding: 1.4rem 1.2rem; text-align: center; margin: .4rem 0 .8rem; }
.lockhero h1 { font-size: 1.5rem; }
.lockicon { width: 54px; height: 54px; margin: 0 auto .4rem; position: relative; }
.lockicon span { position: absolute; left: 7px; right: 7px; bottom: 2px; height: 30px; background: var(--solid); border-radius: 8px; animation: lockwiggle 2.4s ease-in-out infinite; }
.lockicon::before { content: ''; position: absolute; left: 15px; right: 15px; top: 2px; height: 26px; border: 5px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; }
@keyframes lockwiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
.plans { display: grid; gap: .7rem; } @media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: grid; gap: .35rem; border-radius: 24px; padding: 1.1rem; text-decoration: none; color: var(--ink); }
.plan:hover { border-color: var(--teal); transform: translateY(-2px); transition: transform .2s; }
.plan-p { font-family: var(--display); font-size: 1.7rem; font-weight: 600; } .plan-p small { font-family: var(--sans); font-size: .85rem; font-weight: 700; color: var(--slate); margin-left: .3rem; }
.plan ul { margin: .2rem 0 .5rem; padding-left: 1.1rem; font-size: .92rem; }
.plan .btn { justify-self: start; }
.notesoffer, .acctnudge { display: grid; gap: .1rem; } .notesoffer span, .acctnudge span { font-size: .9rem; }
.accessrow { margin-top: .5rem; }

/* paper specs */
.paperspecs { display: grid; gap: .6rem; } @media (min-width: 640px) { .paperspecs { grid-template-columns: 1fr 1fr; } }
.pspec { border-radius: 20px; padding: .9rem 1rem; }
.ps-h { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; } .ps-h b { font-family: var(--display); font-size: 1.1rem; }
.ps-m { display: flex; gap: .4rem; flex-wrap: wrap; margin: .45rem 0; } .ps-m span { background: var(--paper); border-radius: 8px; padding: .15rem .5rem; font-size: .82rem; font-weight: 800; }
.pspec summary { font-weight: 800; cursor: pointer; min-height: 32px; display: flex; align-items: center; } .pspec ul { padding-left: 1.1rem; font-size: .92rem; margin: .3rem 0 0; }

/* auth */
.welcome { min-height: 100vh; display: grid; place-items: center; }
.wl-in { max-width: 26rem; width: 100%; text-align: center; display: grid; gap: .6rem; }
.wl-in h1 { font-size: 2.3rem; margin: .1rem 0; } .wl-in .lede { color: var(--slate); font-size: 1.05rem; margin: 0 0 .6rem; }
.authpage .phead { text-align: center; margin-left: auto; margin-right: auto; }
.auth-eole { width: 6.5rem; display: block; margin: 0 auto; animation: hop .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.authform { display: grid; gap: .55rem; max-width: 26rem; margin: 0 auto; }
.authform input, .authform select { width: 100%; min-height: 48px; border-radius: 14px; font-size: 1.02rem; }
.authform label { font-weight: 800; margin: 0; }
.authform .tk { font-weight: 600; font-size: .88rem; }
.authform .tk input { min-height: 0; width: auto; }
.err { color: var(--red); font-weight: 700; min-height: 1.2em; margin: 0; }
.subpick { display: flex; flex-wrap: wrap; gap: .4rem; }
.net { text-align: center; }
.acclist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.acclist li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.dotc { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* checkout */
.checkout { display: grid; gap: .6rem; max-width: 30rem; }
.opt-line { display: flex; gap: .7rem; align-items: flex-start; border-radius: 20px; padding: .9rem 1rem; cursor: pointer; margin: 0; }
.opt-line input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--teal); flex: none; }
.opt-line span { display: grid; gap: .15rem; } .opt-line small { color: var(--slate); font-size: .86rem; }
.opt-line:has(input:checked) { box-shadow: inset 0 0 0 2px var(--teal); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.1rem; padding: 0 .3rem; } .total b { font-family: var(--display); font-size: 1.6rem; }

/* today: Eole chip */
.petchip { display: flex; align-items: center; gap: .7rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 22px; padding: .5rem .9rem .5rem .5rem; text-decoration: none; color: var(--ink); margin: .2rem 0 .9rem; }
.petchip img { width: 54px; height: 54px; object-fit: contain; animation: bob 3s ease-in-out infinite; }
.petchip > span:nth-child(2) { flex: 1; display: grid; gap: .3rem; }
.petchip.mood-sick img, .room.mood-sick .pet img { filter: saturate(.55) hue-rotate(40deg) brightness(.97); }
.minibars { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.minibars i { height: 7px; border-radius: 4px; background: var(--line2); position: relative; overflow: hidden; }
.minibars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 4px; background: var(--coral); animation: growx .9s ease-out both; }
.minibars i:nth-child(2)::after { background: var(--sky); } .minibars i:nth-child(3)::after { background: var(--sun); }
@keyframes growx { from { width: 0; } }
.lvchip { background: var(--solid); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-weight: 800; font-size: .8rem; white-space: nowrap; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.eole-btn img { animation: bob 3.2s ease-in-out infinite; }

/* check-in */
.checkin .eole-card { margin: 0; } .checkin .eole-img { width: 64px; } .checkin .eole-bubble { margin-bottom: .6rem; }
.moods { display: flex; flex-wrap: wrap; gap: .4rem; }
.moods button { font: 800 .92rem var(--sans); border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: .5rem .95rem; min-height: 44px; cursor: pointer; color: var(--ink); }
.moods button:hover { border-color: var(--teal); }

/* ===== Eole room ===== */
.room { position: relative; height: 22rem; border-radius: 30px; overflow: hidden; margin: .4rem 0 .9rem; display: grid; place-items: end center; }
.sky-day { background: linear-gradient(180deg, #BFE3FF 0%, #E6F4FF 60%, #F6EEDC 60.1%); }
.sky-dawn { background: linear-gradient(180deg, #FFD2B8 0%, #FFE9D6 60%, #F6EEDC 60.1%); }
.sky-dusk { background: linear-gradient(180deg, #B9B4FF 0%, #FFC59E 60%, #EFE6D4 60.1%); }
.sky-night { background: linear-gradient(180deg, #1F2A55 0%, #36457A 60%, #D9D2C2 60.1%); }
.stars { position: absolute; inset: 0 0 45% 0; opacity: 0; }
.sky-night .stars { opacity: 1; background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent), radial-gradient(2px 2px at 45% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 10% 60%, #fff, transparent); animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .55; } }
.orbit { position: absolute; left: 50%; bottom: 7.6rem; width: 15rem; height: 15rem; margin-left: -7.5rem; pointer-events: none; animation: spin 14s linear infinite; }
.orbit i { position: absolute; width: 14px; height: 14px; border-radius: 50%; top: 0; left: 50%; margin-left: -7px; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 217, 102, .35); }
.orbit i:nth-child(2) { top: auto; bottom: 10%; left: 6%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 154, 122, .3); }
.orbit i:nth-child(3) { top: auto; bottom: 10%; left: auto; right: 6%; background: var(--teal); box-shadow: 0 0 0 4px rgba(47, 127, 112, .25); }
@keyframes spin { to { transform: rotate(360deg); } }
.mood-sick .orbit, .mood-sleepy .orbit { animation-duration: 40s; opacity: .45; }
.pet { position: relative; z-index: 2; background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: 2.4rem; width: 11rem; }
.pet img { width: 100%; display: block; transform-origin: 50% 100%; animation: breathe2 3.4s ease-in-out infinite; }
@keyframes breathe2 { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .975); } }
.floor { position: absolute; left: 50%; bottom: 2.1rem; width: 8rem; height: 1.1rem; margin-left: -4rem; border-radius: 50%; background: rgba(27, 36, 64, .12); }
.petsay { position: absolute; top: 1rem; left: 1rem; right: 1rem; text-align: center; font-family: var(--display); font-size: 1.15rem; font-weight: 500; color: var(--ink); min-height: 1.5rem; }
.sky-night .petsay { color: #fff; }
.fx { position: absolute; inset: 0; pointer-events: none; }
.mood-sick .pet img { animation: shiver .5s linear infinite; }
@keyframes shiver { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
.mood-sick .fx::before { content: ''; position: absolute; right: 8%; top: 22%; width: 10px; height: 38px; border-radius: 6px; background: linear-gradient(0deg, var(--red) 40%, #fff 40%); box-shadow: 0 0 0 2px var(--ink); transform: rotate(25deg); }
.mood-sick .fx::after, .mood-sleepy .fx::after { content: 'z z z'; position: absolute; left: 70%; top: 0; font-family: var(--display); font-weight: 600; color: var(--slate); animation: floatz 2.6s ease-in-out infinite; }
.mood-sick .fx::after { content: 'achoo'; color: #7A8CA8; font-size: .9rem; }
@keyframes floatz { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.mood-happy .fx::after { content: '♥'; position: absolute; left: 12%; top: 8%; color: var(--coral); font-size: 1.4rem; animation: floatz 2.2s ease-in-out infinite; }
.pet.wiggle img { animation: wiggle .55s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.pet.munch img { animation: munch .5s ease-in-out 2; }
@keyframes munch { 50% { transform: scale(1.08, .92); } }
.pet.t-wave img { animation: wiggle .5s ease-in-out 3; }
.pet.t-spin img { animation: spinonce 1s cubic-bezier(.5, 0, .3, 1); }
@keyframes spinonce { to { transform: rotateY(360deg); } }
.pet.t-jump img { animation: bigjump .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bigjump { 40% { transform: translateY(-70px) scale(.95, 1.05); } 75% { transform: translateY(0) scale(1.08, .92); } }
.pet.t-orbit ~ .orbit, .room:has(.pet.t-orbit) .orbit { animation-duration: 1.2s; }
.pet.t-dance img { animation: dance 1.6s ease-in-out; }
@keyframes dance { 0%, 100% { transform: none; } 20% { transform: translateX(-14px) rotate(-8deg); } 40% { transform: translateX(14px) rotate(8deg); } 60% { transform: translateX(-10px) rotate(-6deg) translateY(-10px); } 80% { transform: translateX(10px) rotate(6deg); } }
.pet.t-rocket img { animation: rocket 1.8s cubic-bezier(.5, 0, .5, 1); }
@keyframes rocket { 30% { transform: translateY(6px) scale(1.05, .95); } 60% { transform: translateY(-260px); } 61% { transform: translateY(260px); } 100% { transform: none; } }
.statl { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; margin-top: .55rem; }
.statbar { height: 12px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.statbar span { display: block; height: 100%; border-radius: 8px; animation: growx 1s ease-out both; }
.stat-h .statbar span { background: var(--coral); } .stat-e .statbar span { background: var(--sky); } .stat-j .statbar span { background: var(--sun); }
.xpbar { height: 8px; border-radius: 6px; background: var(--line2); overflow: hidden; margin: .8rem 0 .3rem; } .xpbar span { display: block; height: 100%; background: var(--teal); animation: growx 1.2s ease-out both; }
.careacts { display: grid; gap: .6rem; } @media (min-width: 640px) { .careacts { grid-template-columns: repeat(3, 1fr); } }
.careacts .block { margin: 0; text-align: left; border: 0; cursor: pointer; font: inherit; display: grid; gap: .2rem; }
.careacts b { font-family: var(--display); font-size: 1.15rem; } .careacts span { font-size: .9rem; }
.tricks { display: flex; flex-wrap: wrap; gap: .4rem; }
.trick { border: 2px solid var(--ink); background: var(--white); padding: .45rem .8rem; min-height: 40px; cursor: pointer; font: 800 .88rem var(--sans); }
.trick.locked { border-color: var(--line); color: var(--slate); cursor: default; }
.snack { position: absolute; z-index: 80; color: var(--sun); font-size: 26px; text-shadow: 0 0 0 var(--ink); pointer-events: none; animation: snackfly .7s cubic-bezier(.3, .1, .3, 1) forwards; }
@keyframes snackfly { to { transform: translate(var(--tx), var(--ty)) scale(.5); opacity: .4; } }
.feeddone { background: var(--sun); border-radius: 16px; padding: .8rem 1rem; animation: pop .3s ease-out; }

/* ask Eole */
.chat { display: grid; gap: .6rem; margin: .5rem 0; max-height: 60vh; overflow-y: auto; }
.msg { display: flex; gap: .5rem; align-items: flex-end; }
.msg.me { justify-content: flex-end; }
.msg .mb { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px 18px 18px 6px; padding: .6rem .85rem; max-width: 85%; animation: pop .25s ease-out; }
.msg.me .mb { background: var(--solid); color: #fff; border-color: var(--ink); border-radius: 18px 18px 6px 18px; }
.msg img { width: 40px; flex: none; }
.msg .mb p { margin: .2rem 0; }
.askbar { display: flex; gap: .5rem; align-items: stretch; position: sticky; bottom: 76px; background: var(--paper); padding: .5rem 0; }
@media (min-width: 900px) { .askbar { bottom: 0; } }
.askin { flex: 1; border-radius: 16px; resize: none; font-family: var(--sans); }

/* notes depths */
.fmts { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .3rem; }
.fmt { flex: 0 0 auto; display: grid; gap: .1rem; text-align: left; background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: .55rem .75rem; cursor: pointer; font: inherit; color: var(--ink); max-width: 11rem; }
.fmt b { font-size: .92rem; } .fmt span { font-size: .78rem; color: var(--slate); }
.fmt.on { border-color: var(--ink); background: var(--sun); }
.nprev { white-space: pre-wrap; font: .9rem/1.55 var(--sans); background: var(--paper); border-radius: 14px; padding: .8rem; max-height: 16rem; overflow: auto; margin: .6rem 0; }

/* library */
.booklist { display: grid; gap: .6rem; } @media (min-width: 640px) { .booklist { grid-template-columns: 1fr 1fr; } }
.bookcard { background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: .9rem 1rem; display: grid; gap: .4rem; }
.bk-k { font-size: .75rem; font-weight: 800; color: var(--teal); }
.vgroup h2 { margin: 1.2rem 0 .4rem; }
.vrow { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.vcard { flex: 0 0 13rem; scroll-snap-align: start; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 0 0 .6rem; cursor: pointer; font: inherit; color: var(--ink); overflow: hidden; }
.vthumb { display: grid; place-items: center; aspect-ratio: 16/9; background: var(--line2) center/cover; }
.vthumb i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: rgba(27, 36, 64, .78); color: #fff; display: grid; place-items: center; font-size: 1rem; transition: transform .2s; }
.vcard:hover .vthumb i { transform: scale(1.12); }
.vt { display: block; padding: .5rem .7rem 0; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.vmodal .vbox { width: min(100%, 52rem); display: grid; gap: .5rem; justify-items: end; }
.vframe { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; } .vframe iframe { width: 100%; height: 100%; border: 0; }
.livelist { list-style: none; padding: 0; display: grid; gap: .45rem; }
.livelist li { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rm .pet img, .rm .orbit, .rm .petchip img, .rm .eole-btn img, .rm .lockicon span, .rm .stars, .rm #main.pagein > .page, .rm .stagger > * { animation: none !important; }

body.on-eole .eole-dock { display: none; }
.pet img { aspect-ratio: 433 / 520; object-fit: contain; } .petchip img { aspect-ratio: 1; } .eole-card .eole-img { aspect-ratio: 275 / 360; object-fit: contain; }

/* ---------- community ---------- */
.community .cbody { display: grid; gap: 1rem; max-width: 680px; }
.av { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--ink); flex: none; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ink); }
.stories { display: flex; gap: .8rem; overflow-x: auto; padding: .2rem .1rem .4rem; }
.stories:empty { display: none; }
.story-b { display: grid; justify-items: center; gap: .2rem; background: none; border: 0; font: inherit; font-size: .75rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.story-b .av { width: 58px; height: 58px; font-size: 1.05rem; box-shadow: 0 0 0 3px var(--teal); }
.compose { display: grid; gap: .55rem; }
.compose textarea { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: .7rem; font: inherit; resize: vertical; }
.compose textarea:focus { border-color: var(--teal); outline: none; }
.crow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.crow .cgo { margin-left: auto; }
.addm { cursor: pointer; }
.cmedia { display: flex; gap: .4rem; flex-wrap: wrap; }
.mchip { font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; background: var(--paper, #f4f1ea); }
.mchip.ok { background: var(--mint); } .mchip.bad { background: var(--coral); color: #fff; }
.posts { display: grid; gap: .9rem; }
.post { border: 2px solid var(--ink); border-radius: 22px; padding: .9rem 1rem; display: grid; gap: .55rem; }
.post.reported { opacity: .5; }
.ph { display: flex; align-items: center; gap: .55rem; }
.ph .more { margin-left: auto; font-size: 1.2rem; text-decoration: none; }
.pt { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pm img, .pm video { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; background: #000; }
.pf { display: flex; gap: .5rem; }
.pbtn { background: var(--paper, #f4f1ea); border: 0; border-radius: 999px; padding: .4rem .85rem; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink); min-height: 40px; }
.like .heart { color: var(--slate); transition: color .2s; }
.like.on .heart { color: #E5484D; }
.like.pop .heart { display: inline-block; animation: heartpop .45s ease; }
@keyframes heartpop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cwrap { border-top: 1px dashed var(--line); padding-top: .55rem; display: grid; gap: .5rem; }
.cmt { display: flex; gap: .5rem; } .cmt .av { width: 28px; height: 28px; font-size: .65rem; box-shadow: none; }
.cmt p { margin: .1rem 0 0; }
.cform { display: flex; gap: .4rem; } .cform input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: .45rem .8rem; font: inherit; }
.grp, .person, .ord { border: 2px solid var(--ink); border-radius: 20px; padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.grp p, .person p, .ord p { margin: .2rem 0; }
.person > div { flex: 1; min-width: 0; }
.gform { display: flex; gap: .45rem; flex-wrap: wrap; } .gform input, .gform select { flex: 1 1 150px; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: .45rem .6rem; font: inherit; }
.gform input[type=number] { flex: 0 0 70px; }
.hobbies { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .6rem; }
.hchip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; border: 2px solid var(--line); font-size: .82rem; cursor: pointer; text-transform: capitalize; }
.hchip:has(input:checked) { background: var(--sun); border-color: var(--ink); }
.hchip input { accent-color: var(--teal); }
.htags { display: flex; flex-wrap: wrap; gap: .25rem; } .htags span { font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: var(--paper, #f4f1ea); text-transform: capitalize; }
.htags .shared { background: var(--mint); font-weight: 700; }
.lb-list.big li { padding: .7rem .9rem; font-size: 1rem; }
.lb-list.big .podium { font-weight: 800; } .lb-list.big .p1 { background: var(--sun); } .lb-list.big .p2 { background: var(--sky); } .lb-list.big .p3 { background: var(--peach); }
.storyov { position: fixed; inset: 0; z-index: 80; background: rgba(15, 20, 30, .94); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem; }
.sbar { display: flex; gap: 4px; } .sbar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.sbar i.done { background: var(--white); } .sbar i.now { background: linear-gradient(90deg, #fff 50%, rgba(255, 255, 255, .3) 50%); background-size: 200% 100%; animation: sbar 6s linear forwards; }
@keyframes sbar { from { background-position: 100% 0; } to { background-position: 0 0; } }
.storyov .sc { display: grid; align-content: center; justify-items: center; gap: .8rem; cursor: pointer; }
.storyov .sc img, .storyov .sc video { max-width: 100%; max-height: 62vh; border-radius: 16px; }
.storyov .stext { font-size: 1.25rem; font-family: var(--display); text-align: center; max-width: 32ch; }
.sauth { display: flex; gap: .5rem; align-items: center; } .storyov .sclose { color: #fff; border-color: #fff; justify-self: center; }
/* ---------- founder ---------- */
.founder .fbody { display: grid; gap: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.kpi { border: 2px solid var(--ink); border-radius: 18px; padding: .7rem .8rem; display: grid; }
.kpi b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; } .kpi span { font-size: .78rem; color: var(--slate); }
.kpis.sm .kpi { border-width: 1px; border-color: var(--line); } .kpis.sm .kpi b { font-size: 1.15rem; }
.fsearch { display: flex; gap: .45rem; flex-wrap: wrap; } .fsearch input { flex: 1 1 200px; } .fsearch input, .fsearch select { border: 2px solid var(--line); border-radius: 12px; padding: .5rem .7rem; font: inherit; }
.tscroll { overflow-x: auto; }
.ftable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ftable th, .ftable td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ftable tbody tr { cursor: pointer; } .ftable tbody tr:hover { background: var(--paper, #f4f1ea); }
.reqrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.warnbox { background: #FFF3D6; border: 2px solid var(--sun); border-radius: 14px; padding: .6rem .8rem; }
.subs li { margin: .2rem 0; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* ---------- Eole typing + checkout ---------- */
.typing { display: inline-flex; gap: 4px; padding: .3rem 0; } .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); animation: tdot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nline.off { opacity: .55; } .nline .nweb { display: none; } .nline.off .nweb { display: block; color: var(--ink); opacity: 1; }
.u { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .like.pop .heart, .typing i, .sbar i.now { animation: none; } }

/* ---------- Eole style + room ---------- */
.edress { position: relative; display: inline-block; line-height: 0; }
.edress img { display: block; }
.edress .tint { position: absolute; inset: 0; background: var(--tc); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; mix-blend-mode: color; opacity: .8; pointer-events: none; }
.edress .acc { position: absolute; left: 22%; width: 56%; pointer-events: none; }
.edress .acc.head { top: -9%; } .edress .acc.neck { top: 46%; left: 30%; width: 40%; }
.room .decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.room .pet { position: relative; z-index: 2; }
.stylepv { border: 2px solid var(--ink); border-radius: 26px; display: grid; place-items: center; padding: 1.4rem 1rem .8rem; background: radial-gradient(circle at 50% 60%, #FFF6E0, #fff 70%); }
.pvwrap .edress img { width: min(220px, 60vw); height: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; position: relative; overflow: hidden; }
.sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sw.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.accs, .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; }
.accb, .itemb { border: 2px solid var(--line); background: var(--white); border-radius: 18px; padding: .55rem .4rem; display: grid; justify-items: center; gap: .2rem; font: inherit; cursor: pointer; text-align: center; color: var(--ink); min-height: 44px; }
.accb .accic { width: 64px; height: 40px; font-size: 1.4rem; display: grid; place-items: center; }
.itemb svg { width: 72px; height: 52px; }
.accb b, .itemb b { font-size: .8rem; } .accb .small, .itemb .small { font-size: .7rem; color: var(--slate); }
.accb.on, .itemb.on { border-color: var(--teal); background: #EAF7F3; }
.accb.locked, .itemb.locked { opacity: .55; cursor: not-allowed; } .accb.locked svg, .itemb.locked svg { filter: grayscale(1); }
.roomfull { min-height: 300px; display: grid; place-items: end center; padding-bottom: 14px; }
.roomfull .pet.static { pointer-events: none; } .roomfull .pet .edress img { width: 130px; height: auto; }
/* ---------- videos ---------- */
.vsubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.vsub { border: 2px solid var(--ink); border-radius: 20px; padding: .8rem; display: grid; gap: .15rem; text-decoration: none; color: var(--ink); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.vtile { text-decoration: none; color: var(--ink); display: grid; gap: .35rem; }
.vtile .vthumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; background-size: cover; background-position: center; background-color: #ddd; display: grid; place-items: center; border: 2px solid var(--ink); }
.vtile .vthumb i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 1.1rem; }
.vtile .vthumb em { position: absolute; right: 8px; bottom: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-style: normal; font-size: .72rem; padding: .1rem .4rem; border-radius: 6px; }
.vtile.locked .vthumb { filter: grayscale(.7) brightness(.9); }
.vtile .vt { font-size: .9rem; }
.vstage { position: relative; }
.vframe { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; border: 2px solid var(--ink); }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eolefab { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: .35rem; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .8rem .2rem .25rem; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.eolefab img { width: 38px; height: 38px; object-fit: contain; }
.eolechat { position: absolute; right: 8px; bottom: 8px; z-index: 4; width: min(340px, calc(100% - 16px)); max-height: calc(100% - 16px); display: grid; grid-template-rows: auto 1fr auto; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); overflow: hidden; }
.eolechat header { display: flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-bottom: 1px solid var(--line); } .eolechat .resume { margin-left: auto; }
.ecmsgs { overflow-y: auto; padding: .5rem; display: grid; gap: .4rem; align-content: start; font-size: .88rem; min-height: 90px; }
.ecm { padding: .45rem .65rem; border-radius: 14px; max-width: 90%; } .ecm.eole { background: #EAF7F3; } .ecm.me { background: var(--sun); justify-self: end; }
.ecform { display: flex; gap: .35rem; padding: .45rem; border-top: 1px solid var(--line); } .ecform input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: .4rem .7rem; font: inherit; }
@media (max-width: 560px) { .eolechat { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); width: auto; max-height: 55vh; } }
.vnav { display: flex; justify-content: space-between; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.vlink { margin-top: .5rem; }
/* ---------- public profiles + daily snap ---------- */
.ctabs { overflow-x: auto; flex-wrap: nowrap; } .ctabs a { white-space: nowrap; }
.au { color: inherit; text-decoration: none; } .au:hover b { text-decoration: underline; }
.pform label { display: grid; gap: .25rem; margin-bottom: .6rem; } .pform textarea, .pform select { border: 2px solid var(--line); border-radius: 12px; padding: .5rem .7rem; font: inherit; }
.atpre { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; } .atpre i { font-style: normal; padding: 0 .5rem; color: var(--slate); font-weight: 700; } .atpre input { border: 0 !important; flex: 1; padding: .5rem .3rem; font: inherit; outline: none; }
.profhead { border: 2px solid var(--ink); border-radius: 24px; padding: 1rem; display: grid; gap: .55rem; }
.phrow { display: flex; align-items: center; gap: .8rem; } .phrow .pid { flex: 1; min-width: 0; } .phrow h2 { margin: 0; }
.av.big { width: 64px; height: 64px; font-size: 1.3rem; }
.pbio { margin: 0; } .pstats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; }
.hlrow { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; } .hlrow .tile { flex: 0 0 140px; }
.pgrid, .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.tile { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); position: relative; } .tile img, .tile video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .tile p { margin: 0; padding: .45rem .55rem; font-size: .82rem; }
.snapday { position: absolute; top: 6px; left: 6px; background: var(--solid); color: #fff; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; }
.hlpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .45rem; margin: .5rem 0; }
.hlitem { border: 2px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; position: relative; cursor: pointer; } .hlitem:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.hlitem input { position: absolute; top: 5px; left: 5px; accent-color: var(--teal); } .hlitem img { width: 100%; aspect-ratio: 1; object-fit: cover; } .hlitem span { padding: .4rem; font-size: .75rem; min-height: 70px; }
.snaphero { border: 2px solid var(--ink); border-radius: 24px; padding: 1rem; display: grid; gap: .5rem; } .snaphero h2 { margin: 0; }
.sact { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; } .scap { flex: 1 1 180px; border: 2px solid var(--ink); border-radius: 999px; padding: .5rem .8rem; font: inherit; }
.snapbtn { cursor: pointer; }
.snap { margin: 0; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); } .snap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; } .snap figcaption { padding: .4rem .55rem; font-size: .8rem; }
.snapban { display: grid; gap: .1rem; border: 2px solid var(--ink); border-radius: 20px; padding: .8rem 1rem; text-decoration: none; color: var(--ink); margin-bottom: .8rem; }
.hfilter select { border: 2px solid var(--line); border-radius: 12px; padding: .5rem .7rem; font: inherit; margin-bottom: .6rem; }
.pet .edress { display: block; width: 100%; }
/* ---------- Find your Eole ---------- */
.csteps { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0 0 .8rem; overflow-x: auto; }
.csteps button { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .75rem; font: inherit; font-size: .8rem; font-weight: 700; white-space: nowrap; cursor: pointer; color: var(--slate); }
.csteps .on button { border-color: var(--ink); background: var(--solid); color: #fff; } .csteps .done button { color: var(--teal); border-color: var(--teal); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.ccard, .lcard { border: 2px solid var(--line); background: var(--white); border-radius: 20px; padding: .6rem; display: grid; gap: .2rem; justify-items: center; text-align: center; font: inherit; cursor: pointer; color: var(--ink); }
.ccard img { width: 100%; max-width: 130px; aspect-ratio: 1; object-fit: contain; } .ccard b small { font-weight: 600; color: var(--slate); }
.ccard.on, .lcard.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .45rem; } .lcard img { width: 64px; height: 64px; object-fit: contain; } .lcard span { font-size: .75rem; font-weight: 700; }
.cpv { display: flex; gap: 1rem; align-items: center; border: 2px solid var(--ink); border-radius: 24px; padding: .8rem 1rem; background: radial-gradient(circle at 25% 60%, #FFF6E0, #fff 65%); margin-bottom: .8rem; }
.cpvimg { position: relative; flex: 0 0 120px; line-height: 0; } .cpvimg img { width: 120px; height: 130px; object-fit: contain; } .cpvimg .acc { position: absolute; left: 22%; width: 56%; } .cpvimg .acc.head { top: -9%; } .cpvimg .acc.neck { top: 46%; left: 30%; width: 40%; }
.cline { font-family: var(--display); margin: .3rem 0 0; }
.hrow p { margin: .6rem 0 .3rem; } .seg { display: flex; gap: .3rem; flex-wrap: wrap; }
.segb { border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: .4rem .85rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 40px; color: var(--ink); } .segb.on { background: var(--solid); color: #fff; border-color: var(--ink); }
.cbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .8rem; position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); background: rgba(250, 248, 243, .95); padding: .5rem 0; }
@media (min-width: 900px) { .cbar { bottom: 0; } }
.eole-reduced .pet img, .eole-reduced .edress img, .eole-reduced .eole-img { animation: none !important; }
.eole-subtle .pet img { animation-duration: 6s !important; }
/* ---------- course content (ICT and other non-maths subjects) ---------- */
.lblocks .tbl { border-collapse: collapse; width: 100%; font-size: .88rem; margin: .5rem 0; display: block; overflow-x: auto; }
.lblocks .tbl th, .lblocks .tbl td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; }
.lblocks .tbl tr:first-child th, .lblocks .tbl tr:first-child td { background: #F3EFE6; font-weight: 700; }
.sheet th { background: #E8EEF6 !important; color: var(--slate); font-weight: 600; text-align: center !important; width: 2rem; }
.sheet td { font-family: ui-monospace, Menlo, monospace; }
.qbe th { background: #EDE7FB !important; } .qbe td { text-align: center !important; min-width: 6rem; }
pre.code { background: #1d2433; color: #E8F1FF; border-radius: 12px; padding: .7rem .9rem; font-size: .88rem; overflow-x: auto; line-height: 1.5; }
.specpanel, .docmock { border: 2px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--white); margin: .4rem 0; line-height: 1.7; }
.flow { display: grid; justify-items: center; gap: .15rem; margin: .5rem 0; }
.fl { padding: .4rem 1rem; border: 2px solid var(--ink); background: var(--white); font-weight: 700; font-size: .9rem; }
.fl-oval { border-radius: 999px; } .fl-para { transform: skewX(-12deg); } .fl-dia { border-radius: 4px; background: #FFF6E0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); padding: 1rem 1.8rem; }
.fl-split { border: 0; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; } .fl-split b { display: inline-block; border: 2px solid var(--ink); padding: .3rem .7rem; }
.fa { color: var(--slate); }
.symrow { display: flex; flex-wrap: wrap; gap: .5rem 1rem; } .symrow span { display: flex; align-items: center; gap: .4rem; font-size: .88rem; }
.symrow i { display: inline-block; width: 34px; height: 20px; border: 2px solid var(--ink); background: var(--white); }
.s-oval { border-radius: 999px; } .s-para { transform: skewX(-15deg); } .s-dia { width: 22px !important; height: 22px !important; transform: rotate(45deg); }
svg.topo { width: 100%; max-width: 560px; height: auto; color: var(--ink); }
@media (max-width: 480px) { .lblocks .tbl { font-size: .72rem; } .lblocks .tbl th, .lblocks .tbl td { padding: .25rem .3rem; } .qbe td { min-width: 0; } .sheet th { width: 1.2rem; } }
.btn.danger { background: #C0392B; border-color: #C0392B; color: #fff; }
.ladder { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; } .ladder span { padding: .3rem .6rem; border-radius: 8px; background: #2D8A7B; color: #fff; font-weight: 700; font-family: var(--display); }

/* ---------- economics diagrams ---------- */
.econw .eseg { margin: .35rem 0; } .econw .esl { display: block; font-size: .8rem; font-weight: 700; color: var(--slate); margin-bottom: .2rem; }
.econw .segrow { display: flex; gap: .3rem; flex-wrap: wrap; } .econw .segb { min-height: 36px; padding: .3rem .7rem; font-size: .85rem; }
.econw .wout { font-size: .92rem; line-height: 1.5; }
.econw .sl input[type=range] { width: 100%; }

/* Full notes (long-form) */
.fullnotes h4 { font-family: var(--display, inherit); font-size: 1.02rem; margin: 1.1rem 0 .35rem; color: var(--ink); }
.fullnotes h4:first-child { margin-top: .2rem; }
.fullnotes ul, .fullnotes ol { margin: .3rem 0 .6rem 1.15rem; padding: 0; }
.fullnotes li { margin: .22rem 0; line-height: 1.55; }
.fullnotes p { margin: .35rem 0 .55rem; line-height: 1.6; }
.fullnotes .tbl { width: 100%; border-collapse: collapse; margin: .5rem 0 .8rem; font-size: .9rem; display: block; overflow-x: auto; }
.fullnotes .tbl th, .fullnotes .tbl td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.fullnotes .tbl th { background: rgba(46,125,110,.08); }
.fullnotes .key { background: rgba(242,177,52,.14); border-left: 4px solid #f2b134; border-radius: 8px; padding: .5rem .7rem; margin: .6rem 0; }
.fullnotes .trap { background: rgba(214,69,65,.08); border-left: 4px solid #d64541; border-radius: 8px; padding: .5rem .7rem; margin: .6rem 0; }
.fullnotes .ex { background: rgba(35,80,216,.06); border-left: 4px solid #2350d8; border-radius: 8px; padding: .5rem .7rem; margin: .6rem 0; }

/* Writing studio */
.blk.write .wr-ta { width: 100%; box-sizing: border-box; border: 2px solid var(--line); border-radius: 12px; padding: .7rem .8rem; font: inherit; line-height: 1.6; background: var(--white); resize: vertical; margin-top: .5rem; }
.blk.write .wr-ta:focus { outline: none; border-color: var(--teal, #2e7d6e); }
.wr-bar { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin: .3rem 0 .6rem; }
.wr-count.over { color: #c0392b; font-weight: 700; } .wr-count.under { color: #b9770e; }
.wr-h { font-weight: 800; margin: .8rem 0 .3rem; font-size: .92rem; }
.wr-list { list-style: none; padding: 0; margin: 0; } .wr-list li { margin: .3rem 0; } .wr-list label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.wr-list input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.wr-model { background: rgba(46,125,110,.07); border-radius: 10px; padding: .6rem .8rem; }
.wr-warn { color: #c0392b; font-weight: 700; } .wr-score { font-weight: 800; margin: .7rem 0 .4rem; }
.passage { background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; line-height: 1.75; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; max-height: 70vh; overflow-y: auto; }
.passage p { margin: 0 0 .7rem; } .passage .ln { color: var(--muted); font-size: .72rem; font-family: var(--sans, sans-serif); margin-right: .35rem; }

/* Matching / attribution / cloze */
.mt-shared { list-style: none; padding: .5rem .7rem; margin: .5rem 0; background: rgba(46,125,110,.06); border-radius: 10px; font-size: .92rem; }
.mt-shared li { margin: .25rem 0; line-height: 1.4; }
.mt-items { padding-left: 1.1rem; margin: .4rem 0; } .mt-row { margin: .55rem 0; padding: .35rem .4rem; border-radius: 8px; }
.mt-q { line-height: 1.45; margin-bottom: .3rem; } .mt-sel { width: 100%; max-width: 100%; padding: .45rem; border: 2px solid var(--line); border-radius: 8px; font: inherit; background: var(--white); }
.mt-row.ok { background: rgba(46,160,90,.10); } .mt-row.bad { background: rgba(214,69,65,.09); } .mt-fb { font-size: .88rem; margin-top: .25rem; } .mt-score { margin-top: .6rem; }
.cloze b.blank { background: #fff3cd; padding: 0 .3rem; border-radius: 4px; }

/* ===================== Dark mode ===================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11162A; --white: #1A2138; --card: #1A2138; --solid: #2F9C88;
  --ink: #ECEEF5; --navy: #ECEEF5; --navy2: #C9CFE3; --slate: #A6AEC4;
  --line: #2C3552; --line2: #222A44;
  --cobalt: #49B39D; --teal: #49B39D; --cobalt-l: #183A36;
  --gold: #F0B94A; --gold-l: #3A2F14; --amber: #F0B94A; --amber-l: #3A2F14;
  --green: #4CC38A; --green-l: #173A2A; --red: #F07A70; --red-l: #3E1D1F;
  --sun: #E6C455; --mint: #7FCFB2; --lav: #9E98F0; --sky: #7FB7EA; --coral: #F0907A; --peach: #F0B08A;
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
/* pastel cards keep dark text so they stay readable */
:root[data-theme="dark"] :is(.b-sun, .c-sun, .b-lav, .c-lav, .b-sky, .c-sky, .b-mint, .c-mint, .b-coral, .c-coral, .b-peach, .c-peach, .c-teal, .nextup) {
  --ink: #1B2440; --navy: #1B2440; --slate: #3E4558; --line: rgba(27,36,64,.18); --solid: #1B2440; color: #1B2440;
}
:root[data-theme="dark"] .c-teal { background: #3E8F80; }
:root[data-theme="dark"] :is(input, textarea, select) { background: #10152A; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] ::placeholder { color: #7D86A0; }
:root[data-theme="dark"] .katex { color: var(--ink); }
:root[data-theme="dark"] :is(img.warm-eole, .auth-eole, .eole-card img) { filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
:root[data-theme="dark"] a { color: #7FD4C2; }
:root[data-theme="dark"] :is(.btn, .b-go, .chip) { color: inherit; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .b-go { color: #fff; }
.themechoice { display: flex; gap: .4rem; flex-wrap: wrap; }
.themechoice button[aria-pressed="true"] { background: var(--solid); color: #fff; border-color: var(--solid); }
:root[data-theme="dark"] .top { background: rgba(17, 22, 42, .92); border-bottom-color: var(--line); }
:root[data-theme="dark"] .tabbar { background: rgba(20, 26, 48, .97); }
:root[data-theme="dark"] .tabbar .ti { background: #3A4466; }
:root[data-theme="dark"] .tabbar .navl.on .ti { background: var(--teal); }
:root[data-theme="dark"] .brand .bt, :root[data-theme="dark"] .brand { color: var(--ink); }
:root[data-theme="dark"] #focusbtn, :root[data-theme="dark"] .top .btn { background: var(--white); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .tile.b-lav { background: var(--lav); } :root[data-theme="dark"] .tile.b-mint { background: var(--mint); }
:root[data-theme="dark"] .tile.b-sky { background: var(--sky); } :root[data-theme="dark"] .tile.b-sun { background: var(--sun); }
:root[data-theme="dark"] .tile.b-coral { background: var(--coral); } :root[data-theme="dark"] .tile.b-peach { background: var(--peach); }
:root[data-theme="dark"] .lb-list li.me { --ink: #1B2440; --slate: #3E4558; color: #1B2440; }
.lfoot .skipq { display: block; margin: 8px auto 0; } .lessons .skipped, .lblocks .skipped { opacity: .75; }

/* ===== social layer ===== */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.subnav a { white-space: nowrap; text-decoration: none; font-weight: 800; font-size: .88rem; padding: .4rem .75rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.subnav a.on { background: var(--solid); color: #fff; border-color: var(--solid); }
.vbadge { display: inline-flex; align-items: center; gap: 2px; font-size: .7rem; font-weight: 900; color: #7a5300; background: #FFF3D6; border: 1px solid #E9A92A; border-radius: 999px; padding: 0 .45rem; margin-left: 4px; vertical-align: middle; }
.convo { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.convo .cv-t { flex: 1; display: flex; flex-direction: column; min-width: 0; } .convo .cv-t .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unr { background: var(--teal); color: #fff; border-radius: 999px; font-weight: 900; font-size: .72rem; padding: 0 .45rem; margin-left: 6px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-h { display: flex; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; }
.chat-tools { display: flex; gap: 6px; overflow-x: auto; }
.chip-b { border: 1px solid var(--teal); color: var(--teal); background: var(--white); border-radius: 999px; padding: .4rem .75rem; font: 800 .85rem var(--sans, sans-serif); white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-block; }
.msgs { min-height: 300px; max-height: 58vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.msg { display: flex; flex-direction: column; max-width: 82%; } .msg.me { align-self: flex-end; align-items: flex-end; } .msg.them { align-self: flex-start; }
.msg .mb { padding: 9px 12px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); word-break: break-word; }
.msg.me .mb { background: var(--solid); color: #fff; border-color: var(--solid); } .msg.me .mb a { color: #fff; }
.msg .mk { font-size: .75rem; font-weight: 900; opacity: .8; margin-bottom: 2px; }
.msg .mimg { max-width: 240px; border-radius: 12px; display: block; margin: 2px 0; }
.drill-f { display: flex; gap: 6px; margin-top: 6px; } .drill-f input { flex: 1; min-width: 0; }
.chat-in { display: flex; gap: 6px; align-items: center; position: sticky; bottom: 70px; background: var(--paper); padding: 6px 0; }
.chat-in input[name=t] { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 999px; border: 1px solid var(--line); font: 600 1rem var(--sans, sans-serif); background: var(--white); color: var(--ink); }
.emo-b, .img-b { font-size: 1.3rem; background: none; border: 0; cursor: pointer; padding: 4px; }
.emo-p { display: flex; flex-wrap: wrap; gap: 4px; } .emo-p button { font-size: 1.3rem; background: none; border: 0; cursor: pointer; }
.wheel { position: relative; width: 260px; height: 260px; margin: 6px auto 14px; }
.wheel-in { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#FFD966 0 60deg, #A8E6CF 0 120deg, #B9B4FF 0 180deg, #9FD2FF 0 240deg, #FFC59E 0 300deg, #FF9F8C 0); position: relative; box-shadow: 0 16px 40px rgba(27,36,64,.18), inset 0 0 0 8px #fff; }
.wheel-in span { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; font-size: 26px; width: 28px; height: 28px; text-align: center; }
.wheel-pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 28px; color: var(--solid); }
.match { animation: popin .5s cubic-bezier(.2,.8,.2,1) both; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qidea { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 10px; }
@keyframes popin { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.hs { font: 700 2.2rem var(--display, sans-serif); }
.lb { list-style: none; padding: 0; margin: 0; } .lbrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); } .lbrow .rk { width: 28px; text-align: center; font-weight: 900; } .lbrow.meh { background: var(--tealpale, #E3F2EE); border-radius: 12px; padding: 8px; }
.cal-w, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; } .cal-w span { font-size: .75rem; font-weight: 900; color: var(--slate); }
.cal-d { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); position: relative; font: 800 .95rem var(--sans, sans-serif); cursor: default; }
.cal-d.has { background: linear-gradient(135deg, #FFD966, #FFC59E); border-color: #E9A92A; cursor: pointer; color: #1B2440; } .cal-d.today { box-shadow: 0 0 0 2px var(--teal); }
.cal-d i { position: absolute; bottom: 3px; right: 5px; font-style: normal; font-size: .65rem; font-weight: 900; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .hl { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } .hl img { width: 100%; aspect-ratio: 1; object-fit: cover; } .hl figcaption { padding: 6px 8px; font-size: .85rem; }
.avgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; } .avb { background: none; border: 2px solid transparent; border-radius: 50%; padding: 2px; cursor: pointer; } .avb.on { border-color: var(--teal); }
.gstep { animation: popin .5s both; }
.cpost { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.nbadge { position: absolute; top: 2px; right: 18%; background: #D2544B; color: #fff; font-size: .65rem; font-weight: 900; border-radius: 999px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; } .nbadge[hidden] { display: none; }
/* music island */
.island { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.isl-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: #0F1324; color: #fff; border: 0; border-radius: 999px; padding: 6px 14px 6px 10px; font: 800 .8rem var(--sans, sans-serif); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; transition: all .35s cubic-bezier(.2,.8,.2,1); max-width: 220px; }
.isl-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isl-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; } .isl-eq i { width: 3px; height: 4px; background: #A8E6CF; border-radius: 2px; }
.island.playing .isl-eq i { animation: eq .9s ease-in-out infinite; } .island.playing .isl-eq i:nth-child(2) { animation-delay: .2s; } .island.playing .isl-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 12px; } }
.isl-panel { pointer-events: auto; margin-top: 8px; width: min(380px, calc(100vw - 24px)); background: #0F1324; color: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: popin .3s both; }
.isl-panel[hidden] { display: block !important; visibility: hidden; height: 0; padding: 0; margin: 0; overflow: hidden; }
.isl-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .isl-x { color: #fff; font-size: 1.4rem; }
.isl-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .isl-panel .chip-b { background: #1E2440; color: #fff; border-color: #3a4466; }
.isl-s { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; } .isl-s input { padding: .5rem .7rem; border-radius: 10px; border: 1px solid #3a4466; background: #1E2440; color: #fff; }
.isl-panel summary { cursor: pointer; margin-top: 6px; }
body.noshell .island { display: none; }
.island { top: calc(env(safe-area-inset-top, 0px) + 12px); left: auto; right: 104px; transform: none; align-items: flex-end; }
.isl-pill { padding: 6px 10px; max-width: 46px; } .island.playing .isl-pill { max-width: 170px; }
@media (min-width: 700px) { .island { left: 50%; right: auto; transform: translateX(-50%); align-items: center; } .isl-pill { max-width: 220px; } }
.isl-panel { margin-top: 8px; }
@media (max-width: 699px) { .isl-panel { position: fixed; left: 12px; right: 12px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 58px); } }

/* ======================= POLISH v2: calmer colours, social-media finish ======================= */
:root { --paper: #F7F6F3; --card-shadow: 0 1px 2px rgba(17,22,42,.04), 0 6px 18px rgba(17,22,42,.06); --radius: 20px; --slate: #4F5768; }
:root[data-theme="dark"] { --card-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 22px rgba(0,0,0,.25); --slate: #B4BBD0; }
body { background: var(--paper); }
/* pastel blocks → white cards with a soft coloured accent (keeps the cuteness, loses the noise) */
.block.b-sun, .block.b-sky, .block.b-mint, .block.b-lav, .block.b-coral, .block.b-peach, .block.b-white {
  background: var(--white) !important; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: var(--card-shadow); border-radius: var(--radius); position: relative; overflow: hidden; }
.block.b-sun::before, .block.b-sky::before, .block.b-mint::before, .block.b-lav::before, .block.b-coral::before, .block.b-peach::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.block.b-sun::before { background: #F2C14E; } .block.b-sky::before { background: #6DB5F0; } .block.b-mint::before { background: #4CC3A0; } .block.b-lav::before { background: #8F86F0; } .block.b-coral::before { background: #F07A6A; } .block.b-peach::before { background: #F3A56B; }
:root[data-theme="dark"] .block:is(.b-sun,.b-sky,.b-mint,.b-lav,.b-coral,.b-peach) { --ink: #ECEEF5; --navy: #ECEEF5; --slate: #B4BBD0; --line: #2C3552; color: #ECEEF5 !important; }
/* text that was too faint */
.small.muted, .muted, .small { color: var(--slate); }
.isl-foot { color: #C9CFE3 !important; font-size: .82rem; }
::placeholder { color: #8A90A0; opacity: 1; }
/* the bottom bar and header as frosted glass */
.tabbar { backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); background: rgba(255,255,255,.82); box-shadow: 0 -1px 0 var(--line); }
:root[data-theme="dark"] .tabbar { background: rgba(17,22,42,.82); }
/* entrance animation: every page section rises in, staggered */
.page > * { animation: riseIn .55s cubic-bezier(.2,.8,.2,1) both; }
.page > *:nth-child(2) { animation-delay: .05s; } .page > *:nth-child(3) { animation-delay: .1s; } .page > *:nth-child(4) { animation-delay: .15s; } .page > *:nth-child(5) { animation-delay: .2s; } .page > *:nth-child(6) { animation-delay: .25s; } .page > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.block, .post, .card, .convo, .lbrow { transition: transform .2s ease, box-shadow .2s ease; }
a.block:hover, .post:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,22,42,.1); }
/* Today: floating, gently drifting shortcut bubbles */
.floaters { position: relative; height: 128px; margin: -4px 0 8px; }
.fl { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink); font-weight: 800; font-size: .82rem; animation: floatA 6s ease-in-out infinite; }
.fl .fe { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 1rem; }
.fl:hover { transform: scale(1.06); } .flb { background: #D2544B; color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .7rem; margin-left: 2px; }
.fl0 { left: 0; top: 6px; } .fl1 { left: 28%; top: 0; animation-name: floatB; animation-delay: -1s; } .fl2 { left: 56%; top: 10px; animation-delay: -2s; } .fl3 { right: 0; top: 2px; animation-name: floatB; animation-delay: -3s; }
.fl4 { left: 6%; top: 70px; animation-name: floatB; animation-delay: -1.5s; } .fl5 { left: 36%; top: 64px; animation-delay: -2.5s; } .fl6 { left: 62%; top: 74px; animation-name: floatB; animation-delay: -.5s; } .fl7 { right: 2%; top: 60px; animation-delay: -3.5s; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,-7px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-5px,6px); } }
@media (max-width: 420px) { .fl .ft { display: none; } .fl { padding: 6px; } .floaters { height: 104px; } .fl4 { top: 58px; } .fl5 { top: 52px; } .fl6 { top: 60px; } .fl7 { top: 50px; } }
/* music island v2 */
.isl-tabs { display: flex; gap: 4px; background: #1A2038; border-radius: 999px; padding: 3px; margin-bottom: 8px; }
.isl-tabs button { flex: 1; border: 0; background: none; color: #C9CFE3; font: 800 .8rem var(--sans, sans-serif); padding: .45rem; border-radius: 999px; cursor: pointer; }
.isl-tabs button.on { background: #fff; color: #0F1324; }
.isl-list { display: block; max-height: 230px; overflow-y: auto; margin-bottom: 8px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 12px; } .pl-row:hover { background: #1A2038; }
.pl-play { width: 38px; height: 38px; border-radius: 12px; border: 0; background: #1E2440; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.pl-k.yt { color: #FF4E45; } .pl-k.sp { color: #1ED760; }
.pl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pl-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; } .pl-t span { font-size: .75rem; color: #AEB5CB; display: flex; align-items: center; gap: 4px; }
.pl-rm { color: #AEB5CB; font-size: 1rem; }
.pl-add { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; } .pl-add input { padding: .55rem .75rem; border-radius: 12px; border: 1px solid #3a4466; background: #1E2440; color: #fff; font: 600 .9rem var(--sans, sans-serif); }
/* Eole's music room */
.eroom { position: fixed; left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 110; width: 132px; height: 132px; border-radius: 28px; background: linear-gradient(180deg, #2A2F55 0%, #3B3470 60%, #5B3F6B 100%); box-shadow: 0 14px 34px rgba(17,22,42,.35); overflow: hidden; cursor: pointer; animation: riseIn .5s both; }
.eroom img { position: absolute; left: 50%; bottom: 4px; width: 92px; transform: translateX(-50%); animation: groove 1.1s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.er-win { position: absolute; right: 12px; top: 12px; width: 34px; height: 30px; border-radius: 6px; background: radial-gradient(circle at 70% 30%, #FFF6C9 0 5px, #6D7BD8 6px); box-shadow: inset 0 0 0 2px #F2E6C8; }
.er-lamp { position: absolute; left: 12px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: #FFD966; box-shadow: 0 0 22px 8px rgba(255,217,102,.45); animation: glow 2.4s ease-in-out infinite; }
.eroom .nt { position: absolute; color: #FFD966; font-size: 18px; font-weight: 900; opacity: 0; animation: note 2.4s ease-in infinite; } .eroom .n1 { left: 22px; bottom: 60px; } .eroom .n2 { left: 70px; bottom: 80px; animation-delay: .8s; color: #A8E6CF; } .eroom .n3 { right: 18px; bottom: 56px; animation-delay: 1.6s; }
.er-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 8px; font-size: .62rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.er-x { position: absolute; right: 4px; top: 2px; border: 0; background: none; color: #fff; font-size: 1rem; cursor: pointer; z-index: 2; opacity: .8; }
@keyframes groove { 0%,100% { transform: translateX(-50%) rotate(-4deg) translateY(0); } 50% { transform: translateX(-50%) rotate(4deg) translateY(-4px); } }
@keyframes note { 0% { opacity: 0; transform: translateY(0) scale(.8); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.15) rotate(12deg); } }
@keyframes glow { 0%,100% { box-shadow: 0 0 18px 6px rgba(255,217,102,.35); } 50% { box-shadow: 0 0 28px 12px rgba(255,217,102,.55); } }
body.noshell .eroom { display: none; }
@media (prefers-reduced-motion: reduce) { .fl, .eroom img, .eroom .nt, .page > * { animation: none !important; } }
/* contrast fixes (measured) */
:root[data-theme="dark"] { --solid: #23806D; --tealpale: #183A36; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .b-go { background: #23806D; border-color: #23806D; color: #fff; }
:root[data-theme="dark"] .segtabs a.on, :root[data-theme="dark"] .subnav a.on, :root[data-theme="dark"] .themechoice button[aria-pressed="true"] { color: #fff !important; background: #23806D; }
:root[data-theme="dark"] .btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .lbrow.meh { background: #183A36; }
:root[data-theme="dark"] .predbanner, :root[data-theme="dark"] .predbanner b { color: #F5DFA8 !important; }
:root[data-theme="dark"] .c-teal { background: #7CCBB9 !important; }
:root[data-theme="dark"] .msg.me .mb { background: #23806D; border-color: #23806D; }
:root[data-theme="dark"] .lvchip { background: #23806D; }
.sav { color: #24695C !important; }
.skip:focus { background: #fff; color: #1B2440; }
.island:not(.playing) .isl-eq { display: none; } .island:not(.playing) .isl-pill { padding: 6px 11px; max-width: none; }
/* Atoms pop-up sheet */
.sheet-ov { position: fixed; inset: 0; z-index: 300; background: rgba(17,22,42,0); display: flex; align-items: flex-end; justify-content: center; transition: background .22s; }
.sheet-ov.on { background: rgba(17,22,42,.45); backdrop-filter: blur(2px); }
.sheet { width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: var(--white); color: var(--ink); border-radius: 26px 26px 0 0; padding: 10px 18px calc(env(safe-area-inset-bottom, 0px) + 16px); box-shadow: 0 -12px 40px rgba(17,22,42,.25); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.sheet-ov.on .sheet { transform: none; }
@media (min-width: 700px) { .sheet-ov { align-items: center; } .sheet { border-radius: 26px; padding-bottom: 18px; } }
.sheet-grab { width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 10px; }
.sheet-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .sheet-h img { width: 58px; height: 58px; object-fit: contain; flex: none; } .sheet-h b { font: 700 1.15rem var(--display, sans-serif); } .sheet-h p { margin: 2px 0 0; font-size: .9rem; color: var(--slate); }
.sheet-in { width: 100%; padding: .8rem .9rem; border-radius: 16px; border: 1px solid var(--line); font: 600 1rem var(--sans, sans-serif); background: var(--paper); color: var(--ink); resize: vertical; }
.sheet-in.shake { animation: shake .35s; } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sheet-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.sheet-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; } .sheet-opts.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.sheet-o { display: flex; align-items: center; gap: 10px; text-align: left; padding: .8rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 800 .98rem var(--sans, sans-serif); cursor: pointer; transition: transform .15s, background .15s; }
.sheet-o:hover { transform: translateY(-1px); background: var(--paper); } .sheet-o small { display: block; font-weight: 700; color: var(--slate); font-size: .78rem; }
.sheet-o .so-i { width: 34px; height: 34px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.sheet-o.primary { background: var(--solid); color: #fff; border-color: var(--solid); justify-content: center; } .sheet-o.primary .so-i { background: rgba(255,255,255,.18); }
.sheet-o.danger { background: #D2544B; color: #fff; border-color: #D2544B; justify-content: center; }
.sheet-cancel { display: block; width: 100%; margin-top: 10px; padding: .75rem; border: 0; background: none; color: var(--slate); font: 800 .95rem var(--sans, sans-serif); cursor: pointer; }
.chat > * { flex: none; } .chat-tools { min-height: 42px; padding: 3px 0; align-items: center; }
.chat-in { position: static; bottom: auto; } .chat .msgs { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; }
/* chat: messages fill the screen, input pinned above the bottom bar (like real messengers) */
.chat { padding-bottom: 76px; }
.chat .msgs { max-height: none; height: calc(100dvh - 430px); min-height: 220px; }
.chat-in { position: fixed !important; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 20px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); z-index: 60; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 10px; box-shadow: 0 10px 30px rgba(17,22,42,.14); }
.chat-in input[name=t] { border: 0; background: transparent; padding: .55rem .4rem; }
.emo-p { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 132px); z-index: 61; width: min(680px, calc(100% - 20px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 10px 30px rgba(17,22,42,.14); }
.emo-p[hidden] { display: none; }
.chat-note { margin-top: 6px; }
@media (min-width: 900px) { .chat-in, .emo-p { bottom: 24px; } .emo-p { bottom: 84px; } }
.chat .msgs { height: calc(100dvh - 475px); }
.acc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; font: 700 1rem var(--sans, sans-serif); cursor: pointer; text-align: left; }
.acc-row span { width: 34px; height: 34px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; } .acc-row b { flex: 1; font-weight: 800; } .acc-row i { font-style: normal; color: var(--slate); font-size: 1.3rem; }
.acc-row.danger b { color: #C0392B; } :root[data-theme="dark"] .acc-row.danger b { color: #F07A70; }
.founder-box { background: linear-gradient(135deg, #FFF3D6, #FFFFFF); border: 1px solid #E9A92A; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; } :root[data-theme="dark"] .founder-box { background: #3A2F14; }
.blk, .chat-blk { color: var(--slate); margin-right: 6px; } .chat-blk { margin-left: 8px; }

/* ===== UX pass (uxdesign.md) ===== */
/* accessibility: visible focus, comfortable targets */
:focus-visible { outline: 3px solid #2F7F70; outline-offset: 2px; border-radius: 8px; }
:root[data-theme="dark"] :focus-visible { outline-color: #7FD4C2; }
.btn, .sheet-o, .chip-b, .acc-row, .tabbar a, .segtabs a, .subnav a { min-height: 44px; }
.btn.sm, .btn-sm { min-height: 38px; }
/* one primary action */
.primary-next { border: 1.5px solid var(--solid) !important; }
.primary-next h2 { margin: 2px 0 4px; font-size: 1.35rem; }
.pbar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; } .pbar i { display: block; height: 100%; background: var(--solid); border-radius: 8px; }
.savestate { text-align: center; margin: 14px 4px 4px; }
.freehalf b { font-family: var(--display, sans-serif); }
/* visitor feed */
.visitor { border: 1.5px dashed var(--solid) !important; }
.gpost { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 14px; margin: 12px 0; box-shadow: var(--card-shadow); }
.gpost header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gpost p { margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.gpost img, .gpost video { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; margin-top: 6px; cursor: zoom-in; display: block; }
.gpost footer { display: flex; gap: 16px; margin-top: 8px; } .gpost footer a { text-decoration: none; color: var(--slate); font-weight: 800; } .gpost footer .join { margin-left: auto; color: var(--solid); }
/* full-screen photo viewer */
.lbx { position: fixed; inset: 0; z-index: 400; background: rgba(8,10,20,0); display: grid; place-items: center; transition: background .2s; touch-action: pinch-zoom; }
.lbx.on { background: rgba(8,10,20,.94); }
.lbx img { max-width: 100vw; max-height: 86vh; object-fit: contain; transform: scale(.94); opacity: 0; transition: transform .22s, opacity .22s; }
.lbx.on img { transform: none; opacity: 1; }
.lbx-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lbx-open { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); left: 50%; transform: translateX(-50%); color: #fff; font-weight: 800; text-decoration: none; background: rgba(255,255,255,.14); padding: .55rem 1rem; border-radius: 999px; }
.msg .mimg, .post img, .hl img { cursor: zoom-in; }
.msg .mimg { width: min(240px, 62vw); height: auto; max-height: 320px; object-fit: cover; }
/* dark mode: light-background blocks always get dark, readable text */
:root[data-theme="dark"] .onlight { --ink: #1B2440; --navy: #1B2440; --slate: #3E4558; --line: rgba(27,36,64,.18); color: #1B2440 !important; }
:root[data-theme="dark"] .onlight :where(p, li, td, th, span, b, strong, em, i, small, label, h1, h2, h3, h4, div, .muted, .small, .callout-h, .prose) { color: #1B2440 !important; }
:root[data-theme="dark"] .onlight a { color: #1F6B5D !important; }
:root[data-theme="dark"] .onlight :where(.btn-primary, .btn-primary *, .sheet-o.primary, .sheet-o.primary *) { color: #fff !important; }
:root[data-theme="dark"] .onlight .ondark, :root[data-theme="dark"] .onlight .ondark * { color: #fff !important; }
:root[data-theme="dark"] button.onlight, :root[data-theme="dark"] button.onlight * { color: #1B2440 !important; }
:root[data-theme="dark"] :is(.stage-U, .stage-R, .stage-E, .stage-C) { color: #1B2440 !important; }

/* ===== Social ⇄ Grind switch ===== */
.modesw { position: relative; display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 0 auto 0 10px; }
.modesw button { position: relative; z-index: 1; border: 0; background: none; font: 800 .82rem var(--sans, sans-serif); color: var(--slate); padding: .42rem .8rem; border-radius: 999px; cursor: pointer; min-height: 34px; transition: color .25s; }
.modesw button[aria-pressed="true"] { color: #fff; }
.modesw .msl { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--solid); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
:root[data-mode="social"] .modesw .msl { transform: translateX(100%); background: linear-gradient(135deg, #E9578A, #8F86F0); }
@media (max-width: 420px) { .modesw button { padding: .4rem .55rem; font-size: .76rem; } .brand .bt small { display: none; } }
/* bottom bar & top nav items (both modes) */
/* A12: the bottom bar exists only below the desktop breakpoint (app.css hides it at 900px+) */ .tabbar { display: flex; } @media (min-width: 900px) { .tabbar { display: none !important; } } .tabbar .navx { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; text-decoration: none; color: var(--slate); font: 800 .7rem var(--sans, sans-serif); position: relative; }
.tabbar .navx .nxi { font-size: 1.25rem; line-height: 1; filter: grayscale(.6); opacity: .8; transition: transform .2s; }
.tabbar .navx.on { color: var(--ink); } .tabbar .navx.on .nxi { filter: none; opacity: 1; transform: translateY(-2px) scale(1.12); }
.tabbar .navx.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--solid); }
.topnav .navx { text-decoration: none; color: var(--slate); font-weight: 800; padding: .45rem .7rem; border-radius: 999px; } .topnav .navx .nxi { margin-right: 4px; } .topnav .navx.on { background: var(--tealpale, #E3F2EE); color: var(--ink); }
:root[data-mode="social"] .tabbar .navx.on::before { background: linear-gradient(90deg, #E9578A, #8F86F0); }
/* ===== Grow ===== */
.lvpill { background: var(--solid); color: #fff; font-weight: 900; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.qrow .qi { width: 34px; height: 34px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex: none; } .qrow .qx { margin-left: auto; font-size: .75rem; font-weight: 900; color: var(--slate); }
.qrow.ok { opacity: .7; } .qrow.ok .qi { background: var(--solid); color: #fff; font-weight: 900; } .qrow.ok span:nth-child(2) { text-decoration: line-through; }
.gtabs { overflow-x: auto; flex-wrap: nowrap; }
.intent { display: flex; align-items: center; gap: 10px; margin: 8px 0; } .intent input[type=text], .grow textarea, .grow input:not([type]), .grow select { flex: 1; width: 100%; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 1rem var(--sans, sans-serif); }
.intent input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--solid); }
.habit { padding: 10px 0; border-top: 1px solid var(--line); } .hh { display: flex; align-items: center; gap: 8px; } .hh .he { font-size: 1.3rem; } .hh b { flex: 1; } .hh .hs { font-weight: 900; font-size: .85rem; }
.hdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.hd { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 900; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; } .hd small { font-size: .62rem; color: var(--slate); }
.hd.on { background: var(--solid); color: #fff; border-color: var(--solid); } .hd.on small { color: rgba(255,255,255,.8); } .hd.td { box-shadow: 0 0 0 2px var(--gold, #E9A92A); }
.moods { display: flex; gap: 8px; margin: 6px 0 12px; } .moods button { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; } .moods button[aria-pressed="true"] { border-color: var(--solid); box-shadow: 0 0 0 3px var(--tealpale, #E3F2EE); transform: scale(1.08); }
.jpast summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.dtools { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.dboard { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; touch-action: none; box-shadow: inset 0 0 0 6px rgba(255,255,255,.4); }
.dcard { position: absolute; max-width: 44%; padding: 12px 14px; border-radius: 18px; font: 800 .95rem var(--sans, sans-serif); box-shadow: 0 8px 22px rgba(17,22,42,.16); cursor: grab; user-select: none; display: flex; flex-direction: column; gap: 4px; }
.dcard.drag { cursor: grabbing; transform: scale(1.05) rotate(-1deg); z-index: 5; } .dcard small { font-size: .65rem; font-weight: 900; opacity: .8; }
.dcard.d-sticker { box-shadow: none; padding: 0; } .dst { font-size: 3.2rem; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.dcard.d-photo { padding: 6px; background: #fff !important; } .dcard.d-photo img { width: 100%; max-width: 160px; border-radius: 10px; pointer-events: none; }
.dx { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1B2440; color: #fff; font-size: .9rem; cursor: pointer; opacity: 0; transition: opacity .2s; } .dcard:hover .dx, .dcard:focus-within .dx { opacity: 1; } @media (hover: none) { .dx { opacity: .85; } }
.dempty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--slate); font-weight: 700; }
.icanvas { width: 100%; max-width: 420px; display: block; margin: 12px auto 0; border-radius: 18px; box-shadow: var(--card-shadow); }
.bdl { background: var(--solid); color: #fff; font-size: .7rem; font-weight: 900; padding: .15rem .45rem; border-radius: 999px; vertical-align: middle; } .bhint { margin: 4px 0 0; }
.skinpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; } .skinpick button { display: flex; align-items: center; gap: 8px; padding: .55rem .7rem; border-radius: 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 800 .85rem var(--sans, sans-serif); cursor: pointer; min-height: 44px; }
.skinpick button[aria-pressed="true"] { border-color: var(--solid); box-shadow: 0 0 0 3px var(--tealpale, #E3F2EE); } .sk { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.sk-classic { background: #E3F2EE; } .sk-dreampink { background: #FFD1E8; } .sk-blocks { background: #9BD36A; border-radius: 4px; } .sk-storm { background: linear-gradient(135deg, #6A5AE0, #2FD3E8); } .sk-halloween { background: #2A1B3D; }

/* ===== Themes (inspired palettes, original designs) ===== */
:root[data-skin="dreampink"] { --paper: #FFF4FA; --solid: #E0457B; --teal: #E0457B; --tealpale: #FFE0EE; --line: #F6D3E3; --gold: #FF9EC7; }
:root[data-skin="dreampink"] body { background: radial-gradient(circle at 10% 0%, #FFE3F1 0, transparent 40%), radial-gradient(circle at 90% 20%, #F3E2FF 0, transparent 35%), var(--paper); }
:root[data-skin="dreampink"] h1, :root[data-skin="dreampink"] h2 { color: #B0275C; }
:root[data-skin="dreampink"] .block, :root[data-skin="dreampink"] .btn { border-radius: 26px; }
:root[data-skin="blocks"] { --paper: #EAF4DF; --solid: #3E8E2F; --teal: #3E8E2F; --tealpale: #D7EDC6; --line: #B7D59C; --gold: #C98F3B; --radius: 6px; }
:root[data-skin="blocks"] body { background-color: var(--paper); background-image: linear-gradient(rgba(62,142,47,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(62,142,47,.07) 1px, transparent 1px); background-size: 24px 24px; }
:root[data-skin="blocks"] :is(.block, .btn, .sheet, .sheet-o, .chip-b, .segtabs, .segtabs a, .subnav a, .fl, .isl-pill, .modesw, .modesw button, .modesw .msl) { border-radius: 6px !important; }
:root[data-skin="blocks"] :is(h1, h2, .brand .bt) { font-family: ui-monospace, 'Courier New', monospace; letter-spacing: -.02em; }
:root[data-skin="blocks"] .block { box-shadow: 4px 4px 0 rgba(62,90,40,.25) !important; border: 2px solid #8BBF63 !important; }
:root[data-skin="storm"] { --paper: #F1F0FF; --solid: #5B3FD9; --teal: #5B3FD9; --tealpale: #E4DFFF; --line: #D6D0FA; --gold: #2FD3E8; }
:root[data-skin="storm"] body { background: linear-gradient(160deg, #F1F0FF 0%, #E6F8FF 100%) fixed; }
:root[data-skin="storm"] :is(h1, h2) { font-style: italic; text-transform: uppercase; letter-spacing: .01em; color: #3A23A8; }
:root[data-skin="storm"] .btn-primary { background: linear-gradient(135deg, #5B3FD9, #2F8FE8); box-shadow: 0 6px 18px rgba(91,63,217,.35); }
:root[data-skin="storm"] .block { box-shadow: 0 8px 26px rgba(91,63,217,.12) !important; }
:root[data-skin="halloween"] { --paper: #1A1424; --white: #251B33; --card: #251B33; --ink: #F6EEDB; --navy: #F6EEDB; --slate: #CDBFE0; --line: #3C2D52; --solid: #E8761E; --teal: #E8761E; --tealpale: #3A2414; --gold: #B57CF0; color-scheme: dark; }
:root[data-skin="halloween"] body { background: radial-gradient(circle at 85% 0%, rgba(232,118,30,.18) 0, transparent 35%), var(--paper); color: var(--ink); }
:root[data-skin="halloween"] .top, :root[data-skin="halloween"] .tabbar { background: rgba(26,20,36,.9) !important; }
:root[data-skin="halloween"] .brand .bt::after { content: ' 🎃'; }
:root[data-skin="halloween"] :is(input, textarea, select) { background: #1A1424; color: var(--ink); border-color: var(--line); }

/* Halloween is a dark theme: same readability safeguard */
:root[data-skin="halloween"] .onlight { --ink: #1B2440; --navy: #1B2440; --slate: #3E4558; --line: rgba(27,36,64,.18); color: #1B2440 !important; }
:root[data-skin="halloween"] .onlight :where(p, li, td, th, span, b, strong, em, i, small, label, h1, h2, h3, h4, div, .muted, .small, .callout-h, .prose) { color: #1B2440 !important; }
:root[data-skin="halloween"] .onlight a { color: #1F6B5D !important; }
:root[data-skin="halloween"] .onlight :where(.btn-primary, .btn-primary *, .sheet-o.primary, .sheet-o.primary *) { color: #fff !important; }
:root[data-skin="halloween"] .onlight .ondark, :root[data-skin="halloween"] .onlight .ondark * { color: #fff !important; }
:root[data-skin="halloween"] button.onlight, :root[data-skin="halloween"] button.onlight * { color: #1B2440 !important; }
/* header layout with the mode switch: logo · switch · music · focus */
@media (max-width: 520px) {
  .top .brand .bt { display: none; }
  .modesw { margin-left: 6px; }
  .island { right: 84px; top: calc(env(safe-area-inset-top, 0px) + 13px); }
  #focusbtn { padding-inline: .7rem; }
}
@media (max-width: 520px) { .island { right: 92px; } }

/* ===== Play: Explore, profiles, badges, duels, bosses, seasons ===== */
.xchal { border: 1.5px solid var(--solid) !important; }
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; }
.xtile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.xtile img { width: 100%; height: 100%; object-fit: cover; } .xtile span { padding: 8px; font-size: .78rem; font-weight: 700; text-align: center; } .xtile i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: .7rem; font-weight: 900; color: #fff; background: rgba(0,0,0,.45); border-radius: 999px; padding: 1px 6px; }
.xpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
.xperson { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 18px; } .xperson a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); } .xperson small { color: var(--slate); min-height: 1.2em; }
.rkchip { font-size: .8rem; } .gpost .pa { text-decoration: none; color: inherit; }
.uprof .uhead { display: flex; gap: 16px; align-items: center; margin: 6px 0 12px; } .uprof h1 { font-size: 1.5rem; margin: 0; }
.uchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .uchips span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-weight: 800; font-size: .8rem; }
.ustats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 10px 0; margin-bottom: 10px; } .ustats b { display: block; font: 700 1.3rem var(--display, sans-serif); } .ustats small { color: var(--slate); font-weight: 700; }
.ubio { margin: 6px 2px; } .uhob { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .uhob span { background: var(--tealpale, #E3F2EE); color: var(--ink); border-radius: 999px; padding: .2rem .65rem; font-weight: 800; font-size: .8rem; }
.uact { margin: 10px 0 4px; } .uh2 { margin: 18px 2px 8px; font-size: 1.15rem; }
.bwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 16px; border: 1px dashed var(--line); opacity: .45; filter: grayscale(1); } .bdg span { font-size: 1.7rem; } .bdg b { font-size: .75rem; } .bdg small { font-size: .62rem; color: var(--slate); line-height: 1.2; }
.bdg.on { opacity: 1; filter: none; border: 1px solid var(--gold, #E9A92A); background: linear-gradient(180deg, #FFF8E5, var(--white)); box-shadow: 0 6px 16px rgba(233,169,42,.18); }
:root[data-theme="dark"] .bdg.on { background: #2D2614; }
.seasonmini { display: flex !important; align-items: center; gap: 12px; text-decoration: none; color: inherit; } .seasonmini .srk { font-size: 2rem; }
.season-me .srank { font: 700 2rem var(--display, sans-serif); margin: 4px 0; }
.bosses .boss { border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 10px 0; background: linear-gradient(135deg, rgba(210,84,75,.06), transparent); }
.boss .bh { display: flex; gap: 10px; align-items: center; } .bico { font-size: 2rem; animation: bossbob 2.4s ease-in-out infinite; } .bhp { color: #C0392B; }
.hpbar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 10px; } .hpbar i { display: block; height: 100%; background: linear-gradient(90deg, #E9578A, #D2544B); border-radius: 999px; transition: width .6s; }
.boss.down { background: linear-gradient(135deg, rgba(47,127,112,.1), transparent); } .boss.down .bhp { color: var(--solid); }
@keyframes bossbob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.sq .sqstreak { font: 700 1.2rem var(--display, sans-serif); } .sqm { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; } .sqmem { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--slate); opacity: .55; } .sqmem.on { opacity: 1; color: var(--ink); } .sqcode { letter-spacing: .12em; }
.duel .dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .dsc { font: 700 1.2rem var(--display, sans-serif); }
.dqq { font-size: 1.1rem; font-weight: 700; margin: 8px 0 12px; } .drow { display: flex; gap: 8px; } .drow input { flex: 1; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); font: 600 1rem var(--sans, sans-serif); background: var(--paper); color: var(--ink); } .dfb { min-height: 1.4em; margin-top: 8px; }
.teach { margin-left: 8px; } .myprof { display: block; text-decoration: none; color: inherit; }
.sguide h4 { margin: 12px 0 4px; font-family: var(--display, sans-serif); } .sguide ul, .sguide ol { padding-left: 1.2em; } .sgnote { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }

/* dark themes share the readability safeguard */
:root[data-skindark="1"] .onlight { --ink: #1B2440; --navy: #1B2440; --slate: #3E4558; --line: rgba(27,36,64,.18); color: #1B2440 !important; }
:root[data-skindark="1"] .onlight :where(p, li, td, th, span, b, strong, em, i, small, label, h1, h2, h3, h4, div, .muted, .small, .callout-h, .prose) { color: #1B2440 !important; }
:root[data-skindark="1"] .onlight a { color: #1F6B5D !important; }
:root[data-skindark="1"] .onlight :where(.btn-primary, .btn-primary *, .sheet-o.primary, .sheet-o.primary *) { color: #fff !important; }
:root[data-skindark="1"] .onlight .ondark, :root[data-skindark="1"] .onlight .ondark * { color: #fff !important; }
:root[data-skindark="1"] button.onlight, :root[data-skindark="1"] button.onlight * { color: #1B2440 !important; }

/* ===== Themes v2 (original designs inspired by popular worlds; no logos, characters or likenesses) ===== */
.sk-webhero { background: linear-gradient(135deg, #D62828 50%, #1D4ED8 50%); } .sk-nightguard { background: #121212; } .sk-bollywood { background: linear-gradient(135deg, #C2185B, #FF9F1C); } .sk-football { background: repeating-linear-gradient(90deg, #2E8B3E 0 8px, #37A04A 8px 16px); } .sk-upside { background: #0B0B12; box-shadow: inset 0 0 0 2px #E0261C; } .sk-reggae { background: linear-gradient(180deg, #D62828 33%, #F5C518 33% 66%, #2E8B3E 66%); } .sk-music { background: linear-gradient(135deg, #7B2FF7, #F107A3); }
/* Web Hero: red & blue, web lines, bold italic titles */
:root[data-skin="webhero"] { --paper: #F4F6FF; --solid: #D62828; --teal: #D62828; --tealpale: #FFE1E1; --line: #D6DCF5; --gold: #1D4ED8; }
:root[data-skin="webhero"] body { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%231D4ED8' stroke-opacity='.10' stroke-width='1.5'%3E%3Cpath d='M0 0L240 240M240 0L0 240M120 0V240M0 120H240'/%3E%3Ccircle cx='120' cy='120' r='30'/%3E%3Ccircle cx='120' cy='120' r='60'/%3E%3Ccircle cx='120' cy='120' r='95'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-skin="webhero"] :is(h1, h2) { font-style: italic; color: #B71C1C; letter-spacing: -.01em; }
:root[data-skin="webhero"] .btn-primary { background: linear-gradient(135deg, #D62828, #A51515); border-color: #A51515; }
:root[data-skin="webhero"] .block { border-top: 3px solid #1D4ED8 !important; }
:root[data-skin="webhero"] .brand .bt::after { content: ' 🕸️'; }
/* Night Guardian: charcoal & signal gold, spotlight, bat pattern */
:root[data-skin="nightguard"] { --paper: #0F1012; --white: #1A1B1F; --card: #1A1B1F; --ink: #EDEDED; --navy: #EDEDED; --slate: #B9B9B9; --line: #2C2D33; --solid: #C9A227; --teal: #F5C518; --tealpale: #2A2512; --gold: #F5C518; color-scheme: dark; }
:root[data-skin="nightguard"] body { background: radial-gradient(ellipse at 80% -10%, rgba(245,197,24,.22) 0, transparent 45%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120'%3E%3Cpath d='M90 52c-6-10-16-12-24-8 4 2 6 6 5 10-6-4-14-2-18 4 6 0 10 3 11 8 8-6 18-6 26 2 8-8 18-8 26-2 1-5 5-8 11-8-4-6-12-8-18-4-1-4 1-8 5-10-8-4-18-2-24 8z' fill='%23F5C518' fill-opacity='.05'/%3E%3C/svg%3E"), var(--paper); color: var(--ink); }
:root[data-skin="nightguard"] .top, :root[data-skin="nightguard"] .tabbar { background: rgba(15,16,18,.92) !important; }
:root[data-skin="nightguard"] :is(h1, h2) { color: #F5C518; text-transform: uppercase; letter-spacing: .04em; }
:root[data-skin="nightguard"] .btn-primary { background: #F5C518; border-color: #F5C518; color: #111 !important; }
:root[data-skin="nightguard"] :is(input, textarea, select) { background: #0F1012; color: var(--ink); border-color: var(--line); }
:root[data-skin="nightguard"] .brand .bt::after { content: ' 🦇'; }
/* Bollywood: magenta, marigold, gold borders, mandala dots */
:root[data-skin="bollywood"] { --paper: #FFF6EC; --solid: #C2185B; --teal: #C2185B; --tealpale: #FFE0EC; --line: #F3D3B0; --gold: #FF9F1C; }
:root[data-skin="bollywood"] body { background-color: var(--paper); background-image: radial-gradient(circle at 20px 20px, rgba(255,159,28,.18) 3px, transparent 4px), radial-gradient(circle at 60px 60px, rgba(194,24,91,.12) 2px, transparent 3px); background-size: 80px 80px; }
:root[data-skin="bollywood"] :is(h1, h2) { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #A0124A; }
:root[data-skin="bollywood"] .block { border: 1.5px solid #E9B44C !important; box-shadow: 0 0 0 4px rgba(255,159,28,.12), 0 8px 22px rgba(194,24,91,.10) !important; }
:root[data-skin="bollywood"] .btn-primary { background: linear-gradient(135deg, #C2185B, #FF6F00); border-color: #C2185B; }
:root[data-skin="bollywood"] .brand .bt::after { content: ' 💃✨'; }
/* Football: striped pitch, chalk lines, scoreboard titles */
:root[data-skin="football"] { --paper: #EAF6EC; --solid: #1E7B34; --teal: #1E7B34; --tealpale: #D3EFD9; --line: #BFE0C6; --gold: #FFFFFF; }
:root[data-skin="football"] body { background: repeating-linear-gradient(180deg, #E5F4E8 0 70px, #DCEFE0 70px 140px); }
:root[data-skin="football"] :is(h1, h2) { font-family: ui-monospace, 'Courier New', monospace; text-transform: uppercase; letter-spacing: .03em; color: #145524; }
:root[data-skin="football"] .block { border-left: 4px solid #fff !important; box-shadow: 0 6px 18px rgba(20,85,36,.12) !important; }
:root[data-skin="football"] .top::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 64px; height: 32px; margin-left: -32px; border: 2px solid rgba(30,123,52,.35); border-bottom: 0; border-radius: 64px 64px 0 0; pointer-events: none; }
:root[data-skin="football"] .brand .bt::after { content: ' ⚽'; }
/* Upside World: dark, neon-red glowing serif titles, string lights, floating particles */
:root[data-skin="upside"] { --paper: #0B0B12; --white: #15131D; --card: #15131D; --ink: #F2E9E4; --navy: #F2E9E4; --slate: #BDB2C9; --line: #2B2236; --solid: #C81E1E; --teal: #E0261C; --tealpale: #2A1214; --gold: #FF4D3D; color-scheme: dark; }
:root[data-skin="upside"] body { background: radial-gradient(circle at 15% 25%, rgba(224,38,28,.10) 0, transparent 30%), radial-gradient(circle at 85% 70%, rgba(120,60,200,.10) 0, transparent 35%), var(--paper); color: var(--ink); }
:root[data-skin="upside"] :is(h1, h2) { font-family: Georgia, 'Times New Roman', serif; color: #FF3B2F; text-shadow: 0 0 6px rgba(255,59,47,.7), 0 0 18px rgba(255,59,47,.35); letter-spacing: .02em; }
:root[data-skin="upside"] .top, :root[data-skin="upside"] .tabbar { background: rgba(11,11,18,.92) !important; }
:root[data-skin="upside"] .top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; pointer-events: none; background: radial-gradient(circle, #FF3B2F 2.5px, transparent 3px) 0 0 / 34px 8px, radial-gradient(circle, #FFD23F 2.5px, transparent 3px) 11px 0 / 34px 8px, radial-gradient(circle, #3BA7FF 2.5px, transparent 3px) 22px 0 / 34px 8px; animation: lights 1.6s steps(2) infinite; }
@keyframes lights { 50% { opacity: .45; } }
:root[data-skin="upside"] :is(input, textarea, select) { background: #0B0B12; color: var(--ink); border-color: var(--line); }
:root[data-skin="upside"] .brand .bt::after { content: ' 🔦'; }
/* Reggae Roots: red-gold-green bands, warm earth, leaves */
:root[data-skin="reggae"] { --paper: #FFF8E7; --solid: #2E7D32; --teal: #2E7D32; --tealpale: #E3F1DD; --line: #EAD9B0; --gold: #F5C518; }
:root[data-skin="reggae"] body { background: radial-gradient(circle at 90% 10%, rgba(46,125,50,.10) 0, transparent 30%), var(--paper); }
:root[data-skin="reggae"] .top { box-shadow: inset 0 -6px 0 #2E7D32, inset 0 -12px 0 #F5C518, inset 0 -18px 0 #D62828; }
:root[data-skin="reggae"] :is(h1, h2) { color: #1E5E22; }
:root[data-skin="reggae"] .block { border-left: 5px solid #F5C518 !important; }
:root[data-skin="reggae"] .btn-primary { background: linear-gradient(90deg, #D62828, #E9A400 50%, #2E7D32); border-color: #2E7D32; }
:root[data-skin="reggae"] .brand .bt::after { content: ' 🦁🌿'; }
/* Music Lover: purple-pink, vinyl, equaliser */
:root[data-skin="music"] { --paper: #F7F1FF; --solid: #7B2FF7; --teal: #7B2FF7; --tealpale: #EDE1FF; --line: #E2D3FA; --gold: #F107A3; }
:root[data-skin="music"] body { background: radial-gradient(circle at 105% 105%, #1B1426 0 90px, #2A2236 91px 93px, #1B1426 94px 130px, #2A2236 131px 133px, #1B1426 134px 170px, transparent 171px) fixed, var(--paper); }
:root[data-skin="music"] :is(h1, h2) { background: linear-gradient(90deg, #7B2FF7, #F107A3); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-skin="music"] .btn-primary { background: linear-gradient(135deg, #7B2FF7, #F107A3); border-color: #7B2FF7; }
:root[data-skin="music"] .top::after { content: ''; position: absolute; right: 16px; bottom: 4px; width: 26px; height: 14px; pointer-events: none; background: linear-gradient(#F107A3, #7B2FF7) 0 100% / 4px 60% no-repeat, linear-gradient(#F107A3, #7B2FF7) 7px 100% / 4px 100% no-repeat, linear-gradient(#F107A3, #7B2FF7) 14px 100% / 4px 40% no-repeat, linear-gradient(#F107A3, #7B2FF7) 21px 100% / 4px 80% no-repeat; animation: eqb 1s ease-in-out infinite alternate; }
@keyframes eqb { to { transform: scaleY(.6); transform-origin: bottom; } }
:root[data-skin="music"] .brand .bt::after { content: ' 🎶'; }
/* ===== Studio & articles ===== */
.cfab { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 120; width: 56px; height: 56px; border-radius: 50%; border: 0; color: #fff; font-size: 1.8rem; font-weight: 300; background: linear-gradient(135deg, #E9578A, #8F86F0); box-shadow: 0 10px 26px rgba(143,134,240,.45); cursor: pointer; transition: transform .2s; }
.cfab:active { transform: scale(.92); } :root:not([data-mode="social"]) .cfab, body.noshell .cfab { display: none; } @media (min-width: 900px) { .cfab { bottom: 28px; right: 28px; } }
.studio .spick { text-align: center; padding: 30px 10px; border: 2px dashed var(--line); border-radius: 22px; background: var(--white); margin-bottom: 12px; }
.scar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px; scrollbar-width: none; } .scar::-webkit-scrollbar { display: none; }
.sslide { flex: 0 0 100%; scroll-snap-align: center; } .sframe { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: #000; touch-action: pan-x; }
.sframe img { width: 100%; height: 100%; object-fit: cover; } .sframe.pol { background: #FFFDF8; padding: 5% 5% 20%; } .sframe.pol img { border-radius: 4px; }
.fbadge { position: absolute; left: 10px; top: 10px; font: 800 .7rem var(--sans, sans-serif); color: #fff; background: rgba(0,0,0,.35); border-radius: 999px; padding: 2px 8px; } .fbadge:empty { display: none; }
.sitem { position: absolute; cursor: grab; touch-action: none; user-select: none; font: 900 1.4rem var(--sans, sans-serif); text-shadow: 0 2px 8px rgba(0,0,0,.5); white-space: nowrap; } .sitem.stk { font-size: 2.6rem; text-shadow: none; }
.sdots, .fcd { display: flex; justify-content: center; gap: 5px; margin: 8px 0; } .sdots i, .fcd i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: all .2s; } .sdots i.on, .fcd i.on { width: 18px; border-radius: 6px; background: var(--solid); }
.stools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 4px 0 10px; }
.sfilters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; } .sfb { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; font: 800 .7rem var(--sans, sans-serif); color: var(--slate); cursor: pointer; scroll-snap-align: start; }
.sfb span { width: 64px; height: 80px; border-radius: 14px; background-size: cover; background-position: center; border: 2px solid transparent; } .sfb.on { color: var(--ink); } .sfb.on span { border-color: var(--solid); }
.scap, .awrite .abin, .awrite .atin, .awrite .atag { width: 100%; padding: .8rem .95rem; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 600 1rem var(--sans, sans-serif); margin: 8px 0; }
.fcar { position: relative; margin-top: 8px; } .fct { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; scrollbar-width: none; scroll-behavior: smooth; } .fct::-webkit-scrollbar { display: none; }
.fcs { flex: 0 0 100%; scroll-snap-align: center; } .fcs img { width: 100% !important; max-height: 520px; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; }
.fcn { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.5); color: #fff; font: 800 .72rem var(--sans, sans-serif); padding: 2px 8px; border-radius: 999px; }
p.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; } p.clamp.open { display: block; -webkit-line-clamp: unset; }
.acard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 12px 0; text-decoration: none; color: var(--ink); box-shadow: var(--card-shadow); }
.acard img, .acover0 { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; } .acover0 { display: grid; place-items: center; font-size: 2.4rem; background: linear-gradient(135deg, var(--tealpale, #E3F2EE), var(--paper)); }
.abody { padding: 12px 14px 14px; } .abody b { font: 700 1.2rem var(--display, sans-serif); } .abody p { color: var(--slate); margin: 4px 0 8px; } .ameta { display: flex; align-items: center; gap: 6px; }
.aread { max-width: 720px; } .ahero { width: 100%; border-radius: 22px; margin: 8px 0 14px; max-height: 420px; object-fit: cover; } .atitle { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; margin: 4px 0 10px; }
.aby { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 14px; }
.atext { font-size: 1.08rem; line-height: 1.75; } .atext h3 { margin: 22px 0 6px; font-family: var(--display, sans-serif); } .atext blockquote { margin: 14px 0; padding: 8px 14px; border-left: 4px solid var(--solid); background: var(--white); border-radius: 0 12px 12px 0; font-style: italic; }
.aact { margin: 18px 0 30px; } .acoverpick { display: block; cursor: pointer; } .acp { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 18px; background: var(--white); color: var(--slate); font-weight: 800; overflow: hidden; } .acp img { width: 100%; max-height: 260px; object-fit: cover; }
.awrite .atin { font: 700 1.5rem var(--display, sans-serif); } .awrite .abin { min-height: 320px; line-height: 1.7; resize: vertical; }
.tsheet .tsbox { display: flex; justify-content: center; min-height: 70px; margin: 8px 0; }
/* studio: live filter overlays */
.sframe .ov { position: absolute; inset: 0; pointer-events: none; }
.ov-glow { background: radial-gradient(circle, transparent 35%, rgba(255,214,170,.35)); } .ov-night { background: rgba(40,40,140,.28); }
.ov-focus { background: radial-gradient(circle, transparent 40%, rgba(0,0,0,.55)); } .ov-sunset { background: linear-gradient(180deg, rgba(255,140,90,.28), rgba(160,60,200,.22)); }
.ov-grain { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: screen; }
.sframe .ovt { position: absolute; font: 800 1rem var(--sans, sans-serif); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; }
.ovt.tr { right: 4%; top: 4%; color: #E9E6FF; } .ovt.bl { left: 5%; bottom: 5%; color: #FFF4E2; } .ovt.bc { left: 0; right: 0; bottom: 6%; text-align: center; }
.ovt.exam { left: 4%; top: 4%; background: #D2544B; border-radius: 999px; padding: .25rem .7rem; text-shadow: none; }
.sframe .ovs { position: absolute; font-size: 1.7rem; pointer-events: none; } .ovs.s1 { left: 4%; top: 6%; } .ovs.s2 { right: 6%; top: 8%; } .ovs.s3 { left: 5%; bottom: 4%; } .ovs.s4 { right: 7%; bottom: 6%; }
.sframe .fbadge { top: auto; bottom: 10px; }
/* Accounting widgets */
.accw { display: flex; flex-direction: column; gap: 10px; }
.accw-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 230px; }
.accw-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; } .accw-col b { font-size: .85rem; }
.accw-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 160px; border-bottom: 3px solid var(--ink); gap: 2px; }
.accw-seg { border-radius: 8px; color: #fff; font: 800 .72rem var(--sans, sans-serif); display: grid; place-items: center; transition: height .5s cubic-bezier(.2,.8,.2,1); animation: segin .45s both; padding: 0 4px; }
.accw-seg.s1 { background: #2F7F70; } .accw-seg.s2 { background: #2F6BD8; } .accw-seg.s3 { background: #8F86F0; } .accw-seg.s4 { background: #E9A92A; color: #1B2440; } .accw-seg.s5 { background: #D2544B; }
@keyframes segin { from { opacity: 0; transform: scaleY(.3); } }
.accw-tot { font: 700 1.1rem var(--display, sans-serif); } .accw-eq { font: 700 2rem var(--display, sans-serif); color: var(--slate); align-self: center; transition: color .3s, transform .3s; } .accw-eq.ok { color: var(--solid); transform: scale(1.2); }
.accw-btns, .accw-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .accw-pick select { padding: .5rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 700 .95rem var(--sans, sans-serif); }
.accw-ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.taccount { border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; background: var(--white); text-align: center; transition: box-shadow .3s; } .taccount.flash { animation: tflash 1s; }
@keyframes tflash { 0% { box-shadow: 0 0 0 0 rgba(47,127,112,.7); transform: scale(1.04); } 100% { box-shadow: 0 0 0 12px rgba(47,127,112,0); transform: none; } }
.tcols { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-top: 4px; } .tcols > div { display: flex; flex-direction: column; font: 700 .8rem var(--sans, sans-serif); padding: 4px 2px; } .tcols > div:first-child { border-right: 2px solid var(--ink); }
.accw-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .accw-ctl label { display: flex; flex-direction: column; font: 700 .8rem var(--sans, sans-serif); color: var(--slate); } .accw-ctl span { color: var(--ink); font-weight: 900; }
.dep-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 700 .78rem var(--sans, sans-serif); margin-bottom: 6px; } .dep-key .k { width: 14px; height: 10px; border-radius: 3px; display: inline-block; } .k.sl, .dep-bars .sl { background: #2F7F70; } .k.rb, .dep-bars .rb { background: #E9A92A; }
.dep-row { display: grid; grid-template-columns: 30px 1fr 120px; gap: 6px; align-items: center; margin: 4px 0; font: 700 .75rem var(--sans, sans-serif); }
.dep-bars { display: flex; flex-direction: column; gap: 3px; } .dep-bars i { display: block; height: 9px; border-radius: 5px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
/* ===== Pilots ===== */
.saudl { display: block; margin: -4px 0 8px; } .saud { margin-left: 6px; padding: .35rem; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wcard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 20px; background: var(--white); text-decoration: none; color: var(--ink); min-height: 150px; transition: transform .15s; } .wcard:hover { transform: translateY(-2px); }
.wcard .we { font-size: 2rem; } .wcard b { font: 700 1.1rem var(--display, sans-serif); } .wcard small { color: var(--slate); } .wcard i { font-style: normal; font-weight: 800; font-size: .78rem; margin-top: auto; color: var(--solid); }
.game .gq { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5; } .gopts { display: flex; flex-direction: column; gap: 8px; } .gopt.primary { color: #fff; } .gfb { margin-top: 10px; font-size: 1rem; }
html.kidmode .tabbar, html.kidmode .modesw, html.kidmode .island, html.kidmode .cfab, html.kidmode .floaters { display: none !important; }
.kids { max-width: 620px; } .kidhead { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; } .kidhead h1 { margin: 0; font-size: 1.8rem; } .kidhead p { margin: 2px 0 0; } .kidhead .kexit { margin-left: auto; }
.kidav { width: 48px; height: 48px; border-radius: 50%; background: var(--tealpale, #E3F2EE); display: grid; place-items: center; font-size: 1.6rem; } .kidav.big { width: 72px; height: 72px; font-size: 2.4rem; }
.kidtile { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 18px; margin: 12px 0; border-radius: 26px; text-decoration: none; color: #1B2440; font-size: 1.05rem; min-height: 96px; box-shadow: var(--card-shadow); }
.kidtile span { grid-row: 1 / 3; font-size: 2.6rem; text-align: center; } .kidtile b { font: 700 1.5rem var(--display, sans-serif); } .kidtile small { color: #3E4558; font-weight: 700; }
.k1 { background: #FFE8B3; } .k2 { background: #CDEFE6; } .k3 { background: #D9E4FF; } .k4 { background: #FFD9E6; }
.kpt { width: 100%; padding: .7rem; border-radius: 14px; border: 1px solid var(--line); font: 600 1.05rem var(--sans, sans-serif); margin: 6px 0; }
.perms { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; font-weight: 700; font-size: .9rem; } .perms label { display: flex; gap: 6px; align-items: center; } .perms input { width: 20px; height: 20px; accent-color: var(--solid); }
@media (max-width: 420px) { .perms { grid-template-columns: 1fr; } }
.vpl-row { display: flex !important; flex-direction: column; text-decoration: none; color: inherit; } .vprov { font: 900 .65rem var(--sans, sans-serif); text-transform: uppercase; padding: .15rem .45rem; border-radius: 6px; background: var(--paper); }
.vprov.youtube { background: #FFE1E1; color: #B71C1C; } .vprov.tiktok { background: #E6E6E6; color: #111; } .vprov.facebook { background: #DCE8FF; color: #1D4ED8; }
.vplay iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; margin-top: 8px; }
.vstage { text-align: center; } .veole { width: 140px; transition: transform .3s; } .vstage[data-s="Speaking"] .veole { animation: groove 1s ease-in-out infinite; } .vstage[data-s="Listening"] .veole { transform: scale(1.05); }
.vstate { font: 700 1.3rem var(--display, sans-serif); } .vcap { max-height: 260px; overflow-y: auto; }
.hweek { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); } .hweek span { font-weight: 900; color: var(--solid); width: 30px; } .hweek.on { background: var(--tealpale, #E3F2EE); border-radius: 12px; padding: 8px; }
@media (prefers-reduced-motion: reduce) { .vstage[data-s="Speaking"] .veole { animation: none; } }
.authbanner { position: fixed; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 500; background: #FFF3D6; color: #1B2440; border: 1.5px solid #E9A92A; border-radius: 16px; padding: 12px 14px; font-size: .92rem; box-shadow: 0 10px 28px rgba(17,22,42,.18); }
.authbanner a { font-weight: 900; margin-left: 4px; }
@media (min-width: 900px) { .authbanner { left: auto; right: 24px; max-width: 420px; } }
/* Learn bar */
.learnbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 25; background: var(--paper); padding: 8px 0 6px; margin: -4px 0 6px; }
.lb-search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; box-shadow: var(--card-shadow); }
.lb-search:focus-within { border-color: var(--solid); }
.lb-q { flex: 1; border: 0; background: transparent; color: var(--ink); font: 700 1rem var(--sans, sans-serif); padding: .75rem 0; min-width: 0; outline: none; }
.lb-x { border: 0; background: var(--line); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.lb-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }
.lb-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .lb-chips::-webkit-scrollbar { display: none; }
.lb-chip { flex: none; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: .4rem .8rem; font: 800 .8rem var(--sans, sans-serif); cursor: pointer; min-height: 36px; }
.lb-chip.on { background: var(--solid); border-color: var(--solid); color: #fff; }
.lb-views { margin: 0; } .lb-count { margin: 6px 4px 0; }
.lb-hits { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px; margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.lb-hit { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--ink); } .lb-hit:hover, .lb-hit:focus { background: var(--paper); }
.lb-hit small { display: block; color: var(--slate); font-weight: 700; }
.subcard { position: relative; } .newpill { position: absolute; top: 10px; right: 10px; background: #E9578A; color: #fff; font: 900 .65rem var(--sans, sans-serif); text-transform: uppercase; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 999px; }
@media (min-width: 900px) { .learnbar { top: 64px; } }
.lb-q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
/* ===== Video Island (next to Music Island) ===== */
.island { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 700px) { .island { justify-content: center; } }
.island .isl-panel, .island .vis-panel { flex-basis: 100%; order: 2; }
.vis-pill { pointer-events: auto; position: relative; display: grid; place-items: center; width: 40px; height: 34px; background: #0F1324; color: #fff; border: 0; border-radius: 999px; font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; transition: transform .2s; }
.vis-pill:active { transform: scale(.94); } .vis-pill.playing { background: linear-gradient(135deg, #E9578A, #8F86F0); }
.vis-dot { position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #E9578A; display: none; } .vis-pill.playing .vis-dot { display: block; background: #fff; animation: lights 1.2s steps(2) infinite; }
.vis-panel { pointer-events: auto; margin-top: 8px; width: min(380px, calc(100vw - 24px)); background: #0F1324; color: #fff; border-radius: 26px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: popin .3s both; }
.vis-list { max-height: 46vh; overflow-y: auto; display: grid; gap: 6px; margin: 8px 0; }
.vis-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.06); border: 0; border-radius: 14px; padding: 6px; color: #fff; text-decoration: none; cursor: pointer; font: inherit; }
.vis-row:hover { background: rgba(255,255,255,.12); } .vis-row img, .vis-ph { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #2A3050; display: grid; place-items: center; font-size: 1.2rem; }
.vis-row b { display: block; font-size: .9rem; line-height: 1.25; } .vis-row small { color: #B9C0DA; font-size: .75rem; }
.vis-open { display: block; text-align: center; color: #7FD4C2; font-weight: 800; text-decoration: none; padding: 6px; } .vis-course { padding: 10px; display: grid; gap: 8px; } .vis-course p { margin: 0; }
.vdock { position: fixed; z-index: 140; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); width: min(360px, calc(100vw - 20px)); background: #0F1324; color: #fff; border-radius: 18px; padding: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.4); animation: popin .3s both; }
.vdock.big { width: min(720px, calc(100vw - 20px)); } .vdock.tall .vd-frame { aspect-ratio: 9 / 16; max-height: 60vh; } .vdock.tall { width: min(300px, calc(100vw - 20px)); }
.vd-h { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; } .vd-t { flex: 1; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-b { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.vd-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; } .vd-frame iframe { width: 100%; height: 100%; border: 0; }
.vd-sub { margin: 6px 2px 0; color: #B9C0DA; } .vd-sub:empty { display: none; }
@media (min-width: 900px) { .vdock { bottom: 20px; } }
html.kidmode .vis-pill { display: none !important; }
.island-page .vi-h { margin: 18px 4px 10px; font-size: 1.25rem; }
.vis-erb { display: flex !important; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); } .vis-erb span:first-child { font-size: 1.8rem; } .vis-erb small { display: block; color: var(--slate); } .vis-erb i { margin-left: auto; font-style: normal; font-size: 1.4rem; }
.vcreators { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; } .vcreators::-webkit-scrollbar { display: none; }
.vcreator { flex: none; width: 118px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 12px 8px; } .vcreator b { font-size: .85rem; } .vcreator small { color: var(--slate); font-size: .7rem; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vtile2 { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 10px; cursor: pointer; font: inherit; color: var(--ink); position: relative; }
.vtile2 img, .vcard-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--paper); display: grid; place-items: center; font-size: 1.6rem; } .vtile2 b { font-size: .88rem; line-height: 1.25; } .vtile2 small { color: var(--slate); } .vtile2 .vprov { position: absolute; top: 12px; left: 12px; }
.vcards { display: grid; gap: 10px; } .vcard { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px; text-decoration: none; color: var(--ink); }
.vcard img { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; } .vcard small { display: block; color: var(--slate); }
.vitem2 { display: grid !important; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; } .vitem2 img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (max-width: 420px) { .vcard, .vitem2 { grid-template-columns: 110px 1fr; } .vcard img, .vitem2 img { width: 110px; } }
.vcreator-head { display: flex !important; gap: 14px; align-items: center; } .vcreator-head h2 { margin: 0; }
/* island panels: never overflow the screen (music and video) */
.island .isl-panel, .island .vis-panel { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 10px; right: 10px; width: auto; max-width: 420px; margin: 0 0 0 auto; }
@media (min-width: 700px) { .island .isl-panel, .island .vis-panel { left: calc(50% - 200px); right: auto; width: 400px; margin: 0; } }

/* Element (pilot): while mounted, Element owns the viewport. Atoms chrome returns on exit. */
html.elmode header.top, html.elmode .tabbar, html.elmode .eole-dock, html.elmode #focusbtn, html.elmode .modesw, html.elmode .island, html.elmode .cfab, html.elmode .floaters, html.elmode .eolefab, html.elmode .vis-pill { display: none !important; }
html.elmode #main { padding: 0 !important; max-width: none !important; }
html.elmode #element-root { position: fixed; inset: 0; }
.kidtile.k-element { background: linear-gradient(135deg,#9FD2FF,#DDF3F2); }
/* Element switch in the Atoms header (Atoms | Element). Element opens its own space with its own parent sign-in. */
.elsw { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 0 8px; text-decoration: none; background: var(--paper); flex: none; min-height: 34px; }
.elsw > span { display: inline-flex; align-items: center; padding: 0 .7rem; font: 800 .8rem var(--sans, sans-serif); white-space: nowrap; }
.elsw .elsw-a { color: var(--slate); }
.elsw .elsw-e { background: linear-gradient(135deg, #9FD2FF, #DDF3F2); color: #0B3C4E; }
.elsw .elsw-e b { font-weight: 400; }
.elsw:hover .elsw-e, .elsw:focus-visible .elsw-e { background: linear-gradient(135deg, #7EC3FF, #C9EEEC); }
.elsw:focus-visible { outline: 3px solid var(--sun, #FFD966); outline-offset: 2px; }
header.top:has(.elsw) .modesw { margin-right: 0; }
header.top .elsw { margin-right: auto; }
@media (max-width: 1100px) { header.top .elsw .elsw-a { display: none; } }
@media (max-width: 760px) { header.top .elsw { display: none; } }
.elsw-row { display: flex; justify-content: center; margin: 2px 0 12px; }
.elsw-row .elsw { margin: 0; min-height: 40px; box-shadow: 0 4px 14px rgba(27,36,64,.08); }
.elsw-row .elsw > span { padding: 0 1rem; font-size: .88rem; }
@media (min-width: 761px) { .elsw-row { display: none; } }
html.kidmode .elsw, html.elmode .elsw { display: none !important; }
.el-welcome { margin-top: 8px; }
.kidav img.av-img{width:100%;height:100%;object-fit:contain;display:block}

/* v2.10.2 · Exam Files are sold on erbacademy.org */
.webfiles{display:grid;gap:.45rem;margin:12px 0}.webfiles p{margin:0}.webfiles .btn{justify-self:start}
/* v2.11.0 · Sociology Paper 2 topic picker */
.soctp{display:grid;gap:.6rem}.soctp-row{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}
.soctp-b{display:grid;gap:.15rem;justify-items:start;min-height:64px;padding:.7rem .8rem;border-radius:14px;border:2px solid var(--line,#e4ddd0);background:var(--card,#fff);font:inherit;font-weight:800;text-align:left;cursor:pointer;color:inherit}
.soctp-b .soctp-q{font-size:.72rem;font-weight:800;letter-spacing:.06em;opacity:.6}
.soctp-b.on{border-color:var(--teal,#1f6f63);background:var(--teal-pale,#e7f3ef);box-shadow:0 0 0 2px var(--teal,#1f6f63) inset}
.soctp-b:focus-visible{outline:3px solid var(--teal,#1f6f63);outline-offset:2px}
.soctp-msg{margin:0}.soctp .btn{justify-self:start}
.soctp-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin:12px 0;padding:.9rem 1rem;border-radius:16px;background:var(--card,#fff);border:1px solid var(--line,#e4ddd0)}
.soctp-card>div:first-child{display:grid;gap:.15rem}.soctp-card .soctp-slot{flex-basis:100%}
@media (max-width:420px){.soctp-row{grid-template-columns:1fr}}
/* Sociology Learning Book exit gates (v2.11.2) */
.socx-c{display:flex;gap:.6rem;align-items:center;min-height:44px;font-weight:700}
.socx-c input{width:22px;height:22px;flex:none}
.socx-l{display:flex;gap:.5rem;flex-wrap:wrap;margin:.6rem 0}
.socx-sum{list-style:none;padding:0;margin:0}
.socx-sum li{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.6rem 0;border-top:1px solid var(--line,#E6E2DA)}
.socx-sum li:first-child{border-top:0}
.blk.fig img{display:block;max-width:100%;height:auto}
