/* org.css: voxpair.org-specific layout on top of voxpair-ui.css */
.muted{ color:var(--muted); }
.small{ font-size:13px; }
.center{ text-align:center; }
.row{ display:flex; gap:10px; align-items:center; }
.wrap-row{ flex-wrap:wrap; justify-content:center; }
.hidden{ display:none !important; }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.loading{ padding:80px 24px; text-align:center; color:var(--muted); font-weight:600; }
.spin{ display:inline-block; font-size:28px; animation:hop 1s ease-in-out infinite; }
@keyframes hop{ 50%{ transform:translateY(-8px) rotate(6deg); } }
main{ padding-bottom:90px; }

/* ---------- top bar ---------- */
.top{ position:sticky; top:0; z-index:50; background:rgba(14,26,43,.8); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.top-inner{ max-width:1200px; margin:0 auto; padding:11px 24px; display:flex; align-items:center; gap:18px; }
.top-links{ display:flex; gap:22px; font-size:14px; font-weight:600; color:var(--muted); }
.top-links a:hover{ color:var(--amber); }
.top-right{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.stats{ display:flex; gap:6px; }
@media (max-width:760px){ .top-links{ display:none; } .top-inner{ padding:10px 14px; } .stats .pill{ padding:5px 9px; font-size:12px; } }
@media (max-width:420px){ .logo .b{ display:none; } }

/* ---------- home ---------- */
.hero-mini{ padding:46px 24px 26px; max-width:820px; }
.hero-mini h1{ font-size:clamp(30px,4.4vw,48px); margin-bottom:12px; }
.hero-mini p{ font-size:17px; }
.lang-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:34px; }
.lang{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:14px 14px; border-radius:18px; border:1px solid var(--border); background:rgba(27,46,68,.4); text-align:left; transition:transform .15s, border-color .15s, background .15s; }
.lang:hover{ transform:translateY(-3px); background:rgba(27,46,68,.75); }
.lang.on{ border-color:var(--amber); background:linear-gradient(160deg, rgba(255,179,71,.16), rgba(27,46,68,.8) 60%); }
.lang-flag{ font-size:30px; line-height:1; }
.lang b{ font-family:var(--display); font-weight:600; font-size:17px; }
.lang small{ font-size:12px; color:var(--muted); font-weight:600; }
@media (max-width:900px){ .lang-row{ grid-template-columns:repeat(5, minmax(128px,1fr)); overflow-x:auto; padding-bottom:6px; scrollbar-width:none; } .lang-row::-webkit-scrollbar{ display:none; } }
.section-t{ font-size:24px; margin-bottom:16px; }
.house-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.house-card{ position:relative; text-align:left; padding:22px 18px 16px; display:flex; flex-direction:column; gap:6px; overflow:hidden; transition:transform .2s, border-color .2s; min-height:210px; }
.house-card:hover{ transform:translateY(-5px); border-color:var(--ac); }
.hc-roof{ position:absolute; left:0; right:0; top:0; height:5px; background:var(--ac); }
.hc-e{ font-size:36px; width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:color-mix(in srgb, var(--ac) 22%, transparent); margin-bottom:6px; }
.house-card b{ font-family:var(--display); font-weight:600; font-size:20px; }
.house-card p{ font-size:13.5px; color:var(--muted); flex:1; }
.hc-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:8px; font-size:13px; }
.hc-foot .go{ color:var(--amber); font-weight:800; }
.due{ font-size:12px; font-weight:800; color:#1b1206; background:var(--amber); padding:3px 8px; border-radius:8px; }
@media (max-width:1060px){ .house-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .house-grid{ grid-template-columns:1fr 1fr; } .house-card{ min-height:0; } }
@media (max-width:400px){ .house-grid{ grid-template-columns:1fr; } }
.world-cta{ display:flex; align-items:center; gap:16px; padding:18px 22px; margin-top:26px; }
.world-cta .wc-e{ font-size:34px; }
.world-cta b{ font-family:var(--display); font-weight:600; font-size:18px; }
.world-cta .btn{ margin-left:auto; }
@media (max-width:560px){ .world-cta{ flex-wrap:wrap; } .world-cta .btn{ margin-left:0; width:100%; } }

/* ---------- house header ---------- */
.house-head{ position:relative; padding:28px 0 22px; margin-bottom:22px; border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, color-mix(in srgb, var(--ac) 18%, transparent), transparent); }
.house-head::before{ content:""; position:absolute; left:0; right:0; top:0; height:4px; background:var(--ac); }
.crumbs{ font-size:13px; font-weight:700; color:var(--muted); display:flex; gap:8px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.crumbs a:hover{ color:var(--amber); }
.crumbs .sep{ color:var(--dim); }
.hh-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; }
.house-head h1{ font-size:clamp(28px,3.6vw,40px); margin-bottom:4px; }
.house-tabs{ display:flex; gap:6px; flex-wrap:wrap; }
.house-tabs button{ display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:12px; border:1px solid var(--border); background:rgba(27,46,68,.45); font-weight:700; font-size:13.5px; }
.house-tabs button:hover{ background:rgba(27,46,68,.8); }
.house-tabs button.on{ border-color:var(--ac); background:color-mix(in srgb, var(--ac) 22%, rgba(27,46,68,.8)); }
@media (max-width:760px){ .house-tabs button span{ display:none; } .house-tabs button{ font-size:18px; padding:7px 10px; } }
html.embed .house-head{ padding-top:18px; }

