/* Tramiko V97 */
/* ===== home hero slideshow ===== */
.tr-home-final .tr-hero.h97{background-image:none!important;background-color:#16382c!important;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.h97 .h97-slides{position:absolute;inset:0;z-index:0;border-radius:inherit;overflow:hidden}
.h97 .h97-slides::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,24,19,.50) 0%,rgba(6,24,19,.12) 30%,rgba(6,24,19,0) 52%,rgba(6,24,19,.34) 100%)}
.h97 .h97-s{position:absolute;inset:0;opacity:0;transition:opacity .75s ease;display:block}
.h97 .h97-s.on{opacity:1}
.h97 .h97-s img{width:100%;height:100%;object-fit:cover;object-position:var(--pd,50% 45%);display:block;pointer-events:none}
@media(max-width:650px){.h97 .h97-s img{object-position:var(--pm,50% 30%)}}

/* text: frosted card so it stays readable on any photo */
.tr-home-final .tr-hero.h97 .tr-hero-copy.h97-copy{display:grid;margin:10px 0 auto!important;padding:0!important;background:none;max-width:min(340px,72%)!important;z-index:3}
.h97 .h97-t{grid-area:1/1;opacity:0;transform:translateY(8px);transition:opacity .55s ease,transform .55s ease;pointer-events:none;
 background:linear-gradient(135deg,rgba(7,28,22,.62),rgba(7,28,22,.38));-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
 border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:9px 13px 10px;align-self:start;box-shadow:0 8px 26px rgba(0,0,0,.18)}
