:root {
  --ink: #263653;
  --muted: #75839b;
  --blue: #5c8fe8;
  --blue-dark: #4778d2;
  --blue-soft: #eaf3ff;
  --line: #e7edf6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(71, 112, 173, .11);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito', sans-serif; color: var(--ink); background: #f4f8ff; min-height: 100vh; overflow-x: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
.page-glow { position: fixed; z-index: -1; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.glow-one { width: 440px; height: 440px; top: -190px; right: -90px; background: radial-gradient(circle, #d9eaff 0, rgba(217,234,255,0) 70%); }
.glow-two { width: 500px; height: 500px; bottom: -230px; left: -170px; background: radial-gradient(circle, #e6e0ff 0, rgba(230,224,255,0) 70%); }
.shell { width: min(1200px, calc(100% - 44px)); margin: 0 auto; padding: 22px 0 26px; }
.topbar { height: 48px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.brand { color: #304361; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 1000; letter-spacing: .08em; }
.brand-mark { height: 34px; width: 34px; border-radius: 12px; display: grid; place-items: center; color: white; font-size: 22px; background: linear-gradient(140deg, #75b4f8, #8a85ea); box-shadow: 0 7px 18px #7fa8e844; }
.brand-accent { color: #6795e4; }
.top-pill { background: #fff; border: 1px solid #e6edf8; border-radius: 30px; padding: 8px 14px; font-size: 10px; color: #7283a0; letter-spacing: .1em; font-weight: 900; }
.pulse-dot, .playing-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #65c7a7; margin-right: 6px; box-shadow: 0 0 0 4px #e5f7f0; }
.hero { min-height: 210px; background: linear-gradient(110deg, #e8f2ff 0%, #f0f0ff 68%, #f9efff 100%); border: 1px solid #e5edfb; border-radius: 27px; padding: 28px 38px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow { color: #6c8fd0; font-weight: 1000; font-size: 11px; letter-spacing: .13em; display: flex; align-items: center; gap: 8px; }
h1 { font-size: clamp(38px, 5vw, 58px); margin: 6px 0 3px; line-height: 1.03; letter-spacing: -.04em; color: #2c4264; font-weight: 1000; }
h1 span { color: #6c8fe1; }
.hero-text { margin: 9px 0 16px; font-size: 15px; color: #637590; max-width: 560px; }
.hero-text strong { color: #3d69bd; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span { border: 1px solid #dce7f7; border-radius: 25px; padding: 7px 11px; background: #ffffffb8; font-size: 11px; color: #5f7394; font-weight: 800; }
.hero-art { width: 230px; height: 170px; position: relative; flex: 0 0 230px; margin-right: 20px; }
.sun-disc { position: absolute; width: 118px; height: 118px; border-radius: 50%; background: linear-gradient(145deg, #ffdf9b, #ffc9b8); right: 36px; top: 6px; display: grid; place-items: center; color: #fff; font-size: 62px; opacity: .9; box-shadow: 0 10px 25px #f0bfad55; }
.yoga-figure { position: absolute; width: 142px; height: 150px; right: 31px; bottom: 4px; }
.yoga-figure span { display: block; position: absolute; background: #6b83cf; border-radius: 20px; }
.yoga-figure .head { width: 26px; height: 26px; border-radius: 50%; left: 59px; top: 6px; background: #ffd1ae; border: 3px solid #fff; }
.yoga-figure .body { width: 24px; height: 64px; left: 60px; top: 35px; transform: rotate(6deg); background: #9b83de; }
.yoga-figure .arm { height: 11px; width: 62px; top: 42px; transform-origin: 5px 50%; }
.yoga-figure .arm.left { left: 15px; transform: rotate(-32deg); }
.yoga-figure .arm.right { right: 7px; transform: rotate(-145deg); }
.yoga-figure .leg { height: 11px; width: 71px; top: 94px; transform-origin: 5px 50%; background: #648bdc; }
.yoga-figure .leg.left { left: 57px; transform: rotate(20deg); }
.yoga-figure .leg.right { left: 58px; transform: rotate(143deg); }
.spark { position: absolute; color: #f2b95c; font-size: 24px; }
.spark-a { left: 10px; top: 20px; }.spark-b { right: 5px; top: 35px; color: #a18ee9; }
.art-caption { position: absolute; left: 0; bottom: 6px; transform: rotate(-8deg); font-weight: 1000; color: #738bd1; font-size: 12px; letter-spacing: .11em; }
.instruction-strip { margin: 15px 0 17px; display: flex; align-items: center; justify-content: space-around; gap: 12px; padding: 13px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 18px #6b91c10a; }
.step { display: flex; align-items: center; gap: 10px; }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: #eaf2ff; color: #5d87d4; font-weight: 1000; font-size: 13px; }
.step b, .step small { display: block; }.step b { font-size: 12px; }.step small { color: #95a1b4; font-size: 10px; margin-top: 1px; }.step-arrow { color: #b3c0d3; font-size: 20px; }
.work-area { display: grid; grid-template-columns: 1.06fr .94fr; gap: 17px; align-items: stretch; }
.panel { background: #fff; border: 1px solid #e7edf6; border-radius: 22px; padding: 21px; box-shadow: var(--shadow); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.section-kicker { font-size: 9px; letter-spacing: .15em; font-weight: 1000; color: #92a1b9; margin-bottom: 3px; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }.heading-emoji { font-size: 18px; }
.camera-status, .video-count { white-space: nowrap; background: #f5f7fb; border-radius: 30px; color: #8a98ad; font-size: 9px; font-weight: 900; padding: 7px 10px; }
.camera-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: #c1cad7; }.camera-status.active { background: #e9f8f2; color: #439b7e; }.camera-status.active i { background: #4abd91; }
.video-count { color: #6d8fd4; background: #edf4ff; letter-spacing: .1em; }
.camera-stage { height: 302px; border-radius: 16px; background: linear-gradient(145deg, #eaf3ff, #edf0ff); overflow: hidden; position: relative; display: grid; place-items: center; border: 1px solid #e2ebf8; }
#cameraVideo { width: 100%; height: 100%; object-fit: cover; display: none; transform: scaleX(-1); background: #17243a; }
.camera-stage.camera-on #cameraVideo { display: block; }
.camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.camera-stage.camera-on .camera-placeholder { display: none; }
.placeholder-icon { width: 62px; height: 62px; background: #fff; border-radius: 21px; display: grid; place-items: center; font-size: 29px; box-shadow: 0 9px 22px #7f9dc92c; margin-bottom: 12px; }
.camera-placeholder h3 { margin: 0 0 5px; font-size: 14px; }.camera-placeholder p { margin: 0; max-width: 250px; color: #8796ad; font-size: 11px; }
.camera-corner { width: 17px; height: 17px; border-color: #8eb0ec; border-style: solid; position: absolute; z-index: 2; opacity: .75; }.corner-tl { top: 9px; left: 9px; border-width: 2px 0 0 2px; border-radius: 5px 0 0; }.corner-tr { top: 9px; right: 9px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }.corner-bl { bottom: 9px; left: 9px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }.corner-br { bottom: 9px; right: 9px; border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.camera-tip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 36px); border-radius: 25px; padding: 7px 11px; background: #ffffffdc; color: #71819a; font-size: 9px; text-align: center; z-index: 3; }
.recording-overlay { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 4; color: white; text-shadow: 0 1px 5px #0008; font-weight: 1000; }.rec-label { background: #e84d68; border-radius: 20px; padding: 5px 10px; font-size: 10px; letter-spacing: .08em; }.rec-label i { display: inline-block; background: white; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; animation: blink .8s infinite; }.record-count { font-size: 19px; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: .2; } }
.camera-controls { display: flex; gap: 9px; margin-top: 13px; }
.btn { border: 0; border-radius: 12px; padding: 11px 15px; font-size: 11px; font-weight: 1000; transition: transform .15s, box-shadow .15s, opacity .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 7px 15px #6c8cc22b; }.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #6a9ce9, #7c8ce3); box-shadow: 0 7px 14px #7496dc38; }
.btn-record { color: #fff; background: linear-gradient(135deg, #f18c9a, #e97793); box-shadow: 0 7px 14px #e9779330; flex: 1; }.record-circle { width: 9px; height: 9px; border-radius: 50%; background: #fff; }.btn-record:disabled { box-shadow: none; }
.btn-light { background: #edf3fc; color: #6681ad; }.record-progress-wrap { padding: 12px 2px 0; }.progress-meta { display: flex; justify-content: space-between; font-size: 10px; color: #8291a8; margin-bottom: 6px; }.progress-meta strong { color: #638cdb; }.progress-track { height: 7px; background: #edf1f7; border-radius: 20px; overflow: hidden; }.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #7eaae9, #9f8be9); border-radius: 20px; transition: width .2s linear; }
.camera-note { margin-top: 11px; color: #98a4b6; font-size: 9px; display: flex; gap: 6px; align-items: center; }.camera-note span { font-size: 13px; }
.tutorial-intro { margin: -7px 0 12px; color: #8290a5; font-size: 11px; line-height: 1.5; }
.video-options { display: grid; gap: 7px; margin-bottom: 13px; }
.video-option { border: 1px solid #e9eef6; background: #fff; border-radius: 13px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); transition: .15s; }
.video-option:hover { border-color: #cadcf8; background: #f8fbff; }.video-option.active { background: #f0f6ff; border-color: #9cbcf0; box-shadow: inset 3px 0 #6f9be4; }
.option-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; flex: 0 0 36px; }.option-icon.yoga { background: #e8f5f0; }.option-icon.dance { background: #fff1e9; }.option-icon.move { background: #f1edff; }
.option-copy { min-width: 0; flex: 1; }.option-copy b, .option-copy small { display: block; }.option-copy b { font-size: 11px; }.option-copy small { color: #98a4b6; font-size: 9px; margin-top: 1px; }.option-arrow { color: #9dafc9; font-size: 23px; line-height: 1; }
.video-frame-wrap { border: 1px solid #e7edf6; border-radius: 15px; overflow: hidden; background: #1b2840; }.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; }.video-caption strong, .video-caption small { display: block; }.video-caption strong { font-size: 10px; }.video-caption small { font-size: 9px; color: #9aa6b7; margin-top: 2px; }.video-caption a { font-size: 9px; font-weight: 900; color: #6b90d8; text-decoration: none; white-space: nowrap; }.video-caption a:hover { text-decoration: underline; }
.video-tip { display: flex; gap: 8px; align-items: flex-start; background: #fff9ec; border-radius: 11px; margin-top: 11px; padding: 9px 11px; }.video-tip span { font-size: 14px; }.video-tip p { margin: 0; font-size: 9px; line-height: 1.5; color: #988966; }.video-tip strong { color: #8c7544; }
.safety-strip { display: flex; align-items: center; gap: 13px; padding: 15px 19px; margin-top: 16px; background: #eaf5ff; border: 1px solid #dfebf9; border-radius: 17px; }.safety-icon { width: 39px; height: 39px; border-radius: 13px; background: white; display: grid; place-items: center; font-size: 19px; flex: 0 0 39px; }.safety-strip strong { font-size: 11px; color: #5275ad; }.safety-strip p { margin: 2px 0 0; color: #7f91aa; font-size: 10px; line-height: 1.45; }
footer { padding: 18px 4px 0; text-align: center; color: #a0adbf; font-size: 10px; }footer span:first-child { color: #7796ce; font-weight: 1000; letter-spacing: .1em; }.footer-star { color: #edbd65; }
.result-card { margin-top: 15px; padding: 14px; border: 1px solid #dceee5; background: #f4fcf7; border-radius: 15px; }.result-title { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }.result-title > span { font-size: 23px; }.result-title h3 { font-size: 14px; margin: 0; color: #39775d; }.result-title p { margin: 1px 0 0; color: #82a293; font-size: 10px; }.recorded-video { width: 100%; max-height: 230px; background: #1b2840; border-radius: 10px; }.result-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }.download-btn { background: #4eaa83; box-shadow: none; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); z-index: 20; max-width: calc(100% - 32px); background: #263653; color: white; padding: 11px 16px; font-size: 11px; border-radius: 12px; box-shadow: 0 8px 24px #26365333; opacity: 0; pointer-events: none; transition: .25s; text-align: center; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 920px) { .work-area { grid-template-columns: 1fr; }.camera-stage { height: min(54vw, 430px); min-height: 260px; }.tutorial-panel { order: 2; }.hero-art { margin-right: 0; transform: scale(.85); transform-origin: right center; } }
@media (max-width: 620px) { .shell { width: min(100% - 24px, 520px); padding-top: 12px; }.topbar { margin-bottom: 12px; }.top-pill { font-size: 8px; padding: 7px 9px; }.hero { padding: 22px 20px; min-height: 220px; }.hero-art { position: absolute; right: -26px; bottom: -15px; opacity: .37; transform: scale(.85); }.hero-copy { max-width: 100%; }.hero-text { max-width: 90%; font-size: 13px; }.instruction-strip { padding: 11px; gap: 6px; justify-content: space-between; }.step { gap: 6px; }.step-number { width: 25px; height: 25px; }.step b { font-size: 10px; }.step small { display: none; }.step-arrow { font-size: 15px; }.panel { padding: 15px; border-radius: 18px; }.panel-heading { flex-direction: column; gap: 7px; }.camera-status, .video-count { align-self: flex-start; }.camera-stage { height: 63vw; min-height: 220px; }.camera-controls { flex-direction: column; }.btn { min-height: 42px; }.video-caption { align-items: flex-start; flex-direction: column; }.video-caption a { margin-left: 17px; }.safety-strip { align-items: flex-start; padding: 13px; } }

/* Desktop layout: wide webcam at left, compact YouTube player at right. */
.work-area { grid-template-columns: minmax(0, 1.65fr) minmax(285px, .78fr); align-items: start; }
.camera-panel { min-width: 0; }
.tutorial-panel { min-width: 0; }
.camera-stage { height: clamp(330px, 34vw, 430px); }
.video-frame-wrap { max-width: 350px; margin: 0 auto 13px; }
.video-frame { aspect-ratio: 16 / 9; }
.video-caption { padding: 8px 10px; }
.video-caption a { font-size: 9px; }
.video-options { gap: 6px; margin-bottom: 0; }
.video-option { padding: 7px 8px; gap: 8px; }
.option-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
.option-copy b { font-size: 10px; }
.option-copy small { font-size: 8px; }
.video-tip { margin-top: 10px; }
@media (max-width: 920px) {
  .work-area { grid-template-columns: 1fr; }
  .camera-stage { height: min(54vw, 430px); min-height: 260px; }
  .video-frame-wrap { max-width: 420px; }
}
@media (max-width: 620px) {
  .camera-stage { height: 63vw; min-height: 220px; }
  .video-frame-wrap { max-width: 100%; }
}

/* Gaya Hobiku and teacher panel */
.top-actions { display:flex; align-items:center; gap:10px; }
.teacher-open { border:1px solid #dbe7f7; border-radius:999px; background:#fff; color:#5676b2; padding:9px 13px; font-size:11px; font-weight:900; }
.teacher-open:hover { background:#f1f6ff; }
.student-details { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.student-details label, .teacher-dialog label { display:grid; gap:6px; color:#61748f; font-size:11px; font-weight:900; }
.student-details input, .teacher-dialog input { width:100%; min-width:0; border:1px solid #dfe8f5; border-radius:11px; padding:11px 12px; font:inherit; color:var(--ink); outline:none; background:#fbfdff; }
.student-details input:focus, .teacher-dialog input:focus { border-color:#88ace8; box-shadow:0 0 0 3px #dceaff; }
.teacher-modal { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:18px; background:#1f2e4788; overflow:auto; }
.teacher-dialog { position:relative; width:min(720px,100%); max-height:90vh; overflow:auto; border-radius:22px; padding:25px; background:#fff; box-shadow:0 22px 80px #15243b55; }
.modal-close { position:absolute; right:14px; top:10px; border:0; background:#edf3fc; color:#50658a; border-radius:50%; width:34px; height:34px; font-size:24px; line-height:1; }
.teacher-dialog h2 { margin:4px 0 10px; }
.teacher-explain { color:#7889a2; font-size:12px; line-height:1.6; }
.teacher-dialog .btn { margin-top:12px; }
.teacher-hint { color:#9aa6b7; font-size:10px; line-height:1.55; margin-top:12px; }
.privacy-warning { padding:10px 12px; background:#fff8e9; border-radius:10px; color:#8b7444; }
.recordings-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; margin:16px 0; }
.recording-item { border:1px solid #e5edf7; border-radius:14px; padding:12px; min-width:0; }
.recording-item strong { display:block; font-size:12px; overflow-wrap:anywhere; }
.recording-item p { color:#8796ad; font-size:10px; line-height:1.5; }
.teacher-video { width:100%; max-height:190px; border-radius:9px; background:#1b2840; }
.recording-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.recording-actions .btn { margin:0; font-size:10px; padding:9px 11px; }
.empty-recordings { background:#f6f9fe; border-radius:12px; padding:18px; color:#8492a7; font-size:12px; }
@media (max-width:620px) {
  .top-actions { gap:5px; }
  .top-pill { display:none; }
  .teacher-open { font-size:9px; padding:8px 10px; }
  .student-details { grid-template-columns:1fr; }
  .teacher-dialog { padding:20px 15px; }
}
