:root{color-scheme:light;--paper:#f2f2f2;--white:#fff;--ink:#171717;--muted:#737373;--line:#dedede;--soft-shadow:8px 8px 20px #0000000c,-8px -8px 20px #ffffff;--inset-shadow:inset 4px 4px 9px #00000012,inset -4px -4px 9px #ffffff}*{box-sizing:border-box}html{min-width:320px;background:var(--paper)}body{margin:0;color:var(--ink);background:var(--paper);font-family:Arial,PingFang SC,Apple SD Gothic Neo,Malgun Gothic,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.35}button:focus-visible,input:focus-visible{outline:2px solid #171717;outline-offset:5px}button{color:inherit}::selection{background:#ccc;color:#111}button svg{flex-shrink:0}audio{display:none}h1,h2,h3,p{margin:0}button{border:0}input{accent-color:#171717}.rain-app{width:min(1130px,calc(100% - 88px));margin:0 auto;padding:35px 0 25px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:37px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#363636,#080808);color:#fff;font-family:Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:23px;box-shadow:4px 5px 10px #00000020,-4px -4px 10px #fff}.brand-title{display:block;font-family:Songti SC,Georgia,serif;font-size:22px;font-weight:600;letter-spacing:2px;line-height:1.4}.brand-sub{display:block;font-size:10px;letter-spacing:2px;color:#777;margin-top:4px}.header-actions{display:flex;align-items:center;gap:15px}.header-note{font-size:12px;color:#888;letter-spacing:1px;margin-right:13px}.round-button{width:44px;height:44px;border:1px solid #ffffffc9;border-radius:50%;display:inline-grid;place-items:center;background:linear-gradient(145deg,#fafafa,#e9e9e9);box-shadow:var(--soft-shadow);transition:transform .18s,box-shadow .18s,background .18s}.round-button:hover:not(:disabled){transform:translateY(-1px)}.round-button:active:not(:disabled){box-shadow:var(--inset-shadow);transform:translateY(0)}.ambient-button.is-on{background:linear-gradient(145deg,#353535,#111);color:#fff;border-color:#333;box-shadow:5px 5px 13px #00000025,-5px -5px 13px #fff}.soft-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 19px;border-radius:25px;border:1px solid #ffffffc9;background:linear-gradient(145deg,#fafafa,#ebebeb);box-shadow:var(--soft-shadow);font-size:12px;letter-spacing:.5px}.soft-button:hover{box-shadow:5px 5px 12px #00000012,-5px -5px 12px #fff}.practice-layout{display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);gap:38px;align-items:stretch}.scene-panel{position:relative;min-height:592px;overflow:hidden;border-radius:38px;border:7px solid #f7f7f7;background:#111;box-shadow:13px 16px 32px #00000016,-10px -10px 24px #fff}.scene-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:51% 50%;filter:grayscale(1) brightness(.83)}.scene-shade{position:absolute;inset:0;background:linear-gradient(180deg,#00000018,#0000 35%,#00000025 55%,#000000a6)}.scene-top{position:absolute;inset:23px 23px auto;display:flex;align-items:center;justify-content:space-between;gap:10px}.scene-label{display:inline-flex;align-items:center;gap:7px;color:#fff;border:1px solid #ffffff40;background:#ffffff13;backdrop-filter:blur(14px);padding:8px 12px;border-radius:25px;font-size:10px;letter-spacing:1px}.scene-small{color:#ffffffa6;font-size:9px;letter-spacing:2px}.scene-caption{position:absolute;left:32px;right:25px;bottom:104px;color:#fff}.scene-korean{font-size:11px;letter-spacing:2px;color:#ffffffb3}.scene-caption h1{font-family:Songti SC,Georgia,serif;font-weight:400;font-size:36px;line-height:1.4;letter-spacing:4px;margin:13px 0 11px}.scene-caption p{font-size:11px;letter-spacing:1.2px;color:#ffffffa6}.scene-sound{position:absolute;bottom:26px;left:25px;right:25px;display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:28px;color:#fff;background:linear-gradient(120deg,#ffffff24,#ffffff0c);border:1px solid #ffffff38;backdrop-filter:blur(14px);box-shadow:inset 1px 1px #ffffff20;font-size:10px;letter-spacing:.5px;text-align:left}.scene-sound-icon{margin-left:auto;width:24px;height:24px;display:grid;place-items:center;background:#ffffff18;border-radius:50%}.sound-bars{display:flex;align-items:center;gap:3px;height:17px;width:22px}.sound-bars i{display:block;width:2px;border-radius:2px;background:currentColor;height:7px}.sound-bars i:nth-child(2){height:15px}.sound-bars i:nth-child(3){height:11px}.sound-bars i:nth-child(4){height:5px}.sound-bars.is-moving i{animation:wave-height 1s ease-in-out infinite alternate}.sound-bars.is-moving i:nth-child(2){animation-delay:-.6s}.sound-bars.is-moving i:nth-child(3){animation-delay:-.3s}.sound-bars.is-moving i:nth-child(4){animation-delay:-.8s}@keyframes wave-height{to{transform:scaleY(.4)}}.practice-panel{display:flex;flex-direction:column;padding:25px 29px 26px;border:1px solid #fff;border-radius:38px;background:linear-gradient(145deg,#fafafa,#eee);box-shadow:12px 13px 28px #0000000b,-12px -12px 28px #fff;min-width:0}.practice-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.small-label{font-size:10px;letter-spacing:1.5px;color:#7b7b7b;line-height:1.6}.practice-meta{font-size:10px;color:#929292;letter-spacing:.5px}.conversation-stage{padding:52px 3px 15px;flex:1;display:flex;flex-direction:column;justify-content:center;min-height:315px}.speaker-row{display:flex;align-items:center;gap:12px;margin-bottom:25px}.speaker-badge{display:inline-flex;align-items:center;gap:8px;border-radius:22px;background:#eaeaea;box-shadow:inset 2px 2px 5px #0000000a,inset -2px -2px 5px #fff;padding:8px 13px;font-size:11px;color:#777}.speaker-dot{width:5px;height:5px;background:#666;border-radius:50%}.self-badge{background:#171717;color:#fff;box-shadow:3px 3px 8px #00000012}.self-badge .speaker-dot{background:#fff}.playback-button{width:30px;height:30px;box-shadow:3px 3px 8px #0000000d,-3px -3px 8px #fff}.subtitle-space{min-height:130px}.korean-line{font-family:Apple SD Gothic Neo,Malgun Gothic,Noto Sans KR,Arial,sans-serif;font-size:29px;line-height:1.65;font-weight:500;letter-spacing:-.7px;word-break:keep-all;overflow-wrap:anywhere}.word-button{display:inline;padding:2px 0;background:transparent;border-radius:5px;line-height:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}.word-button:hover{background:#00000009;box-shadow:0 2px #999}.chinese-line{font-size:13px;line-height:1.9;color:#777;margin-top:18px;letter-spacing:.3px;word-break:break-word}.chinese-primary{font-family:Songti SC,Georgia,serif;font-size:25px;line-height:1.8;color:#333;margin-top:0}.sentence-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:24px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;font-size:11px;line-height:1.7;padding:5px 0;color:#666}.text-button:hover{color:#111}.tap-hint{font-size:10px;color:#a0a0a0}.practice-bottom{padding-top:14px}.turn-hint{font-size:11px;line-height:1.8;text-align:center;color:#8a8a8a;margin-bottom:17px;min-height:20px}.main-controls{display:flex;align-items:center;justify-content:center;gap:17px}.previous-button{width:43px;height:43px}.main-button{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(100%,285px);min-height:62px;padding:8px 10px 8px 29px;background:linear-gradient(130deg,#080808,#343434);color:#fff;border-radius:35px;border:1px solid #474747;box-shadow:7px 9px 17px #00000026,-6px -6px 15px #fff;letter-spacing:2px;font-size:15px;transition:transform .18s,box-shadow .18s}.main-button:hover{transform:translateY(-2px);box-shadow:8px 13px 22px #0000002b,-6px -6px 15px #fff}.main-button:active{transform:translateY(0)}.main-button-circle{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border:1px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff,#dedede);color:#111;box-shadow:2px 2px 6px #0000004d,-1px -1px 4px #fff6}.replay-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0 28px}.replay-controls>span{width:1px;height:12px;background:#d6d6d6}.replay-controls .text-button{font-size:10px;color:#888}.progress-caption{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#929292;margin-bottom:10px;letter-spacing:1px}.progress-caption strong{font-size:12px;font-weight:400;color:#333}.progress-total{font-size:10px;color:#aaa}.progress-range{display:block;width:100%;height:5px;margin:10px 0 7px;appearance:none;border:0;border-radius:4px;box-shadow:inset 1px 1px 3px #0000001a,inset -1px -1px 2px #fff;background:linear-gradient(to right,#191919 var(--progress),#ddd var(--progress))}.progress-range::-webkit-slider-thumb{appearance:none;width:15px;height:15px;border-radius:50%;background:linear-gradient(135deg,#fff,#dedede);border:1px solid #fff;box-shadow:1px 2px 5px #0003}.progress-range::-moz-range-thumb{width:15px;height:15px;border-radius:50%;background:#eee;border:1px solid #fff;box-shadow:1px 2px 5px #0003}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 6px 0;font-size:9px;color:#999;letter-spacing:.7px}.site-footer>span:first-child{display:flex;align-items:center;gap:7px}.footer-dot{width:4px;height:4px;border-radius:50%;background:#999}.site-footer>span:last-child{font-family:Apple SD Gothic Neo,Malgun Gothic,sans-serif;font-size:10px;letter-spacing:1px}.notice{position:fixed;bottom:23px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:15px;max-width:calc(100% - 32px);padding:14px 16px 14px 20px;border-radius:16px;background:#171717;color:#fff;box-shadow:0 8px 28px #00000026;font-size:12px;z-index:20}.notice button{display:grid;place-items:center;background:transparent;color:#fff;padding:3px}.app-dialog{margin:auto;padding:0;width:min(530px,calc(100% - 36px));max-height:calc(100dvh - 48px);overflow:auto;color:#171717;background:#f4f4f4;border:1px solid #fff;border-radius:29px;box-shadow:0 28px 80px #00000040}.app-dialog::backdrop{background:#0000004d;backdrop-filter:blur(5px)}.dialog-content{padding:29px}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.dialog-header h2{font-size:22px;font-weight:500;line-height:1.5;margin-top:5px;word-break:keep-all;overflow-wrap:anywhere}.dialog-header .round-button{width:36px;height:36px;flex-shrink:0}.settings-section+.settings-section{border-top:1px solid #dedede;margin-top:28px;padding-top:25px}.settings-section h3{font-size:14px;font-weight:500;letter-spacing:1px}.section-note{font-size:11px;color:#888;line-height:1.8;margin:7px 0 17px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;font-size:12px;color:#555}.segmented-control{display:flex;gap:3px;padding:4px;border:1px solid #fff;border-radius:22px;background:#e9e9e9;box-shadow:var(--inset-shadow)}.segmented-control button{font-size:11px;min-height:32px;padding:4px 14px;border-radius:18px;background:transparent;color:#777;white-space:nowrap}.segmented-control button[aria-pressed=true]{background:linear-gradient(145deg,#333,#111);color:#fff;box-shadow:2px 2px 5px #00000026}.volume-row+.volume-row{margin-top:20px}.volume-row label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#666;gap:15px;margin-bottom:12px}.volume-row label>span:first-child{display:flex;align-items:center;gap:8px}.volume-row label>span:last-child{font-size:10px;color:#999}.volume-row input{display:block;width:100%;height:5px;appearance:none;background:#d6d6d6;border-radius:4px;box-shadow:inset 1px 1px 3px #0000001a,inset -1px -1px 2px #fff}.volume-row input::-webkit-slider-thumb{appearance:none;width:19px;height:19px;background:linear-gradient(140deg,#333,#090909);border-radius:50%;border:1px solid #333;box-shadow:3px 3px 6px #00000026,-3px -3px 6px #fff}.volume-row input::-moz-range-thumb{width:19px;height:19px;background:#111;border-radius:50%;border:1px solid #333}.settings-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:32px}.settings-bottom .soft-button{min-height:38px;font-size:10px;padding:0 15px}.saved-note{display:flex;align-items:center;justify-content:center;gap:6px;color:#999;font-size:10px;line-height:1.7;margin-top:25px}.token-meaning{font-size:20px;line-height:1.7;margin-bottom:21px}.explanation-box{background:#eaeaea;border:1px solid #fff;border-radius:15px;padding:17px 18px;box-shadow:var(--inset-shadow)}.explanation-box p{font-size:14px;line-height:1.9;margin-top:8px;overflow-wrap:anywhere}.token-usage{font-size:13px;line-height:1.9;color:#666;margin-top:18px}.sentence-explanation{border-top:1px solid #dedede;padding-top:20px;margin-top:25px}.sentence-explanation p{font-size:13px;line-height:1.9;color:#666;margin-top:8px}.back-to-sentence{margin-top:15px}.popup-korean{font-family:Apple SD Gothic Neo,Malgun Gothic,Arial,sans-serif;font-size:23px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}.popup-chinese{font-size:13px;color:#888;line-height:1.9;margin-top:16px}@media(min-width:1450px){.rain-app{padding-top:49px}.site-header{margin-bottom:45px}.scene-panel{min-height:650px}.practice-panel{padding:31px 36px 30px}.korean-line{font-size:32px}.conversation-stage{padding-top:63px}}@media(max-width:950px){.rain-app{width:calc(100% - 52px);padding-top:26px}.practice-layout{gap:23px;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr)}.scene-panel{min-height:560px;border-radius:30px}.practice-panel{border-radius:30px;padding:23px}.korean-line{font-size:26px}.scene-caption{left:23px;bottom:100px}.scene-caption h1{font-size:31px}.scene-sound{left:18px;right:18px;padding:12px}.header-note{display:none}.scene-top{inset:19px 18px auto}.scene-small{display:none}.practice-meta{font-size:9px}.main-button{min-height:57px;padding-left:24px}.main-button-circle{width:37px;height:37px}.tap-hint{display:none}.conversation-stage{padding-top:36px}.replay-controls{gap:14px}.settings-button{padding:0 15px}}@media(max-width:700px){.rain-app{width:calc(100% - 36px);padding-top:23px;padding-bottom:20px}.site-header{margin-bottom:25px}.brand-mark{width:39px;height:39px;font-size:20px}.brand-title{font-size:19px}.brand-sub{font-size:8px;letter-spacing:1.4px;margin-top:2px}.brand,.header-actions{gap:10px}.header-actions>.round-button{width:38px;height:38px}.settings-button{min-height:38px;padding:0 13px;font-size:11px;gap:6px}.practice-layout{grid-template-columns:minmax(0,1fr);gap:22px}.scene-panel{min-height:0;height:250px;border-width:5px;border-radius:29px}.scene-image{object-position:50% 46%}.scene-top{inset:15px 17px auto}.scene-label{font-size:9px;padding:6px 10px}.scene-caption{left:23px;bottom:27px}.scene-korean{font-size:9px}.scene-caption h1{font-size:29px;letter-spacing:3px;margin:6px 0}.scene-caption p{font-size:9px;letter-spacing:.5px}.scene-sound{left:auto;right:17px;bottom:24px;gap:8px;padding:10px;min-width:0}.scene-sound>span:nth-child(2){display:none}.scene-sound-icon{width:20px;height:20px}.scene-sound .sound-bars{width:17px;gap:2px}.scene-shade{background:linear-gradient(180deg,#00000013,#00000008 20%,#00000018 40%,#000000a3)}.practice-panel{padding:22px 24px 24px;border-radius:29px;min-height:468px}.conversation-stage{min-height:254px;padding-top:28px;padding-bottom:15px}.speaker-row{margin-bottom:20px}.korean-line{font-size:27px;line-height:1.65}.subtitle-space{min-height:115px}.chinese-line{font-size:12px;margin-top:16px}.chinese-primary{font-size:24px;margin-top:0}.sentence-tools{margin-top:18px}.practice-bottom{padding-top:5px}.turn-hint{font-size:10px;margin-bottom:16px}.main-button{width:min(100%,275px)}.main-controls{gap:15px}.replay-controls{margin:16px 0 25px;gap:22px}.site-footer{padding:22px 3px 0;font-size:8px;gap:12px}.site-footer>span:last-child{font-size:9px;letter-spacing:.3px}.dialog-content{padding:24px}.app-dialog{border-radius:24px;max-height:calc(100dvh - 32px)}.setting-row{font-size:11px}.segmented-control button{font-size:10px;padding:4px 11px;min-height:34px}.dialog-header h2{font-size:21px}.notice{bottom:16px;font-size:11px}}@media(max-width:370px){.rain-app{width:calc(100% - 24px)}.brand-sub{letter-spacing:.7px}.header-actions{gap:8px}.settings-button span{display:none}.settings-button{padding:0;width:38px}.practice-panel{padding-left:20px;padding-right:20px}.korean-line{font-size:24px}.replay-controls{gap:16px}.site-footer>span:last-child{display:none}.dialog-content{padding:20px}.setting-row{flex-wrap:wrap;gap:10px}.segmented-control{width:100%}.segmented-control button{flex:1}}@media(pointer:coarse){.text-button{min-height:36px}.word-button{padding-top:5px;padding-bottom:5px}.progress-range{height:7px;margin-top:15px;margin-bottom:10px}.playback-button{width:36px;height:36px}.volume-row input{height:7px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.morpheme-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:13px}.morpheme-group{display:inline-flex;align-items:center;gap:9px}.morpheme-plus{font-size:13px;color:#aaa}.morpheme-button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:65px;padding:10px 13px;border:1px solid #fff;border-radius:13px;background:linear-gradient(145deg,#fafafa,#e7e7e7);box-shadow:4px 4px 9px #0000000c,-4px -4px 9px #fff}.morpheme-button>span{font-size:18px;line-height:1.4}.morpheme-button small{font-size:10px;color:#888;line-height:1.5}.morpheme-button[aria-pressed=true]{background:linear-gradient(145deg,#333,#151515);color:#fff;border-color:#333;box-shadow:3px 4px 9px #00000020}.morpheme-button[aria-pressed=true] small{color:#ddd}.morpheme-detail{margin-top:18px;background:#eaeaea;border:1px solid #fff;border-radius:13px;padding:13px 15px;box-shadow:var(--inset-shadow)}.morpheme-detail p{font-size:13px;line-height:1.85;margin-top:5px;color:#555}.derivation{margin-top:20px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}.derivation summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;font-size:12px;color:#555;cursor:pointer}.derivation summary::-webkit-details-marker{display:none}.derivation[open] summary svg{transform:rotate(180deg)}.derivation ol{list-style:none;counter-reset:derivation;display:grid;gap:12px;margin:1px 0 18px;padding:0}.derivation li{counter-increment:derivation;display:grid;grid-template-columns:21px 1fr;gap:10px;align-items:start;font-size:12px;color:#555;line-height:1.8;overflow-wrap:anywhere}.derivation li:before{content:counter(derivation);display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#e5e5e5;box-shadow:inset 1px 1px 3px #0000000c;font-size:10px;color:#777;margin-top:1px}.word-explore-hint{font-size:10px;color:#999;margin-top:16px}
