/* Card layout adapted from carts_handler/web/dist/styles.css. */
.ic-card{width:100%;max-width:480px;margin:0 auto;overflow:hidden;border:3px solid var(--ink);border-radius:24px;background:var(--paper);box-shadow:5px 6px var(--ink)}
.ic-scene.focused-poster{width:100%;max-width:none;aspect-ratio:4/3;height:auto;margin:0;border-bottom:3px solid var(--ink);position:relative;background:#f1d7a4;border-radius:0}
.ic-scene>.scene-visual{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:0}
.scene-empty{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:14px;background:radial-gradient(circle at center,#fff7e6 0 22%,transparent 23%),radial-gradient(#ae824332 1px,transparent 1px) 0 0/7px 7px;color:#9b763c}
.scene-empty>span{font-size:65px;line-height:1;font-weight:400}.scene-empty>small{font-size:12px;font-weight:400;letter-spacing:.3px}
.ic-paper{padding:14px 22px 14px}.ic-meta{display:flex;justify-content:space-between;gap:10px;font-size:9px;font-weight:800;letter-spacing:1px;color:#736752}
.ic-word{font-family:'Arial Black',Arial,sans-serif;font-size:clamp(28px,7.4vw,40px);font-weight:950;font-style:italic;text-align:center;letter-spacing:-1.6px;line-height:1.17;margin:12px 0 8px;overflow-wrap:normal}
.ic-word>span{background:linear-gradient(178deg,transparent 7%,var(--yellow) 8% 94%,transparent 95%);padding:0 6px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ic-word-translation{font-size:19px;font-weight:750;text-align:center;line-height:1.3;margin:0}.ic-rule{height:1px;background:#211c1666;margin:14px 0 10px}
.ic-example{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.ic-sentence{display:flex;align-items:center;justify-content:center;width:100%;height:120px;min-height:120px;padding:6px 0;border:0;background:transparent;border-radius:8px;touch-action:pan-y pinch-zoom;text-align:center;user-select:none;-webkit-user-select:none}
.ic-sentence:hover,.ic-sentence:active{background:transparent}.ic-sentence:active mark{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:#c69700}.ic-sentence-text{font-size:25px;line-height:1.45;font-weight:750;font-style:italic;overflow-wrap:anywhere}
.ic-sentence-text mark,.ic-reveal-text mark{background:var(--yellow);color:var(--ink);padding:0 4px;border-radius:10px 3px 9px 4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ic-reveal{width:100%;height:96px;min-height:96px;max-height:96px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:0;border-top:1px dashed #211c1640;border-bottom:1px dashed #211c1640;background:transparent;padding:10px 12px;margin:8px 0 0;font-size:16px;font-weight:400;line-height:1.45;cursor:default;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.ic-reveal-hint{font-size:10px;letter-spacing:1px;color:#736752}.ic-reveal[aria-pressed=true]{background:transparent;border-color:#d6a62c}.ic-reveal [hidden]{display:none!important}
.ic-example-controls{padding-top:16px}.ic-pronouns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ic-pronouns button{border:1px solid #211c1638;background:transparent;border-radius:6px;font-size:10px;font-weight:750;line-height:1.25;min-height:44px;padding:7px 3px;color:#736752}
.ic-pronouns button[aria-pressed=true]{background:var(--yellow);color:var(--ink);border-color:#cba321}.ic-pronouns button:hover{border-color:var(--ink)}
.ic-paging{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}.ic-paging button{border:1px solid #211c1655;border-radius:7px;background:transparent;min-width:44px;height:36px;font-size:22px;line-height:1}.ic-active-pronoun{font-size:11px;font-weight:700;color:#736752;text-align:center}
.ic-hint{max-width:440px;font-size:11px;line-height:1.6;text-align:center;color:#736752;margin:20px auto}
.card-art>.scene-visual{display:block;width:100%;height:100%;object-fit:contain;transform:none}.card-art>.scene-empty>span{font-size:44px}
@media(max-width:390px){.ic-paper{padding:14px 18px 12px}.ic-meta{font-size:8px;letter-spacing:.6px}.ic-sentence-text{font-size:23px}.ic-word-translation{font-size:19px}}

.ic-card,.ic-card *{-webkit-tap-highlight-color:transparent}
.ic-sentence,.ic-reveal{appearance:none;-webkit-appearance:none;color-scheme:light}
.ic-sentence:focus-visible,.ic-reveal:focus-visible{outline:2px solid #d6a62c;outline-offset:3px}
@media(max-height:650px){.ic-paper{padding-top:12px}.ic-word{font-size:27px;margin:10px 0 8px}.ic-word-translation{font-size:17px}.ic-rule{margin:10px 0 8px}.ic-sentence{height:100px;min-height:100px}.ic-sentence-text{font-size:20px;line-height:1.35}.ic-reveal{height:84px;min-height:84px;max-height:84px;font-size:15px}}
.ic-sentence{-webkit-touch-callout:none}

.ic-sentence{flex-direction:column;gap:10px}.ic-active-pronoun{font-size:11px;font-style:normal;font-weight:400;color:#736752}
.ic-word-nav{display:flex;align-items:center;gap:4px;touch-action:pan-y pinch-zoom;user-select:none}
.ic-word-nav .ic-word{flex:1;min-width:0}.ic-word-arrow{flex:0 0 28px;width:28px;height:44px;border:0;background:transparent;font-size:32px;color:#99732b;padding:0}.ic-word-arrow:disabled{opacity:.18;cursor:default}
.ic-sentence{position:relative;padding-bottom:26px}.ic-sentence .ic-active-pronoun{position:absolute;bottom:8px;left:0;right:0;line-height:1.2}
.ic-word.ic-word-long{font-size:24px;letter-spacing:-.7px}.ic-reveal-text{font-size:15px;line-height:1.35}
@media(max-height:650px){.ic-word.ic-word-long{font-size:21px}.ic-reveal-text{font-size:13px}.ic-sentence-text{font-size:18px}}
.ic-usage-open{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin-top:14px;border:1px solid #d1ac56;border-radius:10px;background:transparent;color:var(--ink);font-size:14px;font-weight:750;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ic-usage-open>span{font-size:23px;color:#987020}.ic-usage-open:hover,.ic-usage-open:active{background:#ffcc0820}
body.usage-open{overflow:hidden}.usage-sheet{position:fixed;inset:auto 0 0;width:min(100%,640px);max-width:100%;max-height:78svh;margin:0 auto;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px max(24px,env(safe-area-inset-bottom));border:3px solid var(--ink);border-bottom:0;border-radius:24px 24px 0 0;background:var(--paper);color:var(--ink);box-shadow:0 -10px 45px #0003}.usage-sheet::backdrop{background:#19171188}.usage-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.usage-top .eyebrow{margin:0}.ic-usage-close{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border:2px solid var(--ink);border-radius:50%;background:var(--yellow);font-size:29px;line-height:1}.usage-sheet h2{font-size:29px;font-style:italic;margin:12px 0;overflow-wrap:anywhere}.usage-translation{font-size:16px;margin:0 0 24px}.usage-sheet section{padding:18px 0;border-top:1px solid #211c1640}.usage-sheet h3{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--blue);margin:0 0 10px}.usage-sheet section p{font-size:16px;line-height:1.65;margin:6px 0}.usage-sheet .usage-example-ru{font-size:14px;color:#736752}
@media(prefers-reduced-motion:no-preference){.usage-sheet[open]{animation:usage-arrive .2s ease-out}@keyframes usage-arrive{from{transform:translateY(35px);opacity:.5}to{transform:translateY(0);opacity:1}}}
.card-art{aspect-ratio:4/3}.card-art>.scene-visual{object-fit:cover;object-position:center}
.usage-grab{height:28px;display:flex;justify-content:center;align-items:center;touch-action:pan-x;cursor:grab}.usage-grab span{width:48px;height:5px;border-radius:8px;background:#bda77d}.usage-top{touch-action:pan-x}.usage-done{position:sticky;bottom:0;width:100%;min-height:52px;border:2px solid var(--ink);border-radius:12px;background:var(--yellow);font-weight:800;font-size:16px;margin-top:16px;touch-action:manipulation}
.usage-sheet{max-height:calc(100svh - 16px);padding:12px 22px max(16px,env(safe-area-inset-bottom))}.usage-grab{height:20px}.usage-top{min-height:20px}.usage-sheet h2{font-size:26px;line-height:1.15;margin:10px 0 8px}.usage-translation{margin:0 0 14px;font-size:15px}.usage-sheet section{padding:12px 0}.usage-sheet h3{font-size:11px;margin-bottom:8px}.usage-sheet section p{font-size:15px;line-height:1.45;margin:5px 0}.usage-sheet .usage-example-ru{font-size:14px;line-height:1.45}.usage-done{position:static;margin-top:12px}
@media(max-height:650px){.usage-sheet{padding:10px 18px 12px}.usage-sheet h2{font-size:24px}.usage-sheet section{padding:10px 0}.usage-sheet section p{font-size:14px;line-height:1.4}.usage-sheet .usage-example-ru{font-size:13px}}
.usage-pair{margin:8px 0}.usage-sheet .usage-pair p{font-size:14px;line-height:1.4;font-weight:650;margin:3px 0}.usage-pair small{display:block;font-size:12px;line-height:1.35;color:#736752}.usage-sheet section{padding:10px 0}.usage-dialogue .usage-pair{padding-left:10px;border-left:2px solid #d7b450}.usage-collocations .usage-pair p{color:#695014}
@media(max-height:650px){.usage-sheet h2{font-size:22px;margin:6px 0}.usage-translation{margin-bottom:8px;font-size:14px}.usage-sheet section{padding:8px 0}.usage-sheet section>p{font-size:13px;line-height:1.35}.usage-sheet .usage-pair p{font-size:13px;line-height:1.3}.usage-pair{margin:6px 0}.usage-pair small{font-size:12px;line-height:1.25}.usage-sheet h3{margin-bottom:6px}.usage-done{margin-top:8px}}
