.practice-root{max-width:700px;margin:auto;min-width:0}.practice-root h1{font-size:clamp(28px,6vw,40px);line-height:1.15;overflow-wrap:anywhere}.practice-intro,.practice-mode p{line-height:1.6}.practice-modes{display:grid;gap:18px;margin:24px 0}.practice-mode{padding:20px;border:1px solid #b5a88d;border-radius:12px;background:#fff9e9}.practice-mode h2{margin:0}.practice-mode button,.practice-root>.primary,.practice-root>.secondary{display:block;margin:14px 0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.practicing{overflow:hidden}body.practicing .app{max-width:640px;border:0;padding:0 14px;background:var(--paper);min-height:100dvh}body.practicing #screen{padding-top:max(8px,env(safe-area-inset-top))}body.practicing .practice-root{height:calc(100dvh - max(8px,env(safe-area-inset-top)) - var(--practice-nav-height,80px) - 8px)}
.practice-session{height:100%;display:grid;grid-template-rows:auto 3px minmax(0,1fr) auto;gap:12px;min-width:0}.practice-header{display:flex;gap:10px;align-items:center;min-width:0}.practice-header>div{flex:1;min-width:0}.practice-header span,.practice-header>small{font-size:12px;color:#625c4e}.practice-header h2{font-size:20px;line-height:1.2;margin:4px 0 0;overflow-wrap:anywhere}.practice-back{flex:0 0 44px;min-height:44px;font-size:30px;border:0;background:none;padding:0}.practice-session .track{margin:0;height:3px;border:0}.practice-workspace{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;justify-content:flex-end;gap:8px}.practice-sentence{font-size:clamp(21px,5vw,27px);line-height:1.65;overflow-wrap:anywhere;margin:8px 0}.practice-answer{padding:12px;min-height:90px;border:1px solid #b5a88d;border-radius:12px;background:#fff9e9;margin:0}.practice-fragment{font:inherit;line-height:inherit;border:0;border-bottom:1px dotted #8d8067;padding:4px 1px;background:none;min-height:36px}.practice-slot{border:2px dashed #8d8067;border-radius:8px;background:#f2e4c4;padding:5px 9px;min-width:54px;min-height:44px;font-size:inherit;margin:3px 1px;max-width:100%;overflow-wrap:anywhere}.practice-slot.active{border-color:var(--blue);background:#e5eef9}.practice-slot.filled{border-style:solid}.practice-target{font-weight:800;color:var(--blue)}
.practice-dock{position:relative;min-height:140px;display:flex;flex-direction:column;justify-content:flex-end;padding:0 0 4px;gap:8px}.practice-bank{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:8px;margin:0;min-height:110px}.practice-word{border:1px solid #a99d83;border-radius:9px;padding:10px 14px;background:#fff9e9;min-height:46px;max-width:100%;overflow-wrap:anywhere;font-size:18px;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.practice-word[data-used=true]{opacity:.25;pointer-events:none}.practice-word:focus-visible,.practice-slot:focus-visible{outline-offset:-3px}.practice-dock>.primary{width:100%;min-height:52px;margin:0;font-size:18px}.practice-status{min-height:20px;margin:0;text-align:center;font-size:12px;color:#625c4e;line-height:1.35}.practice-tip{position:absolute;bottom:100%;left:0;right:0;z-index:2;background:#e5eef9;border:1px solid var(--blue);padding:10px 14px;border-radius:9px;box-shadow:0 3px 12px #19171122;overflow-wrap:anywhere;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:16px}.practice-feedback{margin:0;padding:14px;border:1px solid #a8bc8b;border-radius:12px;background:#f5f8e9}.practice-feedback.revealed{border-color:#c59a66;background:#fff6e6}.practice-feedback>strong{font-size:14px;color:#486333}.practice-translation{font-size:18px;line-height:1.4;margin:8px 0}.practice-explanation{font-size:13px;line-height:1.4;margin:10px 0 0;color:#625c4e}.practice-history{border-left:2px solid #b5a88d;padding:3px 10px;background:#ffffff44}.practice-history p{font-size:16px;line-height:1.3;margin:0}.practice-history .practice-fragment{min-height:30px}.practice-history small{font-size:13px;line-height:1.3;display:block;color:#625c4e}.practice-history:first-child{margin-top:auto}
@media(max-width:390px){.practice-mode{padding:16px}.practice-sentence{font-size:21px}.practice-word{font-size:17px;padding:9px 12px}.practice-root .stat small{font-size:11px}}@media(max-height:650px){.practice-session{gap:8px}.practice-header h2{font-size:18px}.practice-dock{min-height:130px}.practice-bank{min-height:100px}.practice-sentence{font-size:20px;line-height:1.5}.practice-feedback{padding:10px}.practice-history p{font-size:15px}.practice-history small{font-size:12px}.practice-explanation{font-size:12px}.practice-answer{padding:10px}.practice-word{padding:8px 11px}.practice-translation{font-size:17px}}
.practice-modes{gap:12px;margin:16px 0}.practice-mode{padding:0;overflow:hidden}.practice-mode>.practice-mode-start{display:block;width:100%;margin:0;border:0;background:none;text-align:left;padding:18px;min-height:100px}.practice-mode-start strong{display:block;font-size:22px;line-height:1.2}.practice-mode-start span{display:block;font-size:14px;line-height:1.4;margin-top:8px;color:#625c4e}.practice-mode>.back{font-size:13px;padding:0 18px 14px;margin:0;min-height:36px}.practice-intro{font-size:15px;margin:0 0 12px}.practice-root>h1{margin:12px 0}
.practice-mode>.practice-mode-start{padding:14px;min-height:90px}.practice-mode-start strong{font-size:20px}
.practice-media-slot{flex:1 1 0;min-height:0}.practice-loading{display:grid;gap:16px;padding-top:20px}.practice-skeleton{position:relative;overflow:hidden;background:#e5d9be;border-radius:12px}.practice-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,#fff9e9aa,transparent);animation:practice-shimmer 1.3s ease-in-out infinite}.practice-skeleton-title{height:34px;width:60%}.practice-skeleton-card{height:104px}.practice-summary-loading{height:44px;margin:14px 0}.practice-result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-tip{cursor:pointer}@keyframes practice-shimmer{to{transform:translateX(100%)}}@media(prefers-reduced-motion:reduce){.practice-skeleton:after{animation:none;transform:none;opacity:.3}}
.practice-media-slot{display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}.practice-media-slot .practice-tip{position:static;inset:auto;display:block;flex:0 1 auto;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;background:#fff9e9;border:1px solid #b5a88d;box-shadow:none;border-radius:12px;padding:14px 16px;margin:0;cursor:pointer;scrollbar-width:thin}.practice-tip h3{font-size:22px;line-height:1.2;margin:0;font-weight:800;overflow-wrap:anywhere}.practice-tip .practice-lookup-translation{font-size:19px;line-height:1.35;margin:5px 0 0}.practice-tip .practice-lookup-surface{font-size:13px;color:#625c4e;margin:7px 0 0}.practice-tip h4{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--blue);margin:14px 0 5px}.practice-tip .practice-lookup-when{font-size:15px;line-height:1.4;margin:0}.practice-lookup-pair{display:grid;gap:2px;margin:7px 0 0;line-height:1.3}.practice-lookup-pair span:first-child{font-size:16px;font-weight:600}.practice-lookup-pair span:last-child{font-size:14px;color:#625c4e}.practice-bank .practice-word{padding:8px 11px;font-size:17px}.practice-history{flex-shrink:0}.practice-answer,.practice-feedback{flex-shrink:0}@media(max-height:650px){.practice-tip h3{font-size:21px}.practice-tip .practice-lookup-translation{font-size:18px}.practice-media-slot .practice-tip{padding:12px 14px}.practice-tip h4{margin-top:11px}.practice-bank .practice-word{font-size:16px;padding:8px 10px}}
.practice-session.has-lookup{gap:8px}.has-lookup .practice-dock{min-height:0;gap:0}.has-lookup .practice-status{display:none}.has-lookup .practice-bank{min-height:0;gap:6px}.has-lookup .practice-answer{min-height:52px;padding:8px 10px}.practice-media-slot .practice-tip{padding:10px 12px}.practice-lookup-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px}.practice-tip .practice-lookup-heading h3{font-size:20px;line-height:1.2}.practice-tip .practice-lookup-heading .practice-lookup-translation{font-size:17px;line-height:1.25;margin:0}.practice-tip h4{margin:8px 0 4px}.practice-tip .practice-lookup-when{line-height:1.3}.practice-lookup-pair{display:block;line-height:1.3;margin:4px 0 0}.practice-lookup-pair span:first-child{font-size:15px}.practice-lookup-pair span:last-child{font-size:15px}.practice-lookup-pair span:last-child:before{content:" — "}@media(max-height:650px){.practice-media-slot .practice-tip{padding:9px 11px}.practice-tip h4{margin-top:7px}.practice-tip .practice-lookup-heading h3{font-size:20px}.practice-tip .practice-lookup-heading .practice-lookup-translation{font-size:17px}}
