.hero{display:flex;align-items:center;gap:20px}.target-icon{--icon:url('/assets/target.svg');width:60px;height:60px;background:#7bd1fa}.hero h1{line-height:1.2}main{grid-template-columns:minmax(220px,.29fr) minmax(0,1fr)}.links{padding:14px}.links a{min-height:88px}.links i{width:36px;height:36px}.heading{flex-wrap:wrap}.metrics{margin-left:auto;display:flex;align-items:baseline;gap:6px}.metrics span:not(:first-child){margin-left:18px}.exercise{padding:clamp(16px,2vw,32px)}.question{border-radius:16px;border:1px solid #735481;padding:clamp(12px,1.5vw,24px);background:radial-gradient(ellipse at top left,#49365c,transparent 58%),linear-gradient(125deg,#2e2647,#302844)}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags>span{border-radius:20px;background:#453955;padding:4px 12px}.tags>span:first-child{background:#70449e;font-weight:bold}.question h2{margin:14px 0;font-size:clamp(18px,1.65vw,28px)}.practice-hand{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:2px;padding:14px 8px;background:#1c1a30;border-radius:12px;min-height:92px}.practice-hand img{width:min(6.6%,64px);height:auto}#choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:9px;margin:20px 0 32px}#choices button{padding:10px 6px;font-weight:bold}#choices img{width:clamp(27px,2.8vw,47px);display:block;margin:auto}#choices button[aria-pressed=true]{border-color:#c897fd;background:#503a68;box-shadow:inset 0 0 10px #9160c6}#choices button:disabled{cursor:default}#choices button.correct{border-color:#95dfc7}.practice-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.practice-actions button{padding:9px 18px}.practice-actions button:disabled{opacity:.45;cursor:default}#submit{background:linear-gradient(#a568ee,#7742bb);font-weight:bold}#next{margin-left:auto}#feedback:not(:empty),#solution{margin-top:14px}#solution{padding:14px 18px;border:1px solid #5c486d;border-radius:12px;background:#30263f}#solution p+p{margin-top:6px}@media(max-width:800px){main{grid-template-columns:1fr}.links a{min-height:54px}.links{gap:6px}.metrics{margin-left:0}.heading .metrics span{display:inline}.hero .target-icon{width:40px;height:40px}.practice-hand img{width:min(12%,48px)}#choices{grid-template-columns:repeat(4,1fr)}#next{margin-left:0}.practice-actions{gap:6px}}.heading .metrics span{display:inline}
#solution img{width:26px;vertical-align:middle}
.yaku-practice #choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.yaku-practice #choices button{display:flex;align-items:center;gap:10px;padding:12px 16px;text-align:left}.yaku-practice #choices button:before{content:'□';color:#ceb0ee;font-size:20px}.yaku-practice #choices button[aria-pressed=true]:before{content:'☑';color:white}.yaku-practice #choices small{margin-left:auto}.yaku-practice #choices button.incorrect{border-color:#ee839b}.yaku-practice #choices button.correct{border-color:#81d7af}.yaku-practice .practice-hand{padding-top:26px;--tile-width:clamp(25px,3.6vw,59px)}.yaku-practice .practice-hand img{width:var(--tile-width)}.marked-tiles{display:inline-flex;position:relative;gap:2px;margin-left:10px;border-bottom:2px solid #bb82ef}.marked-tiles small{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#61477c;border-radius:8px;padding:0 5px;white-space:nowrap;font-size:11px}@media(max-width:650px){.yaku-practice .practice-hand{row-gap:20px}.yaku-practice #choices button{flex-wrap:wrap;padding:8px}}
#scoreFacts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}#scoreFacts>div{padding:14px 16px;background:#272137;border:1px solid #59476e;border-radius:10px}#scoreFacts strong{display:block;margin-top:4px;color:#f0ddff;font-size:clamp(20px,1.8vw,30px)}.score-practice #choices{grid-template-columns:repeat(4,minmax(0,1fr))}.score-practice #choices button{padding:14px 8px;font-size:18px}#scoreHint:not([hidden]){margin-top:16px;color:#e1c9ff}#hintButton{margin-right:auto}#solution>strong{color:#ffddaa;font-size:22px}@media(max-width:650px){#scoreFacts,.score-practice #choices{grid-template-columns:repeat(2,minmax(0,1fr))}#hintButton{margin-right:0}}

.exercise[aria-busy="true"] :is(.practice-hand, .practice-actions, #choices, #scoreFacts) { visibility: hidden; }