.h97 .h97-t.on{opacity:1;transform:none;pointer-events:auto}
.tr-home-final .tr-hero.h97 .h97-t h1{font-family:Georgia,serif!important;font-size:clamp(1.1rem,4.6vw,1.38rem)!important;line-height:1.12!important;margin:0 0 4px!important;color:#fffdf5;letter-spacing:-.03em;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.tr-home-final .tr-hero.h97 .h97-t p{font-size:clamp(.76rem,3.1vw,.86rem)!important;line-height:1.3!important;margin:0!important;color:#fffdf5;max-width:none!important;font-weight:600;text-shadow:0 1px 6px rgba(0,0,0,.45)}
@media(min-width:651px){
 .tr-home-final .tr-hero.h97{justify-content:flex-start}
 .tr-home-final .tr-hero.h97 .tr-hero-copy.h97-copy{align-self:flex-end;margin:34px 3% auto auto!important;max-width:min(390px,41%)!important}
 .tr-home-final .tr-hero.h97 .h97-t h1{font-size:clamp(1.6rem,2.6vw,2.3rem)!important}
 .tr-home-final .tr-hero.h97 .h97-t p{font-size:clamp(.95rem,1.25vw,1.12rem)!important}
 .tr-home-final .tr-hero.h97 .h97-t{padding:15px 20px 16px;border-radius:22px}
}

/* dots */
.h97 .h97-dots{position:absolute;z-index:3;left:50%;bottom:52px;transform:translateX(-50%);display:flex;gap:7px;padding:5px 9px;border-radius:99px;background:rgba(7,28,22,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.h97 .h97-dots button{flex:none;width:7px!important;height:7px!important;min-width:0!important;min-height:0!important;border-radius:99px!important;border:0!important;padding:0!important;margin:0!important;font-size:0;line-height:0;background:rgba(255,255,255,.55)!important;box-shadow:none!important;cursor:pointer;transition:width .3s,background .3s}
.h97 .h97-dots button.on{width:20px!important;background:#fff!important}
.h97 .h97-dots button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.h97 .h97-s,.h97 .h97-t{transition:none}}

/* ===== community: photos, posting state, readability ===== */
.t95-spin{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:t97spin .7s linear infinite;vertical-align:-2px;margin-right:7px}
@keyframes t97spin{to{transform:rotate(360deg)}}
button.busy,button:disabled{opacity:.75;cursor:default}
.t95-pimg{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:16px;margin:4px 0 10px;background:#e8eee0}
.t95-prow{display:flex;gap:10px;align-items:center;margin-top:10px}.t95-prow .t95-cta{flex:1;margin:0}
.t95-photo,.t95-dphoto{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border:1.5px solid #cfd9c6;border-radius:99px;padding:10px 14px;font-weight:700;font-size:.9rem;color:#14392d;background:#fff;flex:none}
.t95-dphoto{padding:9px 11px;font-size:1.05rem}
.t95-pv{position:relative;margin-top:8px}.t95-pv img{width:100%;max-height:220px;object-fit:cover;border-radius:14px;display:block}
.t95-pv button{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:1.2rem;line-height:1;cursor:pointer}
.t95-mimg{display:block;max-width:100%;width:220px;border-radius:12px;margin-bottom:4px}
.t95-dmf{display:flex;gap:8px;align-items:center}
.t95-post{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.t95-post p{font-size:1.04rem;line-height:1.5;color:#14231d;font-weight:450}
.t95-comm h1,.t95-post b{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.t95-post{box-shadow:0 2px 10px rgba(14,46,36,.06)}

/* ===== mobile headers: full width on every page, same spacing as home, round avatar ===== */
.tr-homebar-avatar,.tr-v23-stats>.tr-homebar-avatar{aspect-ratio:1/1;border-radius:50%!important;align-self:center!important;padding:0!important;display:inline-grid;place-items:center;overflow:hidden;line-height:1}
.tr-homebar-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
@media(max-width:760px){
 .tr-homebar-avatar,.tr-header-v23 .tr-v23-stats>.tr-homebar-avatar,.tr-unified-header .tr-homebar-avatar{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-height:36px!important;flex:0 0 36px!important}
 .main>.tr-header-v23,.main>.tr-mobile-homebar,.main>.tr-learning-homebar,.main>.tr-profile-homebar{box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-radius:0!important;padding:12px 14px 12px 20px!important;height:78px!important;min-height:78px!important;max-height:78px!important}
 .main>.tr-header-v23{display:flex!important}
}

/* ===== placement: spelling + match ===== */
.pl-built{min-height:58px;display:flex;align-items:center;justify-content:center;border:2px dashed #cfd9c6;border-radius:18px;background:#fff;font:800 1.7rem/1 system-ui,sans-serif;letter-spacing:.14em;color:#14392d;margin:14px 0;padding:10px;text-transform:lowercase}
.pl-built span{font:600 .95rem system-ui;letter-spacing:0;color:#8a9a8f;text-transform:none}
.pl-built.ok{border-color:#2f9a67;background:#eaf7ef}.pl-built.bad{border-color:#d9776a;background:#fdeeeb}
.pl-letters{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:10px}
.pl-letter{width:50px;height:54px;border-radius:14px;border:2px solid #14392d;background:#fffdf8;color:#14392d;font:800 1.4rem system-ui;cursor:pointer;box-shadow:0 3px 0 #14392d;text-transform:lowercase}
.pl-letter:active{transform:translateY(2px);box-shadow:0 1px 0 #14392d}.pl-letter:disabled{opacity:.25;box-shadow:none}
.pl-undo{display:block;margin:6px auto 0;border:0;background:none;color:#5b6f63;font-weight:700;cursor:pointer;padding:8px}
.pl-match{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.pl-match>div{display:grid;gap:10px;align-content:start}
.pl-m{min-height:52px;border-radius:14px;border:2px solid #d8dfcf;background:#fffdf8;color:#14231d;font:700 .95rem/1.2 system-ui;padding:8px 10px;cursor:pointer}
.pl-m.sel{border-color:#14392d;background:#e9f4d8}.pl-m.done{border-color:#2f9a67;background:#eaf7ef;color:#2f7d55;opacity:.85}.pl-m.bad{border-color:#d9776a;background:#fdeeeb;animation:t97shake .3s}
@keyframes t97shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* ===== language flag dropdown ===== */
.ld97-top{position:absolute;top:max(12px,env(safe-area-inset-top));right:14px;z-index:40}
.ld97-drop{position:relative}
.ld97-btn{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 12px 0 9px;border-radius:99px;border:1.5px solid #e3dccb;background:#fffdf8;color:#14392d;font:800 .85rem system-ui,sans-serif;cursor:pointer;box-shadow:0 3px 12px rgba(20,57,45,.1)}
.ld97-f{display:inline-block;width:26px;height:18px;border-radius:4px;overflow:hidden;flex:none;line-height:0}.ld97-f svg{width:100%;height:100%;display:block}
.ld97-menu{position:absolute;right:0;top:48px;min-width:196px;background:#fffdf8;border:1.5px solid #e3dccb;border-radius:18px;padding:6px;box-shadow:0 14px 36px rgba(20,57,45,.2);display:grid;gap:2px}
.ld97-opt{display:flex;align-items:center;gap:10px;border:0;background:none;padding:11px 12px;border-radius:12px;font:700 .95rem system-ui,sans-serif;color:#14231d;cursor:pointer;text-align:left}
.ld97-opt:hover,.ld97-opt.on{background:#e9f4d8}
.ob96{position:relative}.ld97-top-ob{top:10px;right:10px}

/* ===== landing ===== */
.main:has(.ld97){padding:0!important;max-width:none!important;width:100%!important;margin:0!important}
.shell:has(.ld97){display:block!important}
.ld97{position:relative;min-height:100vh;min-height:100dvh;background:#fefaf6;overflow:hidden;display:flex;flex-direction:column;align-items:center;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#14392d;padding:0 20px}
.ld97-wrap{width:100%;max-width:1060px;display:grid;gap:0;justify-items:center;text-align:center;position:relative;z-index:2;padding-top:max(20px,env(safe-area-inset-top))}
.ld97-copy{display:flex;flex-direction:column;align-items:center;max-width:520px}
.ld97-logo{width:min(210px,56vw);height:auto;margin:6px 0 22px}
.ld97 h1{font:800 clamp(1.9rem,8vw,2.9rem)/1.12 Georgia,"Playfair Display",serif;letter-spacing:-.02em;margin:0;color:#10382a}
.ld97 h1 i{font-style:normal;color:#5c8f43;margin:0 .12em}
.ld97-swoosh{width:min(230px,58vw);height:14px;margin:4px 0 14px;display:block}
.ld97 p{font-size:1.05rem;line-height:1.5;color:#41574c;margin:0 0 20px;max-width:380px}
.ld97-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:min(300px,86%);height:58px;padding:0 34px;border-radius:99px;border:0;background:linear-gradient(180deg,#1d5a41,#123d2d);color:#fff;font:800 1.15rem system-ui,sans-serif;cursor:pointer;box-shadow:0 10px 24px rgba(18,61,45,.32)}
.ld97-cta:active{transform:translateY(1px)}
.ld97-login{margin:12px 0 0;border:0;background:none;color:#2f6b50;font:700 .95rem system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:8px}
.ld97-art{width:min(400px,86vw);margin-top:8px;position:relative}
.ld97-art img{width:100%;height:auto;display:block}
.ld97-feats{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:700px;position:relative;z-index:2;padding-bottom:132px}
.ld97-feats li{display:grid;justify-items:center;gap:4px;text-align:center}
.ld97-ico{width:52px;height:52px;border-radius:50%;background:#e9f4d8;color:#1d5a41;display:grid;place-items:center;margin-bottom:2px}.ld97-ico svg{width:28px;height:28px}
.ld97-feats b{font-size:.84rem;color:#10382a}.ld97-feats small{font-size:.72rem;line-height:1.3;color:#5d7066;max-width:120px}
.ld97-wave{position:absolute;left:0;right:0;bottom:0;height:118px;background:linear-gradient(180deg,#2c7a52,#14503a);clip-path:path("M0 40 C 120 0, 240 70, 400 30 S 700 10, 900 44 S 1300 20, 1600 40 L1600 200 L0 200 Z");clip-path:ellipse(80% 100% at 50% 100%);z-index:1}
@media(min-width:900px){
 .ld97{justify-content:center;padding:0 40px}
 .ld97-wrap{grid-template-columns:1.05fr .95fr;text-align:left;justify-items:stretch;align-items:center;gap:40px;padding-top:0}
 .ld97-copy{align-items:flex-start;max-width:none}.ld97-logo{width:230px}.ld97 h1{font-size:3.2rem}.ld97 p{font-size:1.15rem;max-width:440px}
 .ld97-art{width:100%;max-width:520px;justify-self:center;margin:0}
 .ld97-feats{max-width:900px;margin-top:10px;padding-bottom:150px}.ld97-feats small{max-width:200px;font-size:.82rem}.ld97-feats b{font-size:.98rem}
}

/* ===== onboarding: account step ===== */
.ob96-acc{display:grid;gap:12px}.ob96-err{margin:0;color:#b4412f;font-weight:700;font-size:.9rem}
.ob96-lnk{border:0;background:none;color:#2f6b50;font-weight:700;text-decoration:underline;cursor:pointer;padding:6px;font-size:.92rem}
.ob96-fine{color:#6d7f74;text-align:center;font-size:.8rem}
.av97,.t95-pfav .av97{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.t95-pfav span{width:100%;height:100%;border-radius:50%;overflow:hidden;display:grid;place-items:center}
.t95-pfcam{cursor:pointer}
.ld97-wrap{padding-top:max(62px,calc(env(safe-area-inset-top) + 52px))!important}
.ld97-art{width:min(300px,72vw)!important}
.ld97-menu{min-width:230px}.ld97-opt{white-space:nowrap}
@media(min-width:900px){.ld97-wrap{padding-top:0!important}.ld97-art{width:100%!important}}
.ld97-art img{-webkit-mask-image:radial-gradient(ellipse 70% 72% at 50% 50%,#000 72%,transparent 100%);mask-image:radial-gradient(ellipse 70% 72% at 50% 50%,#000 72%,transparent 100%)}
@media(min-width:900px){.ld97-wave{height:84px}.ld97-feats{padding-bottom:120px}}

/* ===== homepage: make Community stand out (same layout, bolder card) ===== */
.tr-home-below .t95-hc{background:linear-gradient(160deg,#e3f1cf 0%,#f6f0dc 100%);border:1.5px solid #cfe2b4;border-radius:26px;padding:16px 0 14px 14px;margin:18px 0 8px;box-shadow:0 10px 26px rgba(30,80,50,.12);position:relative;overflow:hidden}
.tr-home-below .t95-hc h2,.tr-home-below .t95-hc h3{font:800 1.12rem system-ui,sans-serif!important;color:#10382a;white-space:nowrap}
.tr-home-below .t95-hc>*:first-child{padding-right:14px}

/* ===== V97b: hero text never covers Miko — small, light, tucked in a corner ===== */
.tr-home-final .tr-hero.h97 .tr-hero-copy.h97-copy{position:absolute!important;inset:0!important;display:block!important;max-width:none!important;width:auto!important;margin:0!important;padding:0!important;pointer-events:none;z-index:3}
.tr-home-final .tr-hero.h97 .tr-logo-img{display:none!important}
.h97 .h97-t{position:absolute;grid-area:auto;max-width:39%;width:max-content;padding:7px 10px 8px;border-radius:13px;
 background:linear-gradient(135deg,rgba(8,26,20,.46),rgba(8,26,20,.28));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);border:1px solid rgba(255,255,255,.16);box-shadow:0 4px 14px rgba(0,0,0,.12)}
.h97 .h97-t[data-m="tl"]{top:62px;left:12px}.h97 .h97-t[data-m="tr"]{top:62px;right:12px}
.h97 .h97-t[data-m="bl"]{bottom:50px;left:12px}.h97 .h97-t[data-m="br"]{bottom:50px;right:12px}
.tr-home-final .tr-hero.h97 .h97-t h1{font-size:.9rem!important;line-height:1.14!important;margin:0 0 2px!important;text-shadow:0 1px 5px rgba(0,0,0,.5)}
.tr-home-final .tr-hero.h97 .h97-t p{font-size:.68rem!important;line-height:1.28!important;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.5)}
@media(min-width:651px){
 .tr-home-final .tr-hero.h97 .tr-hero-copy.h97-copy{align-self:auto!important;margin:0!important;max-width:none!important}
 .h97 .h97-t{max-width:min(310px,28%);padding:11px 15px 12px;border-radius:17px}
 .h97 .h97-t[data-d="tl"]{top:78px;left:28px;right:auto;bottom:auto}.h97 .h97-t[data-d="tr"]{top:78px;right:28px;left:auto;bottom:auto}
 .h97 .h97-t[data-d="bl"]{bottom:62px;left:28px;top:auto;right:auto}.h97 .h97-t[data-d="br"]{bottom:62px;right:28px;top:auto;left:auto}
 .tr-home-final .tr-hero.h97 .h97-t h1{font-size:clamp(1.15rem,1.7vw,1.55rem)!important}
 .tr-home-final .tr-hero.h97 .h97-t p{font-size:clamp(.82rem,1vw,.96rem)!important}
}

/* ===== lesson pages simpler ===== */
.v12-quiz-top{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:14px!important}
.v12-quiz-top .back-link{margin:0!important;padding:0!important;flex:none}
.v12-quiz-top>span{flex:1;min-width:0;text-align:left!important}
.sl-lite .sl-body{padding-top:6px}.sl-lite .sl-q{margin:2px 0 12px}
.st-lite .st-thread{margin-bottom:8px}.st-lite .st-gloss{margin-bottom:10px}
.sl-celebrate{display:flex;align-items:center;justify-content:center;gap:clamp(18px,8vw,46px);margin:2px 0 4px}
.sl-celebrate .sl-trophy{font-size:3.6rem;line-height:1;margin:0}
.m3d-host.m3d-done{position:relative;width:128px;height:150px;flex:none;pointer-events:none}
.m3d-done img{object-fit:contain}

/* ===== hearts popup + 5-in-a-row ===== */
.hp97-row{display:flex;gap:8px;justify-content:center;margin:2px 0 8px}.hp97-row span{font-size:1.9rem;color:#e0d9cc;line-height:1}.hp97-row span.on{color:#d93b4b;filter:drop-shadow(0 2px 3px rgba(217,59,75,.35))}
.hp97 .hp97-next{display:block;margin:6px 0 10px;color:#5d7066}.hp97 .hp97-next b{color:#14392d}
.hp97 .hp97-xp{display:block;width:100%;margin:8px 0 2px;padding:13px;border-radius:99px;border:2px solid #14392d;background:#fffdf8;color:#14392d;font:800 .95rem system-ui,sans-serif;cursor:pointer}
.hp97 .hp97-xp:disabled{opacity:.45;cursor:default}.hp97 .hp97-xp i{font-weight:600;font-style:normal;opacity:.8}
.sk97{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(8,26,20,.5);opacity:0;transition:opacity .25s}.sk97.on{opacity:1}
.sk97-in{width:min(300px,84vw);background:#fffdf8;border-radius:28px;padding:18px 20px 20px;text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.35);transform:scale(.9);transition:transform .3s cubic-bezier(.2,1.4,.4,1)}.sk97.on .sk97-in{transform:none}
.sk97 .m3d-host{margin:0 auto;width:170px;height:190px;display:block}
.sk97 h3{font:800 1.5rem Georgia,serif;margin:4px 0 2px;color:#14392d}
.sk97-xp{display:inline-block;margin:4px 0 12px;padding:5px 14px;border-radius:99px;background:#e9f4d8;color:#2f6b50;font:800 1.05rem system-ui}
.sk97-btn{display:block;width:100%;padding:13px;border-radius:99px;border:0;background:linear-gradient(180deg,#1d5a41,#123d2d);color:#fff;font:800 1rem system-ui;cursor:pointer}
/* V98 home community fills the row */
.tr-home-below .t95-hc{grid-column:1/-1;width:100%;box-sizing:border-box;padding:18px 16px 16px 18px;margin:16px 0 10px}
.tr-home-below .t95-hc .t95-car{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;overflow:visible;padding:2px 2px 0 0}
.tr-home-below .t95-hc .t95-car>*{min-width:0;max-width:none}
@media(max-width:700px){.tr-home-below .t95-hc{padding:16px 0 14px 14px}.tr-home-below .t95-hc .t95-car{display:flex;overflow-x:auto;gap:10px}.tr-home-below .t95-hc .t95-car>*{min-width:82%}}
