.tricks-shortcut {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 23px;
  border: 1px solid #e5dcef;
  border-radius: 15px;
  background: #f3eef9;
}
.tricks-shortcut > .icon { width: 30px; height: 30px; color: #9a7bb9; }
.tricks-shortcut h3 { font-size: 17px; margin-bottom: 5px; color: #705788; }
.tricks-shortcut p { font-size: 12px; line-height: 1.8; color: #867095; }
.tricks-shortcut .button { margin-left: auto; flex-shrink: 0; }
.topic-tabs a { min-width: 0; }
.tricks-intro { display: flex; align-items: center; gap: 17px; margin: 5px 0 26px; }
.tricks-intro-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 16px; background: #f7eed8; color: #b49756; flex-shrink: 0; transform: rotate(-6deg); }
.tricks-intro-icon .icon { width: 27px; height: 27px; }
.tricks-intro h2 { font-size: 25px; margin: 8px 0; }
.tricks-intro p { font-size: 13px; line-height: 1.85; max-width: 650px; }
.tricks-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 25px; align-items: start; }
.tricks-menu { display: grid; gap: 9px; }
.tricks-menu button { position: relative; display: flex; flex-direction: column; gap: 7px; width: 100%; border: 1px solid #eae3ef; border-radius: 12px; padding: 15px 31px 15px 15px; min-height: 82px; text-align: left; background: #fff; transition: background .15s, border-color .15s; }
.tricks-menu button:hover { background: #f7f2fc; }
.tricks-menu button.active { background: #ece5f5; border-color: #c7b5dc; }
.tricks-menu button > span { font-size: 10px; color: #a087b3; font-weight: 650; }
.tricks-menu button > strong { font-size: 12px; font-weight: 650; line-height: 1.6; color: #7f678e; }
.tricks-menu button > .icon { position: absolute; right: 12px; top: calc(50% - 7px); width: 14px; height: 14px; color: #b49bc7; }
.tricks-menu button.active > strong { color: #614379; }
.trick-card { padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.trick-card > h2 { font-size: 27px; margin: 10px 0 16px; line-height: 1.35; }
.trick-card > h2:focus { outline: none; }
.trick-rule { font-size: 16px; line-height: 1.95; color: #766b80; }
.trick-example { padding: 22px; margin: 25px 0 18px; background: #f8f5fc; border: 1px solid #ede5f5; border-radius: 15px; }
.trick-example-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trick-example-heading > .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
.trick-example-heading .button { font-size: 11px; padding: 10px 8px; min-height: 44px; }
.trick-equation { margin: 15px 0 18px; text-align: center; font-size: 29px; color: #95809f; font-weight: 500; line-height: 1.5; }
.trick-equation strong { color: #765387; font-weight: 700; }
.trick-steps { margin: 0; padding-left: 24px; color: #7a6489; font-size: 14px; line-height: 1.95; }
.trick-steps li { padding: 3px 0 3px 6px; }
.trick-steps li::marker { color: #aa90bf; font-weight: 700; }
.trick-why { margin: 0 0 20px; border: 1px solid #eee6f4; border-radius: 11px; background: #fdfbff; }
.trick-why summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 13px 16px; color: #887193; font-size: 13px; font-weight: 650; list-style: none; }
.trick-why summary::-webkit-details-marker { display: none; }
.trick-why summary::after { content: '+'; margin-left: auto; font-size: 20px; color: #af98c0; font-weight: 400; }
.trick-why[open] summary::after { content: '−'; }
.trick-why .icon { width: 19px; height: 19px; color: #af90c1; }
.trick-why p { padding: 0 17px 17px; font-size: 13px; line-height: 1.9; color: #8a7695; }
.trick-caution strong { display: block; font-size: 12px; font-weight: 700; color: #89703f; margin-bottom: 5px; }
.trick-caution p { font-size: 13px; }
.trick-practice { margin-top: 28px; padding-top: 25px; border-top: 1px solid #eee6f4; }
.trick-practice-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.trick-practice-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.trick-practice-heading h3 { font-size: 21px; margin-top: 8px; }
.practice-expression { font-size: 25px; font-weight: 650; color: #9673a4; white-space: nowrap; }
.trick-input-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.trick-inputs { display: flex; gap: 13px; }
.trick-inputs label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #886a99; }
.trick-inputs input { width: 110px; height: 65px; border: 2px solid #e0d3ea; border-radius: 11px; background: #fdfaff; color: #80608f; font-size: 28px; text-align: center; font-weight: 650; }
.trick-inputs input::placeholder { color: #cdbbd9; }
.trick-inputs input:disabled { opacity: .65; }
.trick-input-row > .button { min-height: 49px; }
#trick-input-error { margin-top: 10px; }
.trick-practice-actions { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-top: 19px; }
.trick-practice-actions .button { white-space: normal; text-align: left; font-size: 11px; min-height: 46px; }
.trick-practice-actions > span { font-size: 10px; line-height: 1.8; color: #a28eac; max-width: 155px; }
.trick-solution { margin-top: 20px; padding: 18px; border-radius: 12px; background: #f3eef8; border: 1px solid #e3d7ed; color: #81628f; }
.trick-solution > strong { display: block; font-size: 19px; margin-bottom: 9px; }
.trick-solution .trick-steps { font-size: 13px; }
.finger-instruction { font-size: 12px; text-align: center; line-height: 1.9; color: #93809c; margin: 18px 0; }
.finger-picture { display: flex; gap: 7px; align-items: flex-end; justify-content: center; margin: 10px auto 20px; max-width: 480px; }
.finger-column { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; min-width: 0; height: 131px; }
.finger-column i { display: block; width: 100%; max-width: 34px; height: 94px; border: 1.5px solid #ae91c5; border-radius: 24px 24px 10px 10px; background: #e7dbf3; transition: height .2s; }
.finger-column b { font-size: 11px; color: #9c88a8; font-weight: 500; }
.finger-column:nth-child(3) i, .finger-column:nth-child(8) i { height: 110px; }
.finger-column:nth-child(1) i, .finger-column:nth-child(10) i { height: 75px; }
.finger-column:nth-child(5) i, .finger-column:nth-child(6) i { height: 65px; }
.finger-column:nth-child(5) { margin-right: 10px; }
.finger-column.ones i { background: #dcebdd; border-color: #a5c2a7; }
.finger-column.folded i { height: 24px; border-color: #c7a165; background: #edd298; border-radius: 9px; }
.finger-column.folded b { color: #ad834a; font-weight: 750; }
.finger-picker { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.finger-picker button { display: grid; place-items: center; background: #fff; border: 1px solid #dfd3e9; border-radius: 9px; min-height: 46px; min-width: 0; color: #8a6c9e; font-size: 14px; }
.finger-picker button.selected { background: #edd398; border-color: #d3b074; color: #785b2f; font-weight: 750; }
.finger-picker button:hover { border-color: #ba9ecb; }
.finger-counts { display: flex; justify-content: center; gap: 30px; margin: 18px 0 22px; }
.finger-counts > span { color: #a188af; font-size: 11px; }
.finger-counts > span:last-child { color: #7f9d81; }
.finger-counts strong { font-size: 23px; margin-right: 5px; }
.contextual-hint strong { display: block; color: #89703f; font-size: 13px; margin-bottom: 5px; }
.contextual-hint .button { padding-left: 0; font-size: 12px; margin-top: 2px; }
.hint-dialog-note { margin-top: 18px; }
.hint-dialog-note p { margin-top: 0; }
@media (max-width: 1200px) {
  .tricks-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; }
  .trick-card { padding: 24px; }
  .trick-card > h2 { font-size: 25px; }
  .finger-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trick-input-row { flex-wrap: wrap; }
  .trick-practice-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .trick-practice-actions > span { max-width: none; }
}
@media (max-width: 1000px) {
  .tricks-layout { grid-template-columns: minmax(0, 1fr); }
  .tricks-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tricks-menu button { min-height: 78px; }
  .tricks-menu button > strong { font-size: 13px; }
  .trick-rule { font-size: 17px; }
  .trick-steps { font-size: 15px; }
  .trick-caution p { font-size: 14px; }
  .trick-practice-actions { flex-direction: row; align-items: center; }
  .trick-practice-actions .button { font-size: 13px; }
  .finger-picker { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .topic-tabs a { flex: 1 1 0; white-space: normal; text-align: center; justify-content: flex-start; font-size: 9px; padding-left: 3px; padding-right: 3px; }
  .topic-tabs a > span { line-height: 1.5; }
  .tricks-shortcut { flex-wrap: wrap; gap: 12px; padding: 20px; }
  .tricks-shortcut > .icon { width: 25px; height: 25px; }
  .tricks-shortcut > div { flex: 1; min-width: 180px; }
  .tricks-shortcut h3 { font-size: 16px; }
  .tricks-shortcut p { font-size: 11px; }
  .tricks-shortcut .button { margin: 5px 0 0 37px; min-height: 46px; }
  .tricks-intro { align-items: flex-start; gap: 12px; }
  .tricks-intro-icon { width: 39px; height: 43px; border-radius: 12px; margin-top: 5px; }
  .tricks-intro-icon .icon { width: 22px; height: 22px; }
  .tricks-intro .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .tricks-intro h2 { font-size: 23px; }
  .tricks-intro p { font-size: 12px; }
  .tricks-menu { gap: 8px; }
  .tricks-menu button { padding: 12px; min-height: 98px; gap: 5px; }
  .tricks-menu button > .icon { display: none; }
  .tricks-menu button > span { font-size: 10px; }
  .tricks-menu button > strong { font-size: 12px; }
  .trick-card { padding: 23px 17px; }
  .trick-card > h2 { font-size: 24px; }
  .trick-rule { font-size: 15px; }
  .trick-example { padding: 17px 12px; margin: 22px 0 17px; }
  .trick-example-heading { flex-wrap: wrap; gap: 4px; }
  .trick-example-heading .eyebrow { font-size: 8px; }
  .trick-example-heading .button { margin-left: auto; font-size: 10px; }
  .trick-equation { font-size: 25px; }
  .trick-steps { font-size: 13px; padding-left: 18px; }
  .trick-steps li { padding-left: 3px; }
  .trick-why summary { font-size: 12px; padding-left: 12px; }
  .trick-why p { font-size: 13px; }
  .trick-caution { padding: 14px 12px; gap: 8px; }
  .trick-caution p { font-size: 13px; }
  .trick-practice-heading { align-items: flex-start; flex-direction: column; }
  .trick-practice-heading h3 { font-size: 20px; }
  .practice-expression { font-size: 28px; margin: 3px 0; }
  .trick-input-row { gap: 17px; }
  .trick-inputs { gap: 12px; }
  .trick-inputs input { width: 97px; }
  .trick-inputs label { font-size: 12px; }
  .trick-practice-actions { align-items: flex-start; flex-direction: column; }
  .trick-practice-actions .button { font-size: 12px; padding-left: 0; padding-right: 0; }
  .trick-practice-actions .button.secondary { padding-left: 15px; padding-right: 15px; }
  .trick-solution { padding: 15px 12px; }
  .trick-solution > strong { font-size: 18px; }
  .finger-picture { gap: 4px; }
  .finger-column { height: 113px; }
  .finger-column i { height: 78px; }
  .finger-column:nth-child(3) i, .finger-column:nth-child(8) i { height: 91px; }
  .finger-column:nth-child(1) i, .finger-column:nth-child(10) i { height: 62px; }
  .finger-column:nth-child(5) i, .finger-column:nth-child(6) i { height: 54px; }
  .finger-column.folded i { height: 22px; }
  .finger-column:nth-child(5) { margin-right: 5px; }
  .finger-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .finger-picker button { min-height: 46px; }
  .finger-counts { gap: 20px; }
  .finger-counts > span { font-size: 10px; }
  .contextual-hint .button { font-size: 11px; }
}
