/* Reading tools: editorial browser, game journal, story reader and visual studios. */
.reading-tool-page{--rt-accent:#b897de;--rt-accent-ink:#e3cff4}
html[data-theme=light] .reading-tool-page{--rt-accent:#8755ae;--rt-accent-ink:#714596}
.rt-page{padding-bottom:28px}.rt-page *{box-sizing:border-box}
.rt-page button,.rt-page input,.rt-page textarea{font:inherit}.rt-page button{cursor:pointer}.rt-page button:disabled{cursor:default;opacity:.45}
.rt-page button:focus-visible,.rt-page label:focus-within,.rt-page input:focus-visible,.rt-page textarea:focus-visible,.rt-page a:focus-visible{outline:2px solid var(--rt-accent);outline-offset:4px}
.rt-page [hidden]{display:none!important}.rt-page svg{width:20px;height:20px;flex-shrink:0}
.rt-opening-note{display:flex;gap:10px;align-items:flex-start;max-width:650px;margin:0 auto 30px;justify-content:center;color:var(--wd-soft)}
.rt-opening-note>span{width:6px;height:6px;border-radius:50%;background:var(--rt-accent);flex:0 0 6px;margin-top:9px}
.rt-opening-note p{font-size:12px;line-height:1.9;margin:0;text-align:center}
.rt-workspace{border:1px solid var(--wd-edge);border-radius:24px;background:var(--wd-panel);overflow:hidden;box-shadow:var(--wd-shadow)}
.rt-mast{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px 26px;border-bottom:1px solid var(--wd-edge);flex-wrap:wrap}
.rt-brand{display:inline-flex;align-items:center;gap:7px;font-size:16px;font-weight:700;direction:ltr;color:var(--wd-ink)}
.rt-brand img{object-fit:contain}.rt-brand small{font-size:10px;color:var(--wd-soft);font-weight:400;margin-inline-start:6px}
.rt-sample-chip{color:var(--rt-accent-ink);font-size:8px;letter-spacing:1.1px;padding:6px 9px;border:1px solid var(--wd-edge);border-radius:5px;background:var(--wd-tint)}
.rt-toolbar,.rt-reader-tools,.rt-text-toolbar,.rt-comic-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 26px;flex-wrap:wrap}
.rt-toolbar>span,.rt-reader-tools>div>span,.rt-text-toolbar>span{font-size:11px;color:var(--wd-soft)}
.rt-segment{display:flex;gap:3px;background:var(--wd-desk);padding:4px;border-radius:10px;border:1px solid var(--wd-edge);max-width:100%;flex-wrap:wrap}
.rt-segment button{font-size:11px;color:var(--wd-soft);padding:9px 13px;min-height:36px;border:1px solid transparent;border-radius:7px;background:none;flex:1;white-space:normal}
.rt-segment button[aria-pressed=true]{border-color:var(--wd-edge);background:var(--wd-panel);color:var(--wd-ink);box-shadow:0 2px 6px #00000008}
.rt-pair{display:grid;gap:11px;text-align:start;font-size:14px;line-height:1.9}
.rt-source{display:block;opacity:.72}.rt-target{display:block;color:inherit}
.rt-pair[data-mode=bilingual] .rt-target{border-inline-start:2px solid var(--rt-accent);padding-inline-start:14px;color:var(--rt-accent-ink)}
.rt-kicker{font-size:9px;letter-spacing:1.4px;color:var(--wd-soft);line-height:1.7}
.rt-note{padding:19px 26px;font-size:11px;line-height:1.9;color:var(--wd-soft);border-top:1px solid var(--wd-edge);margin:0}
.rt-browser{margin:0 26px 25px;border:1px solid var(--wd-edge);border-radius:13px;overflow:hidden}
.rt-address{display:flex;align-items:center;gap:5px;direction:ltr;padding:12px 15px;background:var(--wd-desk);border-bottom:1px solid var(--wd-edge)}
.rt-address>i{width:6px;height:6px;border-radius:50%;background:#b9adc1}.rt-address>i:nth-child(2){background:#d7be9d}.rt-address>i:nth-child(3){background:#9bbab1}
.rt-address>span{flex:1;margin-inline:12px;background:var(--wd-panel);border:1px solid var(--wd-edge);text-align:center;border-radius:5px;font-size:9px;color:var(--wd-soft);padding:5px}
.rt-address>b{font-size:17px;color:var(--rt-accent)}
.rt-web-grid{display:grid;grid-template-columns:minmax(0,1fr) 165px;background:var(--wd-desk)}
.rt-web-article{background:#f8f6f1;color:#343b42;padding:38px 48px;min-width:0}
.rt-web-article>.rt-kicker{color:#85827c}.rt-web-article .rt-pair[data-mode=bilingual] .rt-target{color:#79518a}
.rt-web-article h3{margin:14px 0 27px}.rt-web-article h3 .rt-pair{font-size:25px;line-height:1.5;font-weight:650;gap:9px}
.rt-web-article h3 .rt-source{opacity:1}.rt-web-article h3 .rt-target{font-size:21px}
.rt-web-article section{margin-top:26px}.rt-web-article h4{margin:0 0 12px}.rt-web-article h4 .rt-pair{font-size:12px;font-weight:600}
.rt-web-article section>.rt-pair{font-size:13px;line-height:2}


.rt-mountain{position:absolute;inset:0;overflow:hidden;direction:ltr}
.rt-mountain i{position:absolute;bottom:-30%;left:-8%;width:70%;height:130%;background:#728c95;clip-path:polygon(0 100%,55% 0,100% 100%)}
.rt-mountain i:nth-child(2){left:25%;background:#8c9da1;height:100%;width:80%}
.rt-mountain i:nth-child(3){left:0;bottom:-70%;height:150%;width:110%;background:#43656e;transform:rotate(6deg)}
.rt-mountain b{position:absolute;width:65px;height:65px;border-radius:50%;background:#f0d4a5;top:20%;right:15%;box-shadow:0 0 50px #e0c9a35c}
.rt-mountain span{position:absolute;bottom:-40%;height:80%;left:45%;width:10%;border-radius:50%;background:#d2c1a6;transform:rotate(40deg)}
.rt-web-aside{padding:35px 22px;text-align:center;color:var(--wd-soft)}
.rt-web-aside>span{display:grid;place-items:center;background:var(--wd-tint);border:1px solid var(--wd-edge);width:42px;height:42px;border-radius:14px;color:var(--rt-accent);font-size:22px;margin:0 auto 24px}
.rt-web-aside>div{display:grid;gap:7px;font-size:10px}.rt-web-aside small{font-size:8px;opacity:.7}.rt-web-aside>b{display:block;padding:17px;color:var(--rt-accent)}
.rt-web-aside i{display:block;height:1px;background:var(--wd-edge);margin:25px 0}.rt-web-aside p{font-size:9px;line-height:1.8}
.rt-game-workspace{background:#211a33;color:#eee9fa}









.rt-game-body{padding:28px;min-width:0}.rt-game-tabs{display:flex;border-bottom:1px solid #6d8d9638;gap:15px}
.rt-game-tabs button{background:none;color:#a4b7bd;border:0;padding:12px 0 16px;font-size:12px;border-bottom:2px solid transparent;flex:1;min-height:45px}
.rt-game-tabs button[aria-pressed=true]{color:#eed0a4;border-bottom-color:#cfb082}
.rt-game-languages{margin:23px 0;display:flex;align-items:center;gap:15px;justify-content:space-between;flex-wrap:wrap}
.rt-game-languages>span{font-size:9px;color:#a3b8c0}.rt-game-languages .rt-segment{background:#0b202b;border-color:#547a8542}
.rt-game-languages .rt-segment button{font-size:9px;color:#a7b9be;padding:7px 10px}
.rt-game-languages .rt-segment button[aria-pressed=true]{background:#29424d;color:#f1e6d6;border-color:#547a8542}
.rt-game-card{border:1px solid #7e9ea238;border-radius:10px;padding:24px;background:linear-gradient(145deg,#314b543d,#192c37)}
.rt-game-card-head{display:flex;align-items:center;gap:9px;color:#a9c0bf;font-size:10px}.rt-game-card-head>span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#42646754}.rt-game-card-head small{font-size:10px}
.rt-game-card h3{margin:20px 0}.rt-game-card h3 .rt-pair{font-size:20px;line-height:1.5}.rt-game-card .rt-pair{font-size:13px;line-height:2}.rt-game-card .rt-pair[data-mode=bilingual] .rt-target{color:#f0d6ad;border-color:#bd9c70}
.rt-game-tags{color:#a6c1c2;font-size:9px;padding:18px 0 0;margin-top:20px;border-top:1px solid #7e9ea238}
.rt-reader-tools>div:first-child{display:flex;align-items:center;gap:13px}
.rt-type-tools{display:flex;gap:5px}.rt-type-tools button{background:var(--wd-desk);color:var(--wd-ink);border:1px solid var(--wd-edge);border-radius:6px;min-height:36px;min-width:37px;font-size:13px}
.rt-story{background:#f7f2eb;color:#373744;margin:0 26px 26px;border:1px solid #ccb8ab50;border-radius:8px;box-shadow:0 12px 32px #0000000b;padding:36px clamp(20px,6vw,96px)}
.rt-story-heading{text-align:center;margin:0 auto 32px;padding-bottom:30px;border-bottom:1px solid #ccbeb3}
.rt-story-flower{font-size:30px;color:#9b656c}.rt-story-heading p{font-size:9px;color:#8e7975;margin:12px 0 18px;line-height:1.9}.rt-story-heading h3{font:600 30px/1.6 Georgia,serif;margin:0 auto 18px;max-width:540px}.rt-story-heading small{color:#897c76;font-size:9px}.rt-story-heading small>span{padding:0 14px;color:#a36e7f}
.rt-story-pair{display:block;text-align:start;border:1px solid transparent;width:100%;background:none;border-radius:7px;padding:21px 23px;position:relative;color:#48424a;transition:background .18s,opacity .18s}
.rt-story-pair>.rt-passage-number{display:block;margin-bottom:12px;font:9px/1.5 Arial,sans-serif;color:#b39b92}
.rt-story-pair .rt-source,.rt-story-pair .rt-target{font-size:var(--rt-reader-size);line-height:2.05;font-family:Georgia,serif}
.rt-story-pair .rt-source{color:#7d7474;opacity:1;margin-bottom:16px}
.rt-story-pair .rt-target{color:#493642}
.rt-story-pair[aria-pressed=true]{background:#e9d9d8;border-color:#c5a1ab}
.rt-story-passages[data-focused=true] .rt-story-pair[aria-pressed=false]{opacity:.5}
.rt-story-end{text-align:center;color:#b39b92;padding:20px 0 0}
.rt-text-toolbar>button{display:flex;align-items:center;gap:7px;padding:7px 0;font-size:11px;color:var(--rt-accent-ink);background:none;border:0;min-height:36px}
.rt-text-toolbar>button svg{width:15px;height:15px}
.rt-text-workspace{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--wd-edge);border-bottom:1px solid var(--wd-edge)}
.rt-text-workspace>section{min-width:0;padding:23px 26px;display:flex;flex-direction:column}
.rt-text-workspace>section+section{border-inline-start:1px solid var(--wd-edge);background:var(--wd-desk)}
.rt-pane-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:var(--wd-soft);min-height:33px}
.rt-pane-label>button{font-size:10px;min-height:32px;background:none;border:0;color:var(--wd-soft)}
.rt-pane-label svg{width:16px;height:16px}
.rt-text-workspace textarea{resize:vertical;min-height:230px;max-height:550px;background:none;border:0;color:var(--wd-ink);font-size:17px;line-height:1.9;padding:18px 0;width:100%;border-radius:4px;outline-offset:2px}
.rt-text-workspace textarea::placeholder{color:var(--wd-soft);opacity:.7}
.rt-text-count{font-size:9px;color:var(--wd-soft);margin-top:auto;display:flex;gap:4px;justify-content:flex-end}
.rt-text-result{font-size:17px;line-height:1.9;color:var(--rt-accent-ink);padding-top:18px}
.rt-text-empty{padding:22px 10px;text-align:center;color:var(--wd-soft);min-height:200px;display:grid;align-content:center;gap:12px}
.rt-text-empty>span{font-size:24px;color:var(--rt-accent)}
.rt-text-empty h4{font-size:16px;color:var(--wd-ink);margin:0;font-weight:500}.rt-text-empty p{font-size:11px;line-height:1.9;max-width:300px;margin:0 auto}
.rt-text-bottom{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:19px 26px}
.rt-text-bottom>p{font-size:10px;line-height:1.9;color:var(--wd-soft);margin:0;max-width:550px}
.rt-text-bottom>a,.rt-app-link{display:inline-flex;align-items:center;gap:9px;color:var(--rt-accent-ink);font-size:11px;flex-shrink:0;line-height:1.9}
.rt-text-bottom>a svg,.rt-app-link svg{width:15px;height:15px}
.rt-image-upload{padding:24px 26px;border-bottom:1px solid var(--wd-edge);display:flex;justify-content:space-between;align-items:center;gap:20px}
.rt-image-upload>div{display:flex;align-items:center;gap:14px;min-width:0}.rt-upload-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--wd-edge);background:var(--wd-tint);color:var(--rt-accent-ink);border-radius:11px;flex-shrink:0}
.rt-image-upload label{display:inline-block;font-size:14px;font-weight:600;color:var(--wd-ink);cursor:pointer;line-height:1.8;padding:3px 0}
.rt-image-upload small{display:block;font-size:9px;line-height:1.8;color:var(--wd-soft);margin-top:5px}
.rt-native-file{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.rt-image-upload:focus-within{outline:2px solid var(--rt-accent);outline-offset:-5px}
.rt-image-upload>button{color:var(--rt-accent-ink);font-size:10px;min-height:36px;background:none;border:0}
.rt-error{font-size:12px;color:#da8d95;padding:0 26px}
html[data-theme=light] .rt-error{color:#ab4057}
.rt-uploaded{margin:0;padding:25px 26px}
.rt-uploaded figcaption{display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--wd-soft);font-size:10px;margin-bottom:18px}
.rt-uploaded figcaption bdi{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:65%}
.rt-uploaded img{display:block;width:auto;height:auto;max-width:100%;max-height:560px;object-fit:contain;border-radius:10px;margin:auto}
.rt-uploaded p{font-size:11px;line-height:1.9;color:var(--wd-soft);max-width:600px;margin:20px auto 0;text-align:center}
.rt-image-scene{display:grid;grid-template-columns:minmax(0,1fr) 290px;padding:0 26px 26px;gap:24px;align-items:stretch}
.rt-poster{position:relative;min-height:450px;background:#d2ded2;overflow:hidden;border-radius:10px;isolation:isolate;padding:26px;color:#2a4644}
.rt-poster-art{position:absolute;inset:0;z-index:-1;direction:ltr}.rt-poster-art>span{position:absolute;background:#edba8d;width:200px;height:200px;border-radius:50%;top:30px;right:-20px}
.rt-poster-art>i{position:absolute;width:130%;height:60%;background:#7da89c;border-radius:50%;bottom:-32%;left:-30%;transform:rotate(-17deg)}
.rt-poster-art>i:nth-of-type(2){background:#a0bbb0;left:25%;bottom:-30%;transform:rotate(15deg)}
.rt-poster-art>i:nth-of-type(3){height:38%;width:100%;background:#476f6c;left:10%;bottom:-25%;transform:rotate(-8deg)}
.rt-poster-art>b{position:absolute;bottom:14%;right:17%;height:80px;width:54px;border-radius:30px 30px 0 0;border:4px solid #f1eee0;border-bottom:0}
.rt-poster-brand .rt-brand{color:#355a54;font-size:15px}
.rt-poster-words{position:relative;margin-top:42px;max-width:420px}.rt-poster-words h3{font-size:clamp(25px,3.2vw,42px);line-height:1.4;font-weight:600;letter-spacing:-1px;margin:0 0 20px}
.rt-poster-words p{font-size:17px;line-height:1.8;margin:0 0 33px}.rt-poster-words small{font-size:10px;line-height:1.8}
.rt-image-regions{padding:20px 0}.rt-image-regions>.rt-kicker{display:block;margin-bottom:17px}
.rt-image-regions>button{display:block;border:1px solid var(--wd-edge);border-radius:8px;padding:14px 16px;background:var(--wd-desk);width:100%;color:var(--wd-ink);margin-top:10px;text-align:start}
.rt-image-regions>button>small{color:var(--wd-soft);font-size:8px;display:block;margin-bottom:9px}
.rt-image-regions .rt-pair{font-size:12px;line-height:1.8;gap:8px}.rt-image-regions>button[aria-pressed=true]{border-color:var(--rt-accent);background:var(--wd-tint)}
.rt-image-scene[data-image-view=overlay] .rt-poster-words h3,.rt-image-scene[data-image-view=overlay] .rt-poster-words p,.rt-image-scene[data-image-view=overlay] .rt-poster-words small{border:1px dashed transparent;border-radius:4px;padding:2px 5px;margin-inline:-5px}
.rt-image-scene[data-image-region="0"][data-image-view=overlay] .rt-poster-words h3,.rt-image-scene[data-image-region="1"][data-image-view=overlay] .rt-poster-words p,.rt-image-scene[data-image-region="2"][data-image-view=overlay] .rt-poster-words small{border-color:#547972b3;background:#f2f4e851}
.rt-image-scene[data-image-view=side]{grid-template-columns:1fr 1fr}
.rt-image-scene[data-image-view=side] .rt-image-regions{padding:20px}
.rt-image-scene[data-image-view=original]{grid-template-columns:1fr}
.rt-image-scene[data-image-view=original] .rt-image-regions{display:none}
.rt-comic-toolbar .rt-segment{font-size:10px}.rt-comic-toolbar .rt-segment button{font-size:10px;padding:8px 11px}
.rt-comic-page{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 26px 26px;direction:ltr}
.rt-comic-panel{min-height:265px;position:relative;border-radius:9px;overflow:hidden;border:2px solid #37404d;background:linear-gradient(155deg,#f1dcc1,#b1c0bf)}
.rt-comic-panel-2{background:linear-gradient(170deg,#be9d9f,#a4b5c2)}.rt-comic-panel-3{grid-column:1/-1;min-height:285px;background:linear-gradient(170deg,#dfcab7,#c1c5c3)}
.rt-comic-art{position:absolute;inset:0;width:100%!important;height:100%!important}
.rt-panel-number{position:absolute;left:13px;bottom:11px;color:#e5ece7;font:9px Arial,sans-serif}
.rt-speech{position:relative;background:#faf5e9;color:#393e49;border:2px solid #47434b;border-radius:45% 42% 43% 44%;box-shadow:3px 3px #3c354725;padding:19px 22px;width:58%;margin:15px 17px;font-size:15px;font-weight:600;line-height:1.5;text-align:center;min-height:80px;display:grid;place-items:center}
.rt-speech:after{content:'';position:absolute;width:19px;height:26px;background:#faf5e9;bottom:-17px;right:22%;clip-path:polygon(0 0,100% 0,30% 100%)}
.rt-comic-panel-2 .rt-speech{margin-left:auto;margin-right:17px}.rt-comic-panel-3 .rt-speech{margin:20px auto 0;width:45%;max-width:420px}
.rt-comic-page[data-comic-layout=vertical]{grid-template-columns:minmax(0,1fr);max-width:580px;margin:auto;gap:25px}
.rt-comic-page[data-comic-layout=vertical] .rt-comic-panel-3{grid-column:auto}.rt-comic-page[data-comic-layout=vertical] .rt-speech{font-size:16px}.rt-comic-page[data-comic-layout=vertical] .rt-comic-panel-3 .rt-speech{width:70%}
.rt-example-footer{color:var(--wd-soft);font-size:9px;text-align:center;margin:0 0 25px}
.rt-area-instructions{display:flex;gap:12px;align-items:center;padding:21px 26px;color:var(--wd-soft)}.rt-area-instructions svg{color:var(--rt-accent)}.rt-area-instructions p{font-size:12px;line-height:1.9;margin:0}
.rt-area-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:25px;padding:0 26px 26px}
.rt-area-canvas{position:relative;border:1px solid #bbb8b1;border-radius:9px;overflow:hidden;touch-action:none;user-select:none;cursor:crosshair;background:#f7f5ee;min-height:470px;direction:ltr}
.rt-area-surface{padding:29px 31px;color:#343f46;display:grid;grid-template-rows:auto auto 135px auto auto;gap:20px;pointer-events:none;min-height:470px}
.rt-area-mast{font-size:9px;letter-spacing:1.2px;color:#7b8586}
.rt-area-surface h3{font-size:23px;line-height:1.5;margin:0}.rt-area-surface p{font-size:13px;line-height:1.9;margin:0}.rt-area-surface>small{font-size:10px;line-height:1.8;color:#788483}
.rt-area-picture{position:relative;background:linear-gradient(130deg,#d2c2ac,#c2d0cd);border-radius:4px;overflow:hidden}
.rt-selection-box{position:absolute;pointer-events:none;border:1.5px solid #b06fd2;background:#bd91dc20;box-shadow:0 0 0 1px #fff6;direction:ltr}
.rt-selection-box i{position:absolute;width:6px;height:6px;background:#ac74ca;border:1px solid #f6edff;border-radius:1px;left:-3px;top:-3px}.rt-selection-box i:nth-child(2){left:auto;right:-3px}.rt-selection-box i:nth-child(3){top:auto;bottom:-3px}.rt-selection-box i:nth-child(4){left:auto;top:auto;right:-3px;bottom:-3px}
.rt-area-presets{display:flex;gap:7px;flex-wrap:wrap;padding-top:12px}.rt-area-presets button{font-size:10px;background:var(--wd-desk);border:1px solid var(--wd-edge);border-radius:6px;color:var(--wd-soft);padding:8px 11px;min-height:36px}
.rt-area-presets button[aria-pressed=true]{color:var(--rt-accent-ink);border-color:var(--rt-accent)}.rt-area-presets button:last-child{margin-inline-start:auto}
.rt-area-result{padding:24px;background:var(--wd-desk);border:1px solid var(--wd-edge);border-radius:10px;min-height:260px}
.rt-area-result>.rt-kicker{display:block;margin-bottom:22px}.rt-area-result .rt-pair{font-size:13px;margin-bottom:25px}.rt-area-empty{font-size:14px;line-height:1.9;color:var(--wd-soft);padding-top:55px;margin:0}
.rt-detail-section{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:80px;padding:85px 25px}
.rt-detail-heading h2{font-size:32px;line-height:1.4;letter-spacing:-.8px;margin:18px 0 26px;max-width:320px;font-weight:600}
.rt-detail-section ol{list-style:none;margin:0;padding:0}.rt-detail-section li{display:flex;gap:23px;padding:20px 0;border-bottom:1px solid var(--wd-edge)}
.rt-detail-section li:first-child{padding-top:5px}.rt-detail-section li>span{font-size:9px;line-height:2.4;color:var(--rt-accent);padding-top:2px}
.rt-detail-section li>p{font-size:14px;line-height:1.9;margin:0;color:var(--wd-soft)}
.rt-related{border-top:1px solid var(--wd-edge);padding:35px 0}.rt-related h2{font-size:20px;line-height:1.6;font-weight:500;margin:0 0 25px}
.rt-related>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rt-related a{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--wd-edge);border-radius:9px;font-size:11px;min-height:65px;color:var(--wd-ink);background:var(--wd-panel)}
.rt-related a>svg:first-child{color:var(--rt-accent);width:19px;height:19px}.rt-related a>span{flex:1;line-height:1.7}.rt-related a>svg:last-child{width:14px;height:14px;color:var(--wd-soft)}
.rt-related a:hover{border-color:var(--rt-accent);background:var(--wd-tint)}
.rt-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
html[dir=rtl] .rt-story-heading h3,html[dir=rtl] .rt-story-pair .rt-source,html[dir=rtl] .rt-story-pair .rt-target{font-family:inherit}
html[dir=rtl] .rt-detail-heading h2,html[dir=rtl] .rt-poster-words h3{letter-spacing:0}
html[dir=rtl] .rt-app-link svg,html[dir=rtl] .rt-text-bottom>a svg,html[dir=rtl] .rt-related a>svg:last-child{rotate:180deg}
@media(min-width:1400px){.rt-web-article{padding:44px 70px}.rt-game-body{padding:35px}.rt-game-card{padding:29px}.rt-text-workspace textarea{min-height:270px}}
@media(max-width:900px){.rt-web-grid{grid-template-columns:minmax(0,1fr) 125px}.rt-web-article{padding:30px}.rt-web-aside{padding:30px 15px}.rt-game-body{padding:21px}.rt-game-card{padding:19px}.rt-game-card .rt-pair{font-size:12px}.rt-game-languages{gap:12px}.rt-image-scene{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.rt-poster{min-height:420px;padding:22px}.rt-area-workspace{grid-template-columns:1fr 1fr;gap:17px}.rt-area-surface{padding:25px 22px}.rt-area-result{padding:20px}.rt-detail-section{gap:50px}}
@media(max-width:700px){
.rt-opening-note{margin-bottom:22px;padding:0 5px}.rt-opening-note p{font-size:10px}
.rt-workspace{border-radius:18px}.rt-mast{padding:16px 18px;gap:10px}.rt-brand{font-size:14px}.rt-brand img{width:24px;height:24px}.rt-brand small{font-size:9px;margin-inline-start:2px}.rt-sample-chip{font-size:6px;letter-spacing:.5px;padding:5px}
.rt-toolbar,.rt-reader-tools,.rt-text-toolbar,.rt-comic-toolbar{padding:17px 18px;gap:12px}.rt-toolbar>span{font-size:10px}
.rt-segment{padding:3px}.rt-segment button{font-size:10px;padding:8px 10px;min-height:37px}
.rt-browser{margin:0 14px 18px;border-radius:10px}.rt-address{padding:10px;gap:4px}.rt-address>i{width:5px;height:5px}.rt-address>span{font-size:7px;margin-inline:6px}
.rt-web-grid{grid-template-columns:minmax(0,1fr)}.rt-web-aside{display:none}.rt-web-article{padding:24px 21px}.rt-web-article h3 .rt-pair{font-size:23px}.rt-web-article h3 .rt-target{font-size:19px}.rt-web-article section>.rt-pair{font-size:13px}.rt-web-article h3{margin-top:12px}.rt-note{padding:16px 18px;font-size:10px}

.rt-game-body{padding:16px 18px 22px}.rt-game-tabs{gap:13px}.rt-game-tabs button{font-size:11px;padding:12px 2px}.rt-game-languages{margin:18px 0;gap:14px}.rt-game-languages>span{font-size:9px}.rt-game-card{padding:20px}.rt-game-card h3 .rt-pair{font-size:20px}.rt-game-card .rt-pair{font-size:13px}
.rt-reader-tools{align-items:flex-start}.rt-reader-tools>div:first-child{gap:10px}.rt-reader-tools>div>span{font-size:9px}.rt-type-tools button{min-width:34px;min-height:37px}.rt-reader-tools .rt-segment{width:100%}
.rt-story{margin:0 13px 18px;padding:27px 13px 23px}.rt-story-heading{padding:0 10px 25px;margin-bottom:15px}.rt-story-heading h3{font-size:26px}.rt-story-heading p{font-size:9px}.rt-story-pair{padding:17px 12px}.rt-story-pair .rt-source,.rt-story-pair .rt-target{line-height:1.9}
.rt-text-toolbar{gap:15px}.rt-text-toolbar>span{font-size:9px}.rt-text-toolbar>button{font-size:10px}.rt-text-workspace{grid-template-columns:minmax(0,1fr)}.rt-text-workspace>section{padding:16px 20px}.rt-text-workspace>section+section{border-inline-start:0;border-top:1px solid var(--wd-edge)}
.rt-text-workspace textarea{min-height:170px;font-size:16px;padding:13px 0}.rt-text-result{font-size:16px;min-height:170px;padding:13px 0}.rt-pane-label{font-size:9px}.rt-text-count{font-size:8px}
.rt-text-bottom{padding:17px 20px;flex-direction:column;align-items:flex-start;gap:14px}.rt-text-bottom>p{font-size:10px}
.rt-image-upload{padding:19px 18px;gap:12px;align-items:flex-start;flex-direction:column}.rt-image-upload label{font-size:13px}.rt-image-upload small{font-size:8px;line-height:1.9}.rt-upload-icon{width:39px;height:39px}
.rt-image-scene,.rt-image-scene[data-image-view=side]{grid-template-columns:minmax(0,1fr);padding:0 15px 18px;gap:14px}
.rt-poster{min-height:400px;padding:23px}.rt-poster-words{margin-top:42px}.rt-poster-words h3{font-size:34px;line-height:1.35}.rt-poster-words p{font-size:17px}.rt-image-regions{padding:0}.rt-image-regions>.rt-kicker{font-size:8px;margin:5px 0 12px}
.rt-image-regions>button{padding:11px 13px;display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px}.rt-image-regions>button>small{margin:0;line-height:2}.rt-image-regions .rt-pair{font-size:11px;gap:7px}.rt-image-scene[data-image-view=side] .rt-image-regions{padding:0}
.rt-uploaded{padding:20px 18px}.rt-uploaded figcaption{font-size:9px;gap:12px}.rt-uploaded p{font-size:10px}
.rt-comic-toolbar{gap:10px}.rt-comic-toolbar .rt-segment{flex:1}.rt-comic-toolbar .rt-segment button{font-size:9px;padding:8px 10px;min-height:36px}
.rt-comic-page{padding:0 13px 19px;gap:9px}.rt-comic-panel{min-height:240px}.rt-comic-panel-3{min-height:255px}
.rt-speech{font-size:12px;padding:14px 13px;width:90%;min-height:85px;margin:12px auto!important;line-height:1.6;border-width:1.5px}.rt-comic-panel-3 .rt-speech{font-size:14px;width:75%;max-width:280px}.rt-comic-panel-1 .rt-comic-art{object-position:right}.rt-comic-page[data-comic-layout=vertical] .rt-comic-panel{min-height:290px}.rt-comic-page[data-comic-layout=vertical] .rt-speech{font-size:15px;width:65%;margin:16px!important}
.rt-area-instructions{padding:18px;gap:10px}.rt-area-instructions p{font-size:11px}
.rt-area-workspace{grid-template-columns:minmax(0,1fr);padding:0 14px 19px;gap:18px}.rt-area-canvas,.rt-area-surface{min-height:455px}.rt-area-surface{padding:25px 23px;grid-template-rows:auto auto 115px auto auto;gap:19px}.rt-area-surface h3{font-size:23px}.rt-area-surface p{font-size:13px}
.rt-area-result{min-height:185px;padding:20px}.rt-area-result>.rt-kicker{font-size:8px;margin-bottom:17px}.rt-area-empty{padding-top:15px;font-size:13px}.rt-area-presets{gap:6px}.rt-area-presets button{font-size:9px;min-height:37px;padding:8px 10px}
.rt-detail-section{grid-template-columns:minmax(0,1fr);gap:28px;padding:52px 7px}.rt-detail-heading h2{font-size:29px;max-width:300px;margin-top:15px}.rt-detail-heading>.wd-eyebrow{font-size:8px}.rt-detail-section li{padding:18px 0;gap:18px}.rt-detail-section li>p{font-size:13px}.rt-related{padding:27px 0}.rt-related h2{font-size:19px;max-width:280px;margin-bottom:22px}.rt-related>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rt-related a{padding:13px 11px;font-size:10px;gap:8px;min-height:67px}.rt-related a>svg:first-child{width:17px;height:17px}.rt-related a>svg:last-child{width:12px;height:12px}
}
@media(max-width:360px){.rt-segment button{padding-inline:7px;font-size:9px}.rt-mast{padding-inline:14px}.rt-brand small{display:none}.rt-comic-page{grid-template-columns:minmax(0,1fr)}.rt-comic-panel-3{grid-column:auto}.rt-speech{width:65%;font-size:14px;margin:15px!important}.rt-related a{padding:12px 9px;font-size:9px;gap:6px}.rt-poster-words h3{font-size:30px}}
@media(prefers-reduced-motion:reduce){.rt-page *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Browser captures for Web, Steam and AO3. */
.rt-reading-screenshot {
  display: grid;
  max-width: 1140px;
  margin: 0 auto clamp(24px, 4vw, 44px);
  border: 1px solid var(--translation-edge);
  border-radius: clamp(13px, 2vw, 20px);
  background: var(--wd-panel);
  overflow: hidden;
  box-shadow: var(--wd-shadow);
}

.rt-screenshot-image {
  display: block;
  background: var(--translation-wash);
}

.rt-screenshot-image:focus-visible {
  outline-offset: -4px;
}

.rt-screenshot-image img {
  display: block;
  width: 100%;
  height: auto;
}

.rt-reading-screenshot figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 11px clamp(12px, 2.4vw, 22px);
  color: var(--wd-soft);
  border-block-start: 1px solid var(--translation-edge);
  font-size: 12px;
}

.rt-reading-screenshot figcaption > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.rt-reading-screenshot figcaption :is(strong, a) {
  color: var(--translation-ink);
}

.rt-reading-screenshot figcaption a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rt-game-body {
  max-width: 850px;
  margin-inline: auto;
}

.rt-game-tabs button[aria-pressed="true"],
.rt-game-card .rt-pair[data-mode="bilingual"] .rt-target {
  color: #ebd9ff;
  border-color: #b694df;
}
