@import url('./typography.css');
/* Shared action theme. Keep choice cards and movement controls structurally distinct. */
:root{--action-green:#306b53;--action-green-hover:#255a44;--action-cream:#f0f4eb;--action-ink:#355c49;--action-border:#d7e2d3;--action-focus:#b8882f;--action-radius:14px}
body :is(.primary-button,.secondary-button,.demo-primary){font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;font-size:16px;font-weight:600;line-height:1.4;border-radius:var(--action-radius);min-height:48px;padding:12px 18px;cursor:pointer;transition:background .15s,box-shadow .15s,transform .15s}
body :is(.secondary-button){background:var(--action-cream);color:var(--action-ink);border:1px solid var(--action-border);box-shadow:none}
body :is(.secondary-button):hover:not(:disabled){background:#e5eedf}
body :is(.primary-button,.demo-primary),#lesson-content>.primary-button{background:var(--action-green);color:#fff;border:1px solid transparent;border-radius:var(--action-radius);font-size:16px;min-height:48px;box-shadow:0 3px 0 #204d3a}
body :is(.primary-button,.demo-primary):hover:not(:disabled){background:var(--action-green-hover)}
body :is(.primary-button,.demo-primary):active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #204d3a}
body :is(.close-dialog,.dialog-top>.secondary-button){flex:0 0 auto;width:auto;min-width:40px;min-height:40px;margin:0;padding:8px 12px;border:1px solid var(--action-border);border-radius:12px;background:#fffdf7;color:var(--action-ink);box-shadow:none;font-size:14px;font-weight:600;cursor:pointer}
body button:focus-visible{outline:3px solid var(--action-focus);outline-offset:4px}
body :is(.primary-button,.secondary-button,.demo-primary):disabled{opacity:.5;cursor:not-allowed;box-shadow:none;transform:none}
body :is(.primary-button,.secondary-button).danger{background:#fff1ed;color:#963e32;border:1px solid #e2bcb3;box-shadow:none}
@media(prefers-reduced-motion:reduce){body :is(.primary-button,.secondary-button,.demo-primary){transition:none}}

/* Speaking: one clear target, quiet secondary audio actions, primary record action. */
.tutorial-target-label{font:600 20px/1.4 "Avenir Next",Avenir,"Segoe UI",sans-serif;color:var(--ink);margin:12px 0 6px;text-align:center}
.tutorial-panel .tutorial-target-word{font:700 36px/1.25 "Avenir Next",Avenir,"Segoe UI",sans-serif;color:#244d3b;margin:4px 0 18px;text-align:center}
.tutorial-audio-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
body .tutorial-audio-actions .secondary-button{width:auto;flex:0 1 auto;min-height:48px;margin:0;padding:8px 16px;font-weight:600}
body #mic-button{width:88px;height:88px;min-height:88px;background:#c73c45;color:#fff;border:3px solid #fff7f3;box-shadow:0 0 0 7px #f8e4e4;font-size:34px}
body #mic-button:hover:not(:disabled){background:#ad2934}
body #mic-button.recording{background:#a92130;box-shadow:0 0 0 7px #f3cdd0}
body #mic-button:disabled{opacity:.55}
@media(orientation:landscape){
 body .lesson-card:has(#mic-button) #lesson-content{margin-bottom:178px}
 body #mic-button{left:50%;right:auto;bottom:20px;margin:0 0 0 -44px}
 body #mic-label{left:12px;right:12px;bottom:124px;width:auto;height:auto;min-height:26px;text-align:center}
}
@media(orientation:landscape) and (max-height:500px){
 body #mic-button{width:72px;height:72px;min-height:72px;margin-left:-36px;bottom:14px}
 body #mic-label{bottom:100px}
 body .lesson-card:has(#mic-button) #lesson-content{margin-bottom:156px}
 .tutorial-panel .tutorial-target-word{font-size:30px;margin-bottom:10px}
}
