/* Wordex: an island card album. Daily collectibles never imply earned mastery. */
/* Repeated taps anywhere on an album/card should not invoke WebKit smart zoom.
   Keep scrolling and deliberate pinch zoom available for accessibility. */
body.wordex-playful{touch-action:manipulation}
body.wordex-playful[data-app-page="zukan"]{--ink:#294f43;--muted:#627468;--card:#fffbed;--wx-top:#fffefa;--wx-bottom:#f3e8cf;--wx-rim:#fffdf4;--wx-base:#b9b496;--wx-ink:#345248;--app-font:'Fredoka','Zen Kaku Gothic New',sans-serif;min-height:100svh;color:var(--ink);font-family:var(--app-font);background:#e8eddc;isolation:isolate}
body.wordex-playful::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#eef4e9d9,#eef4e9e8 60%,#dfebdbea),url('assets/ui/shimago-practice-rooms-v1/library.webp') center/cover no-repeat}
body.wordex-playful[data-app-page="zukan"]>header{max-width:980px;min-height:66px;margin:auto;padding:calc(10px + env(safe-area-inset-top,0px)) 24px 10px;background:none;gap:12px;color:var(--ink)}
body.wordex-playful[data-app-page="zukan"] header h1{font:700 25px/1.05 var(--app-font);color:var(--ink);text-align:left;display:flex;flex-direction:column;gap:4px}
body.wordex-playful header h1 small{font:500 10px/1.3 var(--app-font);letter-spacing:.07em;color:var(--muted)}
body.wordex-playful[data-app-page="zukan"] main{max-width:980px;padding:8px 24px 22px;margin:auto}
body.wordex-playful :is(.wx-button,.back,.tab,.kchip,.sheet .acts a,.sheet .acts button){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:2px solid var(--wx-rim);border-radius:15px;background:radial-gradient(ellipse 80% 70% at 50% -12%,#ffffffba,transparent),linear-gradient(var(--wx-top),var(--wx-bottom));color:var(--wx-ink);box-shadow:inset 0 2px #ffffffd9,0 4px 0 var(--wx-base),0 7px 13px #203f2911;padding:10px 17px;font:600 15px/1.35 var(--app-font);text-decoration:none;cursor:pointer;touch-action:manipulation;transition:transform .15s,box-shadow .15s}
body.wordex-playful :is(.wx-button,.back,.tab,.kchip,.sheet .acts a,.sheet .acts button):not(:disabled):active{transform:translateY(3px);box-shadow:inset 0 2px #fff9,0 1px var(--wx-base)}
body.wordex-playful .wx-primary{--wx-top:#b6f48b;--wx-bottom:#80d255;--wx-rim:#dcffb9;--wx-base:#4f913b;--wx-ink:#284c25}
body.wordex-playful :is(a,button,input):focus-visible{outline:3px solid #357c85;outline-offset:4px}
body.wordex-playful button:disabled{opacity:.5;cursor:default}
body.wordex-playful[data-app-page="zukan"] .back{font-size:12px;padding:8px 12px}
body.wordex-playful[data-app-page="zukan"]>header>.back:last-child{width:44px;padding:5px;font-size:23px}
.wx-daily{position:relative;display:flex;align-items:center;justify-content:center;gap:50px;min-height:231px;padding:25px 38px;margin:0 0 21px;border:2px solid #85bca3;border-radius:29px;background:radial-gradient(ellipse at 20% 20%,#6cae8b77,transparent 65%),linear-gradient(135deg,#356b58,#204d44);box-shadow:inset 0 2px #ffffff39,0 6px #1d453a,0 14px 26px #20482d20;color:#ffffed;overflow:hidden}
.wx-daily::before,.wx-daily::after{content:"";position:absolute;pointer-events:none;width:230px;height:230px;border:1px solid #ffffff15;border-radius:50%;left:-40px;top:-55px}
.wx-daily::after{width:340px;height:340px;left:-95px;top:-110px}
.wx-pack{width:155px;height:177px;position:relative;flex:none;perspective:700px;transform:rotate(-7deg)}
.wx-pack-back,.wx-pack-front{position:absolute;inset:0;border:3px solid #fdf5d8;border-radius:18px;box-shadow:0 5px 0 #163d363e,0 8px 17px #0c302e33}
.wx-pack-back{transform:rotate(14deg) translate(10px,2px);background:linear-gradient(135deg,#c6b7f1,#b9d1eb)}
.wx-pack-front{display:flex;align-items:center;flex-direction:column;padding:11px 8px;background:linear-gradient(130deg,#fff7d9,#e8ffe8 45%,#d9ebfa);color:#356353;overflow:hidden}
.wx-pack-front::after{content:"";position:absolute;inset:6px;border:1px solid #67876b45;border-radius:12px;pointer-events:none}
.wx-pack-front>span{font-size:9px;font-weight:600;letter-spacing:.17em}
.wx-pack-front img{width:112px;height:103px;object-fit:contain;filter:drop-shadow(0 4px 3px #234a4526)}
.wx-pack-front b{font-size:18px;letter-spacing:.07em;line-height:1.1}
.wx-pack-front small{font-size:8px;letter-spacing:.15em;margin-top:3px}
.wx-daily-copy{position:relative;max-width:340px;flex:1}
.wx-eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:.1em;line-height:1.4}
.wx-daily-copy>.wx-eyebrow{color:#c5e2bd;margin-bottom:7px}
.wx-daily h2{font:600 30px/1.3 var(--app-font);margin:0 0 8px;text-wrap:balance}
.wx-daily p{font-size:14px;line-height:1.65;color:#e5eedb}
.wx-daily .wx-button{margin-top:15px;min-width:217px;font-size:15px}
#dailyStatus{display:block;font-size:11px;line-height:1.5;margin-top:8px;color:#edf3de;max-width:330px}
#dailyStatus:empty{display:none}
.wx-daily.claimed .wx-pack{transform:rotate(3deg)}
.wx-daily.claimed .wx-pack-front{background:linear-gradient(130deg,#ebf3ff,#ebfff6,#f6e8fd)}
.wx-modes{display:flex;gap:7px;background:#d0dcc8;border:1px solid #c7d5be;padding:5px;border-radius:19px;margin-bottom:16px}
.wx-mode{flex:1;min-height:43px;padding:7px 10px;border:0;border-radius:14px;background:none;color:#596d5d;font:600 15px/1.35 var(--app-font);cursor:pointer}
.wx-mode.on{background:linear-gradient(#fffefa,#faf3df);color:#33553f;box-shadow:inset 0 2px #fff,0 3px #b5b89d}
.wx-mode span{display:inline-grid;place-items:center;min-width:23px;height:22px;padding:0 6px;border-radius:8px;background:#ddeacb;color:#436238;font-size:12px;margin-left:4px}
.wx-album-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:7px}
.wx-album-head .wx-eyebrow{color:#627562;font-size:9px}
.wx-album-head h2{font-size:21px;font-weight:600;line-height:1.4}
.wx-mastered{padding:7px 10px;background:#fff9df;border:1px solid #e8d6a2;border-radius:12px;font-size:11px;color:#795e20;white-space:nowrap}
.wx-album-controls{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:10px;min-height:30px}
.wx-album-controls p{font-size:12px;color:var(--muted)}
.wx-text-button{border:0;border-bottom:1px solid #739675;background:none;font:500 11px/1.3 var(--app-font);color:#426d48;min-height:32px;padding:3px 1px;cursor:pointer}
.wx-text-button[aria-pressed=true]{color:#2b6242;font-weight:700}
.wx-album-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:17px 14px;background:linear-gradient(130deg,#fffef6,#f5edd7);border:2px solid #fffdf6;border-radius:25px;box-shadow:0 5px #bdba9e,0 10px 20px #3d5b3110;min-height:215px}
.wx-card{position:relative;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;min-width:0;min-height:176px;padding:10px 6px 9px;border:2px solid #fffef7;border-radius:15px;background:linear-gradient(145deg,#f8f5ff,#d6efe4 65%,#cee7f0);box-shadow:0 3px #98b6a3,0 6px 9px #385d4211;color:#33534a;font-family:var(--app-font);cursor:pointer;isolation:isolate;transition:transform .18s}
.wx-card::before{content:"";position:absolute;inset:5px;border:1px solid #fff9;border-radius:10px;pointer-events:none;z-index:-1}
.wx-card .wx-card-no{align-self:flex-start;margin-left:4px;font-size:8px;letter-spacing:.06em;color:#687e71}
.wx-card .wx-card-art{width:94px;height:85px;max-width:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #2344371a);pointer-events:none}
.wx-card .wx-card-word{font-size:14px;font-weight:600;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.wx-card .wx-card-jp{font-size:9px;line-height:1.25;text-align:center;color:#567361;overflow-wrap:anywhere}
.wx-card .wx-card-stamp{font-size:8px;line-height:1;letter-spacing:.06em;color:#617766;margin-top:auto;padding-top:5px}
.wx-card:not(.locked):hover{transform:translateY(-3px)}
.wx-card.locked{border:1px dashed #b8c8b0;box-shadow:inset 0 2px 5px #4a704214;background:linear-gradient(145deg,#e7eddb,#d9e3ce);color:#84977e}
.wx-card.locked::before{border-color:#f6f9ea99}
.wx-card.locked .wx-card-word{font-size:12px;color:#758c6f}
.wx-card.locked .wx-card-stamp{color:#7d9176}
.wx-card .wx-card-seal{display:grid;place-items:center;width:70px;height:72px;margin:4px 0;color:#a5b59c;font:600 34px/1 var(--app-font);border:1px solid #b9c9ae;border-radius:50%;background:#edf2e322}
.wx-card.is-new::after{content:"NEW";position:absolute;top:-7px;right:-5px;padding:5px 7px;border:1px solid #ffddc5;border-radius:9px;background:#e98e74;color:#fffdf2;font-size:8px;letter-spacing:.05em;transform:rotate(7deg)}
.wx-pagination{display:flex;align-items:center;justify-content:center;gap:21px;margin-top:15px}
body.wordex-playful .wx-arrow{min-width:44px;width:44px;min-height:40px;padding:3px;font-size:25px;line-height:1}
.wx-pagination>span{font-size:12px;color:#5e755f;min-width:55px;text-align:center}
.wx-footnote{font-size:10px;color:#6e7e68;text-align:center;margin-top:13px;line-height:1.6}
.wx-empty-album{grid-column:1/-1;display:grid;place-content:center;text-align:center;padding:20px;gap:5px;font-size:15px}
.wx-empty-album small{font-size:12px;color:var(--muted)}
body.wordex-playful [hidden]{display:none!important}
/* Keep the entire learning catalogue available in its own view. */
body.wordex-playful .folio{background:linear-gradient(130deg,#4c7c66,#315e50);border:2px solid #b0c6a8;border-radius:22px;padding:17px 20px;box-shadow:0 4px #244a3f;margin-bottom:17px}
body.wordex-playful .folio .big{font:600 30px/1.1 var(--app-font)}
body.wordex-playful .folio .lab{font-size:11px;margin-top:4px}
body.wordex-playful .folio .row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
body.wordex-playful .folio .stat{min-width:0;padding:8px 10px;border:1px solid #d9ebcf33}
body.wordex-playful .folio .stat b{font-size:20px}
body.wordex-playful .folio .stat span{font-size:9px}
/* Learned words use the same card pockets, with quiet optional filters. */
.wx-words-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 16px}
.wx-words-head .wx-eyebrow{font-size:9px;color:#73816b;margin-bottom:3px}
.wx-words-head h2{font:600 26px/1.25 var(--app-font)}
#wordSummary{font-size:12px;color:var(--muted);text-align:right}
.wx-word-states{display:flex;gap:9px;margin-bottom:15px}
.wx-word-states button{flex:1;min-height:47px;border:1px solid #bbcdb1;border-radius:15px;background:#e7eddb;color:#627861;padding:7px 12px;font:600 13px/1.3 var(--app-font);cursor:pointer;box-shadow:inset 0 1px #fffff4}
.wx-word-states button.on{background:linear-gradient(#fffef6,#f4ecd6);border:2px solid #fffff6;box-shadow:0 3px #b7bc9f;color:#335846}
.wx-word-states button[data-word-state="mastered"].on{background:linear-gradient(#fff8dd,#ffedb8);border-color:#efce77;color:#765b20;box-shadow:0 3px #cfb573}
.wx-word-states button span{display:inline-grid;place-items:center;background:#dae6ce;border-radius:7px;min-width:22px;padding:3px 5px;margin-left:4px;font-size:11px}
.wx-word-states button[data-word-state="mastered"] span{background:#f6ebc9;color:#806b30}
.wx-word-search{display:flex;gap:10px;margin-bottom:19px}
body.wordex-playful #q{flex:1;min-width:0;width:100%;min-height:45px;border:2px solid #fbfff6;border-radius:15px;background:#f8faee;color:var(--ink);padding:10px 15px;font:400 16px/1.35 var(--app-font);box-shadow:inset 0 1px 4px #355b2810,0 2px #bdc9af}
body.wordex-playful #wordFilterOpener{font-size:12px;padding:8px 12px;white-space:nowrap}
.wx-word-grid{min-height:272px;padding:19px 16px;gap:13px}
.wx-word-card{min-height:229px;padding:12px 8px;gap:6px}
.wx-word-card .wx-vocab-art{width:108px;height:100px;object-fit:contain;max-width:100%;filter:drop-shadow(0 3px 2px #2344371a)}
.wx-word-card .wx-card-word{font-size:17px}
.wx-word-card .wx-card-jp{font-size:11px;line-height:1.4}
.wx-word-card .wx-card-stamp{font-size:10px;padding-top:0;margin-top:0}
.wx-word-card.gold{background:linear-gradient(145deg,#fff9db,#ffedb8 65%,#f5dc93);border-color:#E0A82E;box-shadow:0 3px #ba9c51;color:#705a1f}
.wx-word-growth{width:45px;height:4px;border-radius:4px;background:#bcd6c4;overflow:hidden;margin-top:auto}
.wx-word-growth i{display:block;height:100%;border-radius:inherit;background:#77b78f}
.wx-word-card.gold .wx-word-growth{background:#ebd694}.wx-word-card.gold .wx-word-growth i{background:#E0A82E}
.wx-word-card.locked .wx-word-growth{visibility:hidden}
.wx-letter{display:grid;place-items:center;width:90px;height:90px;font:600 46px/1 var(--app-font);color:#76956c;background:#ffffff66;border-radius:23px;max-width:100%}
.wx-learning-note{margin-top:14px;color:#6d8166;font-size:11px}
.wx-learning-note summary{width:fit-content;margin:auto;min-height:38px;display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none}
.wx-learning-note summary::-webkit-details-marker{display:none}
.wx-learning-note summary::after{content:'⌄';font-size:15px}.wx-learning-note[open] summary::after{content:'⌃'}
.wx-learning-note .folio{margin-top:12px}
.wx-empty-album .wx-button{margin-top:12px}
.wx-filter-dialog{max-width:360px;padding:30px 25px 24px}
.wx-filter-dialog h2{margin:7px 0 23px}
.wx-filter-dialog fieldset{border:0;margin-bottom:17px}.wx-filter-dialog legend{font-size:12px;margin-bottom:9px;color:#677b61}
.wx-filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wx-filter-options button{min-height:44px;border:2px solid #fffdf4;border-radius:12px;background:linear-gradient(#fffef8,#f0ebd9);color:#526b51;box-shadow:0 3px #bbc6a8;font:600 12px/1.3 var(--app-font);padding:8px 5px;cursor:pointer}
.wx-filter-options button[aria-pressed=true]{background:linear-gradient(#c4f2ae,#a4dc8b);border-color:#efffde;box-shadow:0 3px #81a96c;color:#355a2d}
#wordKind .wx-filter-options{grid-template-columns:repeat(3,minmax(0,1fr))}#wordKind .wx-filter-options button{font-size:11px}
.wx-filter-dialog #wordFilterReset{display:block;margin:0 auto 19px;min-height:36px;font-size:11px}
body.wordex-playful select:focus-visible,body.wordex-playful summary:focus-visible{outline:3px solid #357c85;outline-offset:4px}
body.wordex-playful .empty{background:#fff9e9;border:2px solid #fff;border-radius:23px;color:var(--muted)}
/* Dialogs: a card held up in front of the album, with keyboard-safe controls. */
.wx-dialog-open{overflow:hidden}
body.wordex-playful .ov{z-index:100;background:#193f38aa;backdrop-filter:blur(5px);padding:12px;align-items:center}
body.wordex-playful .sheet{background:#fff9e9;border:3px solid #fffef6;border-radius:27px;max-height:calc(100svh - 30px);padding:25px;box-shadow:0 7px #bec6a7,0 22px 50px #153e3b35;text-align:center;color:var(--ink)}
body.wordex-playful .sheet>.wx-vocab-art{display:block;width:135px;height:125px;margin:0 auto 12px}
body.wordex-playful .sheet .kind{display:block;width:fit-content;margin:0 auto 12px}
body.wordex-playful .sheet .acts{gap:12px}
body.wordex-playful .sheet .acts :is(a,button){font-size:13px}
body.wordex-playful .sheet .close{min-height:44px;margin-top:16px}
body.wordex-playful .sheet .jpm{color:#577362}
body.wordex-playful .toast{z-index:120;bottom:110px;background:#335f4e;border:1px solid #b4d6b1;max-width:calc(100% - 30px);text-align:center;font-size:13px}
.wx-reveal{margin:auto;padding:32px 26px 25px;border:2px solid #fffef3;border-radius:30px;background:linear-gradient(155deg,#fffef8,#f0f5e4);color:#345545;width:min(400px,calc(100% - 28px));max-height:calc(100svh - 26px);overflow:auto;box-shadow:0 7px #bfc6a7,0 25px 80px #193e4259;overscroll-behavior:contain}
.wx-reveal::backdrop{background:#163f38ae;backdrop-filter:blur(6px)}
.wx-reveal-close{position:absolute;right:9px;top:9px;width:44px;height:44px;border:0;border-radius:14px;background:#e4ecd9;color:#546e57;font-size:27px;cursor:pointer}
.wx-reveal-content{text-align:center}
.wx-reveal h2{font-size:25px;line-height:1.25;margin:4px 15px 7px;font-weight:600}
.wx-reveal-sub{font-size:12px;color:#6d8168;margin-bottom:18px}
.wx-reveal .wx-card{width:208px;min-height:271px;margin:0 auto 22px;padding:15px 13px 14px;border-radius:22px;border-width:3px;box-shadow:0 6px #98b6a3,0 18px 25px #63876529;pointer-events:none;background:linear-gradient(140deg,#f7eaff,#dbf7ea 45%,#c7e9fa)}
.wx-reveal .wx-card::before{inset:8px;border-radius:15px}
.wx-reveal .wx-card-art{width:154px;height:140px}
.wx-reveal .wx-card-word{font-size:23px}
.wx-reveal .wx-card-jp{font-size:13px;line-height:1.45}
.wx-reveal .wx-card-no{font-size:10px}
.wx-reveal .wx-card-stamp{font-size:9px}
.wx-reveal .wx-button{width:100%;min-height:49px}
.wx-reveal .wx-audio{margin-bottom:11px;--wx-top:#c5edf5;--wx-bottom:#94d9e9;--wx-rim:#ebffff;--wx-base:#6eb1bb;--wx-ink:#365e68}
.wx-reveal-note{font-size:10px;color:#6c7f65;line-height:1.5;margin-top:13px}
.wx-reveal-celebrate .wx-card{animation:wx-reveal .55s cubic-bezier(.21,.8,.32,1) both}
.wx-reveal-celebrate .wx-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(110deg,transparent 30%,#ffffffaa 48%,transparent 64%);background-size:250% 100%;animation:wx-shimmer 1s .25s ease-out both}
@keyframes wx-reveal{from{opacity:0;transform:translateY(25px) rotate(-8deg) scale(.85)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes wx-shimmer{from{background-position:150% 0;opacity:1}to{background-position:-100% 0;opacity:0}}
@media(max-width:700px){
 body.wordex-playful[data-app-page="zukan"]>header{padding-inline:15px;min-height:60px}
 body.wordex-playful[data-app-page="zukan"] main{padding:5px 14px 15px}
 .wx-daily{min-height:177px;gap:19px;padding:16px 17px;margin-bottom:16px;border-radius:25px;justify-content:space-between}
 .wx-pack{width:108px;height:139px;flex-basis:108px}
 .wx-pack-front{padding:9px 6px;border-radius:14px}
 .wx-pack-front>span{font-size:7px}
 .wx-pack-front img{width:91px;height:81px}
 .wx-pack-front b{font-size:14px}
 .wx-pack-front small{font-size:6px}
 .wx-daily h2{font-size:22px;margin-bottom:5px}
 .wx-daily-copy>.wx-eyebrow{font-size:9px;margin-bottom:5px}
 .wx-daily p{font-size:12px;line-height:1.55}
 .wx-daily .wx-button{font-size:12px;padding:10px 8px;min-width:0;width:100%;margin-top:10px}
 #dailyStatus{font-size:9px;margin-top:6px}
 .wx-modes{margin-bottom:12px;padding:4px}
 .wx-mode{font-size:12px;min-height:38px;padding:6px}
 .wx-mode span{font-size:10px;min-width:19px;height:20px;margin-left:2px}
 .wx-album-head h2{font-size:19px}
 .wx-album-head .wx-eyebrow{font-size:8px}
 .wx-mastered{font-size:10px;padding:6px 8px}
 .wx-album-controls{margin-bottom:7px;gap:8px}
 .wx-album-controls p{font-size:10px}
 .wx-text-button{font-size:10px}
 .wx-album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 9px;min-height:179px;border-radius:21px}
 .wx-card{min-height:151px;padding:8px 5px;gap:4px;border-radius:13px}
 .wx-card .wx-card-art{height:72px;width:80px}
 .wx-card .wx-card-word{font-size:13px}
 .wx-card .wx-card-jp{font-size:8px}
 .wx-card .wx-card-no{font-size:7px;margin-left:2px}
 .wx-card .wx-card-stamp{font-size:7px}
 .wx-card .wx-card-seal{width:58px;height:61px;font-size:29px}
 .wx-pagination{margin-top:12px;gap:17px}
 .wx-footnote{font-size:9px;margin-top:10px;padding-inline:9px}
 body.wordex-playful .folio{padding:15px}
 body.wordex-playful .folio .big{font-size:27px}
 .wx-reveal .wx-card{min-height:253px}
 .wx-reveal .wx-card-art{height:130px;width:144px}
 .wx-reveal .wx-card-word{font-size:22px}
 .wx-reveal .wx-card-jp{font-size:12px}
}
@media(max-width:360px){
 body.wordex-playful[data-app-page="zukan"] main{padding-inline:10px}
 .wx-daily{padding:14px 12px;gap:14px}
 .wx-pack{width:86px;height:124px;flex-basis:86px}
 .wx-pack-front img{width:73px;height:67px}
 .wx-daily h2{font-size:20px}
 .wx-daily p{font-size:11px}
 .wx-card .wx-card-word{font-size:12px}
 .wx-mastered{font-size:9px}
}
@media(max-height:700px) and (max-width:700px){
 body.wordex-playful[data-app-page="zukan"]>header{min-height:55px;padding-block:7px}
 .wx-daily{min-height:160px;padding-block:12px;margin-bottom:14px}
 .wx-pack{height:125px}
 .wx-pack-front img{height:68px}
 .wx-album-head h2{font-size:17px}
 .wx-album-grid{padding-block:10px;min-height:165px}
 .wx-card{min-height:141px}
 .wx-card .wx-card-art{height:64px}
 .wx-card .wx-card-seal{height:53px;width:53px}
 .wx-footnote{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){body.wordex-playful *,body.wordex-playful *::before,body.wordex-playful *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* One illustrated icon per destination; the SVG remains the image-error fallback. */
body.wordex-playful[data-ui="playful"] .dw-nav{left:8px;right:8px;top:auto;bottom:0;width:auto;transform:none;display:flex;flex-direction:row;gap:2px;padding:5px max(4px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));border:1px solid #d3c5a4;border-bottom:0;border-radius:25px 25px 0 0;background:linear-gradient(#fffdf5,#f9f1df);box-shadow:inset 0 2px #fff,0 -3px 18px #123b4f15;backdrop-filter:none}
body.wordex-playful[data-ui="playful"] .dw-nav a{flex:1 1 0%;min-width:44px;min-height:64px;padding:4px 0 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:17px;color:#647766;opacity:1;font:500 11px/1.4 var(--app-font)}
body.wordex-playful[data-ui="playful"] .dw-nav a:last-child{flex-grow:1.25}
body.wordex-playful[data-ui="playful"] .dw-nav a.on{background:#e2edd7;box-shadow:inset 0 1px #fff,0 2px #baccb1;color:#315a49;font-weight:800}
body.wordex-playful[data-ui="playful"] .dw-nav a [data-jp]{font:inherit;letter-spacing:normal;white-space:normal;word-break:normal}
body.wordex-playful[data-ui="playful"] .dw-nav .dw-ic{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;flex:none}
body.wordex-playful[data-ui="playful"] .dw-nav-object{display:block;width:36px;height:36px;object-fit:contain;flex:none}
body.wordex-playful[data-ui="playful"] .dw-nav-object+svg{display:none}
body.wordex-playful[data-ui="playful"] .dw-nav .dw-badge{top:0;right:-7px;background:#367d75;border:1px solid #fff9e9;font:700 10px/1.3 var(--app-font);min-width:17px;height:17px}
@media(min-width:880px){
 body.wordex-playful[data-ui="playful"].dw-has-nav{--dw-nav-inset:228px;padding-left:var(--dw-nav-inset);padding-bottom:24px}
 body.wordex-playful[data-ui="playful"] .dw-nav{left:18px;right:auto;top:20px;bottom:20px;width:190px;flex-direction:column;justify-content:flex-start;gap:9px;padding:15px 10px;border:1px solid #d3c5a4;border-radius:27px;box-shadow:inset 0 2px #fff,0 6px #b9a987,0 12px 30px #163c4d14}
 body.wordex-playful[data-ui="playful"] .dw-nav a{flex:none;width:100%;min-height:56px;flex-direction:row;justify-content:flex-start;padding:8px 9px;gap:10px;font-size:14px;text-align:left}
 body.wordex-playful[data-ui="playful"] .dw-nav a:last-child{flex-grow:0}
}

/* Keep the claim and album pager above the phone's navigation dock. */
@media(max-width:700px){
 body.wordex-playful .wx-daily .wx-button{font-size:12px;padding:10px 8px}
}
@media(max-height:700px) and (max-width:700px){
 body.wordex-playful.dw-has-nav{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .wx-daily h2{font-size:20px;line-height:1.3;margin-bottom:4px}
 .wx-daily p{font-size:11px;line-height:1.5}
 .wx-daily-copy>.wx-eyebrow{margin-bottom:3px}
 body.wordex-playful .wx-daily .wx-button{margin-top:8px}
 #albumPanel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px}
 .wx-album-head{grid-column:1;min-height:44px;margin-bottom:8px}
 .wx-album-head .wx-mastered,.wx-album-head .wx-eyebrow,.wx-album-controls p{display:none}
 .wx-album-controls{grid-column:2;min-height:44px;margin-bottom:8px}
 .wx-album-grid,.wx-pagination,.wx-footnote{grid-column:1/-1}
 .wx-footnote{display:none}
}
@media(max-width:700px){body.wordex-playful #dailyClaim{font-size:12px;padding:10px 8px}}
body.wordex-playful .wx-lesson-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:6px;font-size:12px;border-bottom:0}
@media(max-width:700px){.wx-reveal .wx-card .wx-card-art{height:130px;width:144px}.wx-reveal .wx-card .wx-card-word{font-size:22px}.wx-reveal .wx-card .wx-card-jp{font-size:12px}}

@media(max-width:700px){
 .wx-words-head{margin:17px 1px 14px;min-height:42px}.wx-words-head h2{font-size:22px}.wx-words-head .wx-eyebrow{font-size:8px}#wordSummary{font-size:11px}
 .wx-word-states{gap:7px;margin-bottom:12px}.wx-word-states button{font-size:12px;padding:7px 5px;min-height:44px}.wx-word-states button span{font-size:10px;margin-left:2px;padding:3px}
 .wx-word-search{gap:8px;margin-bottom:16px}.wx-word-grid{padding:13px 10px;gap:9px;min-height:245px}
 .wx-word-card{min-height:215px;padding:10px 6px}.wx-word-card .wx-vocab-art{height:90px;width:95px}.wx-word-card .wx-card-word{font-size:14px;line-height:1.25}.wx-word-card .wx-card-jp{font-size:10px}.wx-word-card .wx-card-no{font-size:7px}.wx-word-card .wx-card-stamp{font-size:9px}
 .wx-word-card .wx-letter{height:86px;width:78px;font-size:40px}.wx-learning-note{margin-top:9px}
}
@media(max-width:700px) and (max-height:700px){
 .wx-words-head{margin-top:12px;margin-bottom:10px;min-height:37px}.wx-words-head h2{font-size:21px}
 .wx-word-states{margin-bottom:10px}.wx-word-search{margin-bottom:14px}
 .wx-word-grid{min-height:195px;padding-block:11px}.wx-word-card{min-height:170px;gap:4px}.wx-word-card .wx-vocab-art{height:72px;width:80px}.wx-word-card .wx-letter{height:68px;width:68px;font-size:36px}
 .wx-word-card .wx-card-word{font-size:13px}.wx-word-card .wx-card-jp{font-size:9px}
}
@media(max-width:700px) and (max-height:700px){body.wordex-playful.wx-words-mode[data-app-page="zukan"] main{padding-bottom:4px}}
/* The approved card in the album (founder, 1 Oct): the button is only a frame for SGWordCards. */
.wx-card.wx-rich{display:block;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.wx-card.wx-rich .sgwc-card{max-width:none}
.wx-reveal .wx-rich-card{width:min(208px,100%);margin:0 auto 18px}   /* Codex's reveal card width: the dialog fits a 667px screen */
.wx-reveal .wx-rich-card.wx-spinning{width:100%;margin-bottom:12px}   /* the daily spin uses the dialog's full width while it runs */
.wx-reveal .wx-spinning .sgwc-roll{min-height:0;padding:4px 0 6px}   /* the reel fits the reveal dialog on a 667px screen */
.wx-sample-tag{position:absolute;right:10px;top:38px;z-index:6;padding:2px 8px;border-radius:999px;background:#ffffffe6;color:#5b6a51;font:700 11px/1.5 'Zen Kaku Gothic New',system-ui,sans-serif;box-shadow:0 1px 3px #2e514422}
.wx-portrait-review{margin-top:28px}
.wx-portrait-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
@media(max-width:700px){.wx-portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 図鑑 follows the language setting but shows no floating pill (as on the course pages): Codex's header keeps its book button at the top right */
body.wordex-playful[data-app-page="zukan"] #drewLangToggle{display:none!important}