/* ---------- lists ---------- */
.list-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:12px; }
.item{ display:flex; align-items:center; gap:14px; padding:14px 16px; text-align:left; transition:transform .15s, border-color .15s; position:relative; }
.item:hover{ transform:translateY(-3px); border-color:var(--border2); }
.item-e{ font-size:26px; width:46px; height:46px; flex-shrink:0; border-radius:13px; display:flex; align-items:center; justify-content:center; background:rgba(122,215,240,.08); }
.item-t{ display:flex; flex-direction:column; min-width:0; }
.item-t b{ font-family:var(--display); font-weight:600; font-size:16px; }
.item-t small{ font-size:12.5px; color:var(--dim); font-weight:600; }
.tick{ margin-left:auto; width:26px; height:26px; border-radius:50%; background:rgba(88,204,2,.2); color:#a9f06e; display:flex; align-items:center; justify-content:center; font-weight:900; flex-shrink:0; }
.cat{ font-size:19px; margin:26px 0 12px; }
.gram .cat:first-child{ margin-top:0; }
.seg{ display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; }
.seg button{ padding:9px 14px; border-radius:12px; font-weight:700; font-size:14px; border:1px solid var(--border); background:rgba(27,46,68,.45); }
.seg button.on{ border-color:var(--amber); color:var(--amber); background:rgba(255,179,71,.12); }
.notice{ padding:14px 16px; margin-bottom:14px; font-size:14px; color:var(--amber); }

/* ---------- vocab journey ---------- */
.vj-top{ display:flex; gap:20px; justify-content:space-between; align-items:center; padding:20px 22px; margin-bottom:22px; flex-wrap:wrap; }
.vj-top h3{ font-size:21px; margin-bottom:4px; }
.vj-top > div:first-child{ flex:1; min-width:240px; }
.vj-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.progress{ height:7px; border-radius:6px; background:rgba(255,255,255,.08); overflow:hidden; }
.progress.thick{ height:9px; margin-top:10px; }
.progress i{ display:block; height:100%; width:0; background:linear-gradient(90deg,var(--leaf),#9be15d); border-radius:6px; transition:width .4s ease; }
.vj-path{ position:relative; display:flex; flex-direction:column; gap:10px; max-width:680px; margin:0 auto; }
.vj-path::before{ content:""; position:absolute; left:50%; top:10px; bottom:10px; border-left:4px dotted rgba(122,215,240,.2); }
.vj-node{ position:relative; display:flex; align-items:center; gap:14px; width:calc(50% + 34px); padding:8px 16px 8px 8px; border-radius:44px; background:var(--card); border:1px solid var(--border); text-align:left; transition:transform .15s, border-color .15s; }
.vj-node:nth-child(odd){ align-self:flex-start; }
.vj-node:nth-child(even){ align-self:flex-end; flex-direction:row-reverse; text-align:right; padding:8px 8px 8px 16px; }
.vj-node:hover{ transform:scale(1.02); border-color:var(--border2); }
.vj-ring{ width:62px; height:62px; flex-shrink:0; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:conic-gradient(var(--leaf) calc(var(--p)*1%), rgba(255,255,255,.1) 0); }
.vj-emoji{ width:52px; height:52px; border-radius:50%; background:var(--mist); display:flex; align-items:center; justify-content:center; font-size:26px; }
.vj-meta{ display:flex; flex-direction:column; min-width:0; }
.vj-meta b{ font-family:var(--display); font-weight:600; font-size:15.5px; }
.vj-meta small{ font-size:12px; color:var(--dim); font-weight:600; }
.vj-here{ align-self:flex-start; font-size:10.5px; font-weight:800; color:#1b1206; background:var(--amber); padding:2px 7px; border-radius:6px; margin-bottom:3px; }
.vj-node:nth-child(even) .vj-here{ align-self:flex-end; }
.vj-node.here{ border-color:var(--amber); box-shadow:0 0 0 4px rgba(255,179,71,.18), 0 0 26px rgba(255,179,71,.25); }
.vj-node.done .vj-emoji{ box-shadow:inset 0 0 0 2px var(--leaf); }
@media (max-width:620px){
  .vj-path::before{ left:39px; }
  .vj-node, .vj-node:nth-child(even){ width:100%; align-self:stretch; flex-direction:row; text-align:left; padding:8px 16px 8px 8px; }
  .vj-node:nth-child(even) .vj-here{ align-self:flex-start; }
}

/* ---------- bottom sheet ---------- */
.sheet-back{ position:fixed; inset:0; z-index:200; background:rgba(6,10,18,.6); backdrop-filter:blur(3px); display:flex; align-items:flex-end; justify-content:center; padding:16px; animation:fade .2s; }
@keyframes fade{ from{ opacity:0; } }
.sheet{ width:100%; max-width:560px; padding:18px; background:var(--card2); animation:up .3s cubic-bezier(.16,1,.3,1); }
@keyframes up{ from{ transform:translateY(40px); opacity:0; } }
@media (min-width:700px){ .sheet-back{ align-items:center; } }
.sheet-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-family:var(--display); font-size:18px; }
.x{ width:32px; height:32px; border-radius:10px; background:rgba(255,255,255,.08); color:var(--muted); }
.modes{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.mode{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:14px 6px; border-radius:16px; border:1px solid var(--border); background:rgba(122,215,240,.06); text-align:center; transition:transform .15s, border-color .15s; }
.mode:hover:not([disabled]){ transform:translateY(-3px); border-color:var(--amber); }
.mode[disabled]{ opacity:.4; cursor:not-allowed; }
.mode-e{ font-size:26px; }
.mode b{ font-family:var(--display); font-weight:600; font-size:15px; }
.mode small{ font-size:11.5px; color:var(--dim); font-weight:600; }
@media (max-width:420px){ .modes{ grid-template-columns:1fr 1fr; } }
.fb-form{ display:flex; flex-direction:column; gap:10px; }
.fb-form input, .fb-form select, .fb-form textarea{ width:100%; padding:12px 14px; border-radius:12px; border:1.5px solid var(--border2); background:rgba(14,26,43,.6); }
.fb-form select option{ background:var(--night); }
.fb-btn{ position:fixed; left:16px; bottom:16px; z-index:40; padding:10px 14px; border-radius:14px; background:var(--card2); border:1px solid var(--border2); font-weight:700; font-size:13px; }
.fb-btn:hover{ border-color:var(--amber); }

/* ---------- round / exercise card ---------- */
.round{ max-width:680px; margin:0 auto; padding:18px 20px 24px; position:relative; overflow:hidden; border-top:4px solid var(--ac); }
.round-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.round-title{ font-family:var(--display); font-weight:600; font-size:17px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.round-count{ font-weight:800; font-size:13px; color:var(--muted); }
.round-body{ padding-top:18px; display:flex; flex-direction:column; gap:14px; animation:pop .35s cubic-bezier(.16,1,.3,1); }
@keyframes pop{ from{ opacity:0; transform:translateY(10px); } }
.ask{ font-weight:700; color:var(--muted); font-size:15px; }
.ask.big{ color:var(--text); font-size:19px; font-family:var(--display); font-weight:600; }
.word-head{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; padding:10px 0; }
.word-emoji{ font-size:50px; line-height:1; }
.word-big{ font-family:var(--display); font-weight:600; font-size:clamp(30px,5vw,40px); color:var(--glow); text-align:center; }
.word-big.de{ color:var(--amber); }
.word-mid{ font-family:var(--display); font-size:24px; color:var(--glow); }
.word-de{ font-family:var(--display); font-size:28px; color:var(--amber); text-align:center; }
.say{ width:44px; height:44px; border-radius:50%; background:rgba(122,215,240,.14); font-size:18px; transition:transform .15s; }
.say:hover{ transform:scale(1.1); }
.flash{ border-radius:18px; background:rgba(14,26,43,.5); border:1px solid var(--border); padding:18px; }
.flip-back{ border-top:1px dashed var(--border2); margin-top:10px; padding-top:14px; animation:pop .3s; }
.context{ text-align:center; color:var(--muted); font-style:italic; margin-top:6px; }
.choices{ display:flex; flex-direction:column; gap:8px; }
.choices.grid{ display:grid; grid-template-columns:1fr 1fr; }
@media (max-width:460px){ .choices.grid{ grid-template-columns:1fr; } }
.choice{ padding:13px 15px; border-radius:14px; border:1.5px solid var(--border2); background:rgba(122,215,240,.05); font-weight:700; font-size:15px; text-align:left; transition:transform .12s, background .15s, border-color .15s; }
.choice:hover{ background:rgba(122,215,240,.12); transform:translateY(-1px); }
.choices[data-locked] .choice{ cursor:default; transform:none; }
.choice.ok{ border-color:var(--leaf); background:rgba(88,204,2,.16); color:#c8f7a2; }
.choice.bad{ border-color:var(--danger); background:rgba(255,93,93,.14); color:#ffc2c2; animation:shake .4s; }
.fb{ padding:11px 14px; border-radius:12px; font-weight:700; font-size:14.5px; }
.fb.ok{ background:rgba(88,204,2,.14); color:#c8f7a2; }
.fb.bad{ background:rgba(255,93,93,.12); color:#ffc2c2; }
.next{ align-self:flex-end; }
.type-row{ display:flex; gap:8px; }
.type-in{ flex:1; min-width:0; padding:13px 15px; border-radius:14px; border:1.5px solid var(--border2); background:rgba(14,26,43,.6); font-size:17px; font-weight:600; }
.type-in:focus{ outline:none; border-color:var(--amber); }
.big-play{ width:74px; height:74px; margin:4px auto; border-radius:50%; background:var(--blue); font-size:28px; box-shadow:0 0 0 8px rgba(63,169,245,.15); transition:transform .15s; display:flex; align-items:center; justify-content:center; }
.big-play:hover{ transform:scale(1.06); }
.gap-sentence{ font-size:19px; line-height:1.7; text-align:center; }
.gap{ display:inline-block; min-width:70px; padding:0 8px; border-bottom:3px solid var(--border2); color:var(--glow); font-weight:800; text-align:center; }
.gap.cur{ border-color:var(--amber); color:var(--amber); }
.gap.ok{ border-color:var(--leaf); color:#c8f7a2; }
.gap.bad{ border-color:var(--danger); color:#ffc2c2; }
.peek summary{ cursor:pointer; color:var(--muted); font-size:13px; font-weight:700; }
.peek p{ font-size:14px; color:var(--muted); margin-top:8px; line-height:1.65; }
@keyframes shake{ 20%,60%{ transform:translateX(-5px); } 40%,80%{ transform:translateX(5px); } }
.shake{ animation:shake .4s; }

/* matching + workshop */
.match{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.match-col{ display:flex; flex-direction:column; gap:8px; }
.match-item, .ws-card{ padding:12px; border-radius:13px; border:1.5px solid var(--border2); background:rgba(122,215,240,.06); font-weight:700; transition:all .15s; }
.match-item.de{ color:var(--amber); }
.match-item.sel, .ws-card.sel{ border-color:var(--amber); background:rgba(255,179,71,.16); transform:scale(1.03); }
.match-item.gone{ opacity:.25; border-color:var(--leaf); pointer-events:none; }
.ws-pool{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; min-height:48px; }
.ws-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.ws-col{ display:flex; flex-direction:column; gap:6px; padding:10px; border-radius:14px; border:1.5px dashed var(--border2); background:rgba(14,26,43,.4); min-height:150px; text-align:left; }
.ws-col b{ font-size:13px; font-family:var(--display); font-weight:600; }
.ws-drop{ display:flex; flex-direction:column; gap:5px; }
.ws-card.placed{ border-color:var(--leaf); background:rgba(88,204,2,.14); padding:7px; font-size:13px; }
@media (max-width:520px){ .ws-cols{ grid-template-columns:1fr; } .ws-col{ min-height:70px; } }

/* reading */
.reading{ padding:20px 22px 26px; max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.reading h2{ font-size:28px; }
.reading .chip{ align-self:flex-start; }
.reading > .btn-fox{ align-self:flex-start; }
.reading-head{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.reader{ font-size:18px; line-height:1.85; color:#dbe8f3; }
.w{ position:relative; border-radius:4px; cursor:pointer; }
.w:hover{ background:rgba(122,215,240,.12); }
.w.known{ border-bottom:1.5px dotted rgba(255,179,71,.6); }
.w .bub{ display:none; }
.w.open{ background:rgba(255,179,71,.18); }
.w.open .bub{ display:block; position:absolute; left:50%; bottom:calc(100% + 6px); transform:translateX(-50%); white-space:nowrap; background:var(--amber); color:#1b1206; font-size:13px; font-weight:800; padding:4px 10px; border-radius:8px; z-index:5; line-height:1.4; max-width:80vw; overflow:hidden; text-overflow:ellipsis; }
.lesson-body{ display:flex; flex-direction:column; gap:10px; }
.lesson-sent{ font-size:18px; line-height:1.7; }
.tr{ display:block; font-size:14px; color:var(--muted); margin-top:2px; }
.tipbox{ padding:14px 16px; border-radius:14px; background:rgba(20,184,166,.1); border:1px solid rgba(20,184,166,.35); font-size:14.5px; color:#cfe6e2; line-height:1.6; }

/* listening */
.player{ display:flex; align-items:center; gap:14px; padding:12px 14px; border-radius:18px; background:rgba(63,169,245,.1); border:1px solid rgba(63,169,245,.35); }
.player .big-play{ width:56px; height:56px; font-size:20px; margin:0; box-shadow:none; flex-shrink:0; }
.eq{ display:flex; align-items:center; gap:3px; height:34px; flex:1; }
.eq i{ flex:1; background:var(--blue); border-radius:3px; height:30%; animation:eq 1.1s ease-in-out infinite; opacity:.8; }
@keyframes eq{ 50%{ height:100%; } }
.reveal-btn{ align-self:flex-start; font-size:13px; font-weight:800; color:var(--muted); border:1px dashed var(--border2); border-radius:10px; padding:7px 11px; }
.transcript{ font-size:17px; color:#dbe8f3; font-style:italic; }

/* grammar */
.rule{ padding:14px 16px; border-radius:14px; background:rgba(20,184,166,.1); border:1px solid rgba(20,184,166,.35); }
.rule-t{ font-weight:800; font-size:13px; color:#8ff0e0; margin-bottom:4px; }
.rule p{ color:#cfe6e2; font-size:15px; }

/* speaking */
.speak-intro{ max-width:620px; margin:0 auto; padding:28px 24px; text-align:center; display:flex; flex-direction:column; gap:12px; align-items:center; }
.mic-big{ font-size:54px; }
.prompt{ text-align:center; padding:18px; border-radius:16px; background:rgba(76,185,68,.1); border:1px solid rgba(76,185,68,.35); font-family:var(--display); font-weight:600; font-size:20px; }
.prompt small{ display:block; font-family:var(--body); font-size:12px; color:var(--muted); margin-top:4px; }
.mic{ width:84px; height:84px; margin:4px auto; border-radius:50%; background:var(--green); font-size:34px; position:relative; transition:transform .15s; }
.mic:hover{ transform:scale(1.05); }
.mic.rec::before, .mic.rec::after{ content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--green); animation:ripple 1.6s ease-out infinite; }
.mic.rec::after{ animation-delay:.8s; }
@keyframes ripple{ to{ transform:scale(1.9); opacity:0; } }
.heard{ text-align:center; font-weight:700; color:#dbe8f3; min-height:1em; }
.hint{ color:var(--amber); font-weight:700; }

/* result */
.result{ text-align:center; padding:10px 0; display:flex; flex-direction:column; align-items:center; gap:10px; }
.result-stars{ font-size:40px; letter-spacing:4px; animation:pop .5s; }
.result h2{ font-size:30px; }
.result p{ color:var(--muted); font-size:16px; }
.result-reward{ display:flex; gap:10px; }
.result-reward span{ font-weight:800; padding:6px 12px; border-radius:10px; background:rgba(255,179,71,.14); color:var(--amber); }
.result-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:8px; }
.confetti{ position:absolute; top:-10px; width:8px; height:14px; border-radius:2px; animation:fall 2s ease-in forwards; pointer-events:none; }
@keyframes fall{ to{ top:110%; transform:rotate(540deg); opacity:.2; } }

/* embed: no chrome, full focus on the content */
html.embed .fb-btn{ display:none; }
html.embed main{ padding-bottom:30px; }

/* ---------- Bestenliste (leaderboard) + account sheet ---------- */
.lb-list{ padding:6px; display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.lb-row{ display:grid; grid-template-columns:2.4rem 1fr auto auto; align-items:center; gap:10px; padding:10px 14px; border-radius:12px; border-left:3px solid var(--border); }
.lb-row.lb-me{ border-left-color:var(--amber); background:rgba(255,179,71,.1); }
.lb-rank{ font-weight:800; text-align:center; color:var(--muted); }
.lb-name{ font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lb-xp{ font-weight:700; white-space:nowrap; }
.lb-streak{ color:var(--muted); white-space:nowrap; }
.fb-form label{ display:block; margin:10px 0 6px; font-size:13px; }
