@import "https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&display=swap";:root{color:#293442;font-synthesis:none;background:#fff9ef;font-family:Pretendard,Noto Sans KR,Arial,sans-serif}*{box-sizing:border-box}body{background:#fff9ef;min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.topbar{z-index:20;background:#fffdfa;border-bottom:1px solid #f0e7d9;align-items:center;height:72px;padding:0 max(24px,50vw - 450px);display:flex;position:sticky;top:0}.brand{color:#35404d;background:0 0;border:0;margin-right:auto;padding:10px 0;font:900 20px Nunito,sans-serif}.brand span,.eyebrow{color:#e88b21}.topbar nav{gap:8px;display:flex}.topbar nav button{color:#747d87;background:0 0;border:0;border-radius:12px;padding:12px 14px;font-weight:700}.topbar nav button:hover,.topbar nav button.active{color:#dc7d14;background:#fff3df}.content{width:min(100% - 36px,760px);margin:0 auto;padding:28px 0 100px}.hero-panel{color:#fff;background:linear-gradient(135deg,#f7b94e,#f39c34);border-radius:30px;justify-content:space-between;align-items:center;min-height:250px;padding:34px;display:flex;overflow:hidden;box-shadow:0 12px 30px #dc8c231f}.hero-panel h1{margin:8px 0 12px;font:900 clamp(32px,6vw,43px)/1.15 Nunito,sans-serif}.hero-panel p{color:#fff8e7;margin:0;font-weight:600}.hero-emoji{filter:drop-shadow(0 12px 3px #bd681d45);font-size:clamp(82px,18vw,130px);transform:rotate(5deg)}.eyebrow{letter-spacing:.1em;font-size:12px;font-weight:900}.hero-panel .eyebrow{color:#fff2c7}.count-panel{background:#fff;border-radius:20px;justify-content:space-between;align-items:center;margin:18px 0;padding:18px 22px;display:flex;box-shadow:0 5px 18px #5b44100b}.count-panel div{align-items:center;gap:10px;display:flex}.count-panel strong{color:#e88921;font:900 34px Nunito}.count-panel span{color:#6d7680;font-weight:700}.count-panel button{color:#dc7d14;background:0 0;border:0;align-items:center;gap:4px;font-weight:800;display:flex}.count-panel svg,.primary svg{width:19px}.quick-grid{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.quick-grid button{text-align:left;border:0;border-radius:21px;flex-direction:column;justify-content:space-between;min-height:118px;padding:18px;display:flex}.quick-grid svg{width:29px;height:29px}.quick-grid span{flex-direction:column;font-size:17px;font-weight:900;display:flex}.quick-grid small{margin-top:3px;font-size:11px;font-weight:600}.yellow{color:#9a5a12;background:#fff0c9}.purple{color:#6750a5;background:#eee7ff}.mint{color:#27785f;background:#dff5e9}.page-heading,.game-heading{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.page-heading h1,.game-heading h1{margin:4px 0;font:900 32px Nunito}.primary{color:#fff;background:#ed982e;border:0;border-radius:14px;justify-content:center;align-items:center;gap:6px;padding:14px 18px;font-weight:800;display:inline-flex;box-shadow:0 4px #d47d1a}.icon-label{white-space:nowrap}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.word-card{background:#fff;border-radius:20px;position:relative;overflow:hidden;box-shadow:0 6px 20px #56400e0d}.word-card>img{aspect-ratio:1.25;object-fit:cover;background:#eee;width:100%;display:block}.word-copy{flex-direction:column;min-width:0;padding:13px 14px 16px;display:flex}.word-copy strong{white-space:nowrap;text-overflow:ellipsis;font:900 21px Nunito;overflow:hidden}.word-copy span{color:#737d87;white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.delete{color:#c96c25;background:#fffde8;border:0;border-radius:11px;place-items:center;width:36px;height:36px;display:grid;position:absolute;top:8px;right:8px}.delete svg{width:17px}.form-wrap{max-width:610px;margin:auto}.card-form{background:#fff;border-radius:24px;gap:18px;padding:22px;display:grid}.card-form>label:not(.upload-box){gap:8px;font-weight:800;display:grid}.card-form label small{color:#9da3aa;font-weight:500}.card-form input{color:#293442;background:#fff;border:1px solid #e6dfd4;border-radius:13px;outline:none;width:100%;padding:14px 15px}.card-form input:focus{border-color:#eea03b;box-shadow:0 0 0 3px #f6a94422}.upload-box{color:#b97220;cursor:pointer;background:#fff9ec;border:2px dashed #e9b96e;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:7px;height:220px;display:flex}.upload-box svg{width:38px;height:38px}.upload-box span{color:#9c856a;font-size:13px}.upload-box input{display:none}.image-preview{border-radius:18px;height:260px;position:relative;overflow:hidden}.image-preview img{object-fit:cover;width:100%;height:100%}.image-preview button{color:#a85e13;background:#fff;border:0;border-radius:12px;padding:9px 12px;font-weight:800;position:absolute;bottom:10px;right:10px}.submit{width:100%}.empty-state,.result{text-align:center;background:#fff;border-radius:25px;padding:48px 20px}.empty-state>div,.result>div{font-size:60px}.empty-state h2,.result h2{margin:10px;font:900 25px Nunito}.empty-state p,.result p{color:#737d87;margin:8px 0 22px}.study-page{text-align:center}.progress{color:#8b939c;font:800 16px Nunito;display:block}.study-card{perspective:1200px;background:0 0;border:0;width:min(100%,470px);height:min(65vh,410px);min-height:330px;margin:18px auto;padding:0;display:block}.study-inner{width:100%;height:100%;transform-style:preserve-3d;transition:transform .55s;display:block;position:relative}.study-card.flipped .study-inner{transform:rotateY(180deg)}.study-face{backface-visibility:hidden;background:#fff;border-radius:28px;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute;inset:0;overflow:hidden;box-shadow:0 10px 30px #4f3b1515}.study-face.front img{object-fit:cover;width:100%;height:100%}.study-face.front small{color:#8a6b3e;background:#fffdec;border-radius:20px;padding:8px 13px;font-weight:700;position:absolute;bottom:16px}.study-face.back{background:#fff1cf;transform:rotateY(180deg)}.study-face.back strong{font:900 clamp(38px,9vw,58px) Nunito}.study-face.back em{margin:8px;font-size:24px;font-style:normal}.speak{color:#fff;background:#eb9227;border-radius:22px;align-items:center;gap:6px;padding:10px 14px;font-size:15px;font-weight:800;display:flex}.speak svg{width:18px}.outline{color:#c26d15;background:#fff;border:2px solid #efc47d;border-radius:14px;padding:12px 18px;font-weight:800}.pager{justify-content:space-between;width:min(100%,470px);margin:22px auto;display:flex}.pager button{color:#a56522;background:0 0;border:0;padding:12px;font-weight:800}.pager button:disabled{opacity:.3}.memory-setup{text-align:center;max-width:560px;margin:auto}.brain{font-size:68px}.memory-setup h1{margin:5px;font:900 34px Nunito}.memory-setup>p{color:#757e88}.memory-setup h2{margin:34px 0 12px;font:900 20px Nunito}.level{text-align:left;color:#293442;background:#fff;border:2px solid #0000;border-radius:17px;justify-content:space-between;align-items:center;width:100%;min-height:72px;margin:7px 0;padding:13px 17px;display:flex}.level>span{flex-direction:column;display:flex}.level strong{font-size:17px}.level small{color:#78818b;margin-top:3px}.level em{color:#be6c1b;font-size:12px;font-style:normal}.level:not(:disabled):hover{background:#fff8ea;border-color:#eda13e}.level:disabled{opacity:.55;cursor:not-allowed}.moves{background:#fff;border-radius:15px;flex-direction:column;padding:10px 16px;display:flex}.moves small{color:#818994}.moves strong{color:#e4861b;font:900 24px Nunito}.memory-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.memory-board button{aspect-ratio:.78;color:#fff;background:linear-gradient(145deg,#f7b249,#e8922c);border:0;border-radius:16px;font:900 clamp(17px,4vw,30px) Nunito;transition:transform .18s,background .18s;overflow:hidden;box-shadow:0 4px #ce781e}.memory-board button:hover{transform:translateY(-2px)}.memory-board button.visible{color:#35404b;background:#fff}.memory-board button.matched{background:#c9ebd4;box-shadow:0 4px #87c79d}.memory-board img{object-fit:cover;width:100%;height:100%;display:block}.result>strong{color:#d77d19;margin-bottom:18px;display:block}.result .primary{margin:auto}.bottom-nav{display:none}@media (width<=680px){.topbar{height:62px;padding:0 16px}.topbar nav{display:none}.brand{font-size:17px}.content{width:min(100% - 28px,760px);padding-top:18px;padding-bottom:96px}.hero-panel{border-radius:24px;min-height:215px;padding:25px}.hero-panel h1{font-size:31px}.hero-panel p{max-width:190px;font-size:13px}.hero-emoji{font-size:75px}.quick-grid{grid-template-columns:1fr}.quick-grid button{flex-direction:row;justify-content:flex-start;align-items:center;gap:16px;min-height:82px}.quick-grid span{flex:1}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.word-card>img{aspect-ratio:1}.word-copy{padding:10px}.word-copy strong{font-size:18px}.page-heading h1,.game-heading h1{font-size:27px}.icon-label{width:48px;height:48px;padding:0;font-size:0}.icon-label svg{width:23px}.card-form{padding:16px}.upload-box{height:190px}.study-card{height:56vh;min-height:320px}.memory-board{gap:7px}.memory-board button{border-radius:12px}.bottom-nav{z-index:30;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:#fffdfb;border-top:1px solid #eee5d8;justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav button{color:#7d858f;background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;min-width:58px;font-size:11px;font-weight:700;display:flex}.bottom-nav svg{width:22px;height:22px}.bottom-nav button.active{color:#e6861e}}@media (width<=390px){.hero-emoji{font-size:60px}.hero-panel h1{font-size:28px}.card-grid{grid-template-columns:1fr 1fr}.memory-board{gap:5px}.memory-board button{border-radius:10px}}.brand,.topbar nav a,.count-panel a,.quick-grid a,.bottom-nav a{text-decoration:none}.topbar nav a{color:#747d87;border-radius:12px;padding:12px 14px;font-weight:700}.topbar nav a.active{color:#dc7d14;background:#fff3df}.count-panel a{color:#dc7d14;align-items:center;gap:4px;font-weight:800;display:flex}.quick-grid a{text-align:left;border-radius:21px;flex-direction:column;justify-content:space-between;min-height:118px;padding:18px;display:flex}.card-form select,.chapter-toolbar select{color:#293442;background:#fff;border:1px solid #e6dfd4;border-radius:13px;width:100%;padding:14px 15px}.chapter-toolbar{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin-bottom:20px;display:grid}.chapter-toolbar button{color:#a76014;background:#fff0d9;border:0;border-radius:12px;padding:0 14px;font-weight:800}.chapter-toolbar .danger{color:#bf5441;background:#fff0ec}.chapter-toolbar button:disabled{opacity:.4}.api-error{color:#a93d2d;background:#fff0ec;border-radius:14px;margin-bottom:18px;padding:13px 16px;font-weight:700}.loading{text-align:center;color:#7d858e;padding:40px}.bottom-nav a{color:#7d858f;flex-direction:column;align-items:center;gap:2px;min-width:58px;font-size:11px;font-weight:700;display:flex}.bottom-nav a.active{color:#e6861e}@media (width<=680px){.chapter-toolbar{grid-template-columns:1fr 1fr}.chapter-toolbar select{grid-column:1/-1}.quick-grid a{flex-direction:row;justify-content:flex-start;align-items:center;gap:16px;min-height:82px}}.study-face.front{background:#fff}.study-face.front img{object-fit:contain;object-position:center}.memory-board img{object-fit:contain;background:#fff}@media (width<=680px){.study-page{width:100%;overflow:hidden}.study-card{width:100%;height:min(52svh,112vw - 31.36px);min-height:260px;max-height:430px;margin:14px auto}.study-face{border-radius:22px}.study-face.front img{object-fit:contain;object-position:center;width:100%;height:100%}.study-face.front small{bottom:12px}.pager{margin:14px auto}.content{overflow-x:hidden}}@media (width<=380px) and (height<=700px){.study-card{height:46svh;min-height:230px}.study-face.back strong{font-size:36px}.study-face.back em{font-size:20px}}.study-face.front small{display:none}.study-actions{justify-content:center;align-items:center;gap:10px;display:flex}.study-actions .listen{align-items:center;gap:6px;display:inline-flex}.study-actions .listen svg{width:19px;height:19px}.bulk-upload{background:#fffaf0;border:2px solid #f0c27c;margin-bottom:18px}.bulk-title{align-items:center;gap:12px;display:flex}.bulk-title>svg{color:#df8420;width:32px;height:32px}.bulk-title div{flex-direction:column;display:flex}.bulk-title strong{font-size:18px}.bulk-title span{color:#7d858e;font-size:13px}.bulk-upload select{background:#fff;border:1px solid #e6dfd4;border-radius:13px;width:100%;padding:14px 15px}.bulk-file{color:#ae681c;cursor:pointer;border:2px dashed #e4af5d;border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:70px;flex-direction:row!important;display:flex!important}.bulk-file input{display:none}.bulk-preview{flex-wrap:wrap;gap:6px;display:flex}.bulk-preview span{text-overflow:ellipsis;white-space:nowrap;color:#8d591d;background:#fff0d8;border-radius:9px;max-width:100%;padding:5px 9px;font-size:12px;overflow:hidden}.bulk-upload .primary:disabled{opacity:.6;cursor:wait}.install-pwa{color:#fff;white-space:nowrap;background:#ed982e;border:0;border-radius:12px;align-items:center;gap:5px;margin-left:10px;padding:10px 13px;font-weight:800;display:flex}.install-pwa svg{width:18px;height:18px}@media (width<=680px){.install-pwa{margin-left:6px;padding:9px;font-size:0}.install-pwa svg{width:21px;height:21px}.app-shell{padding-top:env(safe-area-inset-top)}.topbar{height:calc(62px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}}@media (width>=681px) and (width<=1180px){.topbar{height:78px;padding-left:32px;padding-right:32px}.brand{font-size:22px}.topbar nav a{padding:13px 17px;font-size:17px}.content{width:calc(100% - 56px);max-width:960px;padding-top:34px}.hero-panel{min-height:290px;padding:40px}.hero-panel h1{font-size:46px}.hero-panel p{font-size:17px}.hero-emoji{font-size:140px}.count-panel{padding:22px 26px}.count-panel strong{font-size:40px}.quick-grid{gap:16px}.quick-grid a{min-height:145px;padding:23px}.quick-grid span{font-size:20px}.quick-grid small{font-size:13px}.page-heading h1,.game-heading h1{font-size:38px}.card-grid{gap:18px}.word-card>img{aspect-ratio:1.3}.word-copy strong{font-size:24px}.word-copy span{font-size:16px}.study-card{width:min(68vw,580px);height:min(63svh,540px);min-height:430px}.study-face.back strong{font-size:64px}.study-face.back em{font-size:29px}.outline{padding:14px 23px;font-size:18px}.pager{width:min(68vw,580px);font-size:18px}.memory-setup{max-width:680px}.memory-setup h1{font-size:40px}.level{min-height:84px;padding:16px 21px}.level strong{font-size:20px}.level small{font-size:15px}.memory-board{gap:14px;max-width:820px;margin:0 auto}.memory-board button{border-radius:20px}.primary{padding:16px 21px;font-size:17px}}
