.cards-space{max-width:760px;margin:0 auto;color:var(--ink)}
.cards-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 24px}.cards-heading h1{font-size:38px;margin:0 0 8px}.cards-heading p{color:var(--muted);margin:0;line-height:1.5}
.cards-topics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.cards-topics button,.cards-modes button{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:22px;padding:11px 15px;font-size:14px;cursor:pointer}.cards-topics button.selected,.cards-modes button.selected{background:#ece8f4;border-color:#c8bddc;color:#554775}
.cards-start{padding:32px 24px;text-align:center;border:1px solid var(--line);border-radius:22px;background:#fff}.cards-start h2{font-size:27px;margin:16px 0 10px}.cards-start>p{color:var(--muted);line-height:1.6}.cards-start-icon{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#edf2ed;color:#617665}.cards-modes{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:24px 0 0}.cards-mode-note{font-size:14px;min-height:24px}.cards-start .primary{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px auto 0}.cards-small{font-size:12px!important;line-height:1.65;color:var(--muted);margin:14px 0 0}.cards-start .cards-small{max-width:350px;margin:18px auto 0}
.cards-tools{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.cards-help{border-top:1px solid var(--line);margin-top:18px;padding-top:8px;font-size:13px;color:var(--muted)}.cards-help summary{cursor:pointer;display:flex;align-items:center}.cards-help p{line-height:1.7}.cards-help a{color:#675184}
.cards-study-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;margin:4px 0 14px}.cards-study{background:white;border:1px solid var(--line);border-radius:22px;min-height:400px;padding:30px 34px;text-align:center;display:flex;flex-direction:column;align-items:center}.cards-picture{width:96px;height:96px;object-fit:contain;margin:0 0 20px}.cards-sentence{font-size:27px;line-height:1.7;font-weight:400;margin:12px 0 26px;overflow-wrap:anywhere;max-width:580px}.cards-sentence strong{font-weight:750;color:#625083;background:linear-gradient(transparent 75%,#eee7f8 75%);padding:0 2px}.cards-gap{display:inline-block;color:#73618d;border-bottom:2px solid #c5b8d7;min-width:76px;letter-spacing:4px}.cards-note{font-size:14px;color:var(--muted);line-height:1.7;margin:-8px 0 20px;max-width:470px}.cards-answer-tools{display:flex;justify-content:center;gap:14px}.cards-ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:24px;width:100%;max-width:500px}.cards-rating{padding:13px 5px;border:1px solid var(--line);border-radius:13px;background:#f8f8f6;color:var(--ink);cursor:pointer;min-height:66px}.cards-rating strong,.cards-rating small{display:block}.cards-rating strong{font-size:14px;font-weight:600}.cards-rating small{font-size:11px;color:var(--muted);margin-top:6px}.cards-rating.again{background:#faf0ed}.cards-rating.hard{background:#faf5e9}.cards-rating.good{background:#edf3ed}.cards-rating.easy{background:#efedf6}.cards-study .primary{margin-top:8px}.cards-study form{width:100%;max-width:430px}.cards-space input,.cards-space textarea,.cards-space select{border:1px solid #d8d7df;border-radius:11px;padding:13px 14px;color:var(--ink);background:#fff;width:100%;box-sizing:border-box;font:inherit;font-size:16px}.cards-space textarea{resize:vertical;line-height:1.6}.cards-space :focus-visible{outline:3px solid #ae9bc8;outline-offset:3px}.cards-space button:disabled{opacity:.5;cursor:default}.cards-typed-feedback{font-size:13px;line-height:1.7;margin-bottom:0;max-width:460px;overflow-wrap:anywhere}.cards-centered{text-align:center}.cards-complete{text-align:center;padding:60px 12px}.cards-complete h1{font-size:34px;margin-top:20px}.cards-complete>p{color:var(--muted);line-height:1.6}.cards-complete .primary{margin:28px 10px 0}.cards-editor{margin-top:24px}.cards-editor label{display:block;font-size:14px;font-weight:600;margin:22px 0 9px}.cards-editor small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}.cards-form-message{font-size:14px;color:#7c5147;line-height:1.7;min-height:20px}.cards-list{margin-top:20px}.cards-list article{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding:14px 0}.cards-list article>div{min-width:0}.cards-list p{font-size:16px;line-height:1.6;margin:7px 0 0;overflow-wrap:anywhere}.cards-list small{font-size:11px;color:var(--muted)}.cards-list .text-button{flex-shrink:0}.cards-list-pages{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin:12px 0}
@media(max-width:600px){.cards-heading{gap:10px;margin:5px 0 22px}.cards-heading h1{font-size:32px}.cards-heading p{font-size:14px}.cards-heading .text-button{font-size:13px;white-space:nowrap;padding:8px 0}.cards-topics{gap:7px}.cards-topics button{font-size:12px;padding:10px 13px}.cards-start{padding:24px 18px}.cards-study{padding:23px 18px;min-height:380px}.cards-sentence{font-size:23px;line-height:1.65;margin:6px 0 24px}.cards-picture{width:80px;height:80px;margin-bottom:16px}.cards-study-top{gap:6px}.cards-study-top>span:nth-child(2){max-width:45%;text-align:center}.cards-ratings{gap:6px}.cards-rating{padding:12px 2px}.cards-rating strong{font-size:12px}.cards-tools .secondary{font-size:13px}.cards-complete{padding:35px 4px}.cards-complete h1{font-size:29px}}
.cards-topic-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.cards-topic-label label{margin:8px 0}.cards-topic-label .text-button{font-size:12px}
.cards-picture.cards-scene-picture{width:min(100%,300px);height:auto;border-radius:16px;object-fit:contain;margin-bottom:22px}
@media(max-width:600px){.cards-picture.cards-scene-picture{max-width:220px}}
.cards-letter-clue{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#756087;font-size:.8em;font-weight:600;letter-spacing:.04em}
.cards-recall-hints{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-12px 0 12px;font-size:12px;color:#837194}
.cards-recall-hints .text-button{font-size:12px;min-height:44px}
.cards-pack-link{width:100%;display:flex;align-items:center;gap:14px;margin:0 0 20px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.cards-pack-link>span:nth-child(2){flex:1;min-width:0}.cards-pack-link strong,.cards-pack-link small{display:block}.cards-pack-link strong{font-size:16px}.cards-pack-link small{font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}
.cards-scopes{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.cards-scopes button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.cards-scopes button.selected{background:#f9eef0;border-color:#e8c4ce;color:#a94769}.cards-scopes button span{font-size:11px;opacity:.75}.cards-study-heart{width:100%;display:flex;justify-content:flex-end;margin-bottom:4px}.cards-list-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.cards-list .cards-list-actions .cards-favorite{padding:8px}.cards-favorite{flex-shrink:0}

/* Free flashcards: a deck library and an unrestricted, persistent card browser. */
.cards-deck-list{list-style:none;padding:0;display:grid;gap:10px;margin:0 0 20px}.cards-deck-row{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:17px;background:#fff;padding:5px 10px 5px 4px}.cards-deck-open{display:flex;align-items:center;gap:14px;min-height:80px;flex:1;min-width:0;border:0;background:none;text-align:left;color:var(--ink);padding:12px;font:inherit;cursor:pointer}.cards-deck-open>span:nth-child(2){flex:1;min-width:0}.cards-deck-open strong,.cards-deck-open small{display:block}.cards-deck-open strong{font-size:17px;line-height:1.45;overflow-wrap:anywhere}.cards-deck-open small{font-size:12px;color:var(--muted);margin-top:5px}.cards-deck-symbol{display:grid;place-items:center;width:40px;height:44px;flex-shrink:0;color:#7c7299;background:#f1eef6;border-radius:12px}.cards-deck-row>.text-button{font-size:12px;padding:8px;min-height:44px;flex-shrink:0}.cards-collection-heading{font-size:20px;margin:28px 0 16px}.cards-study-top h1{font-size:24px;line-height:1.4;margin:0;text-align:center;overflow-wrap:anywhere;flex:1}.cards-study-top .text-button{flex-shrink:0;min-height:44px;font-size:12px}.cards-display-modes{margin:10px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cards-display-modes button{font-size:13px;min-height:44px;padding:10px 8px;border-radius:12px}.cards-order-tools{display:flex;gap:8px;margin:12px 0 8px}.cards-order-tools button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:transparent;border:1px solid var(--line);border-radius:12px;min-height:44px;color:var(--muted);padding:8px 13px;font:inherit;font-size:12px;cursor:pointer}.cards-order-tools button.selected{background:#edf2ed;border-color:#c8d6ca;color:#526c58}.cards-position{text-align:center;color:var(--muted);font-size:12px;padding:8px 0 12px}.cards-free-study{min-height:280px;padding:20px 24px}.cards-free-study>.cards-picture{max-height:220px;width:auto;max-width:100%;object-fit:contain}.cards-free-study .cards-sentence{display:block;margin:8px 0 16px}.cards-flip-area{width:100%;border:0;background:none;color:inherit;font:inherit;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;min-height:180px}.cards-flip-area .cards-picture{max-height:320px;width:auto;max-width:100%;height:auto;object-fit:contain}.cards-no-picture{display:grid;place-content:center;min-height:170px;padding:20px;color:var(--muted);font-size:16px;line-height:1.6}.cards-no-picture small{display:block;font-size:13px;margin-top:8px}.cards-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0}.cards-navigation button{min-height:48px;display:inline-flex;align-items:center;gap:8px}.cards-navigation>span{color:var(--muted);font-size:12px}.cards-round-end{text-align:center;font-size:13px;color:var(--muted);line-height:1.6}.cards-round-end button{min-height:44px}.cards-empty{padding:30px 20px;border:1px solid var(--line);border-radius:20px;background:#fff;text-align:center}.cards-empty h2{font-size:22px}.cards-empty p{color:var(--muted);line-height:1.7}.cards-meaning{font-size:14px;color:var(--muted);width:100%;max-width:480px;line-height:1.7}.cards-meaning summary{min-height:44px;cursor:pointer;padding:10px}.cards-flip-area:focus-visible{outline:3px solid #ae9bc8;outline-offset:4px;border-radius:12px}
@media(max-width:600px){.cards-deck-open{gap:10px;padding:10px 8px;min-height:78px}.cards-deck-open strong{font-size:16px}.cards-deck-symbol{width:32px}.cards-study-top h1{font-size:20px}.cards-study-top .text-button{padding:8px 0}.cards-free-study{padding:14px 18px;min-height:220px}.cards-free-study>.cards-picture{max-height:155px;margin-bottom:10px}.cards-flip-area .cards-picture{max-height:270px}.cards-navigation .primary,.cards-navigation .secondary{padding:12px 14px;font-size:13px}.cards-scopes{margin:12px 0}.cards-display-modes{margin:8px 0}.cards-navigation>span{white-space:nowrap}}

.cards-navigation{position:sticky;top:auto;bottom:0;z-index:2;background:var(--bg);padding:10px 0;margin:10px 0;border-top:1px solid var(--line)}

.cards-free-study{scroll-margin-top:16px}

.cards-credits{max-width:760px;margin:18px auto 0}

.cards-free-study{touch-action:pan-y pinch-zoom}.cards-free-study .cards-sentence,.cards-free-study .cards-meaning{text-align:left;width:100%}.cards-flip-area{text-align:left}.cards-picture{user-select:none;-webkit-user-drag:none}
@media(hover:hover){.cards-free-study .cards-picture{cursor:grab}.cards-free-study .cards-picture:active{cursor:grabbing}}
@media(max-width:900px){.cards-navigation{bottom:calc(76px + env(safe-area-inset-bottom,0px));border-radius:0 0 12px 12px}}
