/* Liquid glass interface; artwork and exported canvases retain their own palette. */
:root{--glass-ink:#292638;--glass-muted:#5c586c;--glass-purple:#7048e8;--glass-mint:#237f83;--glass-edge:rgba(255,255,255,.85);--glass-panel:rgba(255,255,255,.48);--glass-shadow:0 18px 45px rgba(67,58,92,.12),inset 0 1px 1px #fff,inset 0 -1px 2px rgba(255,255,255,.55)}
html{min-height:100%;background:#e8e3ec}
body{min-height:100vh;color:var(--glass-ink);background:radial-gradient(ellipse at 0% 0%,#f5ded5 0,transparent 52%),radial-gradient(ellipse at 100% 8%,#aebdce 0,transparent 53%),radial-gradient(ellipse at 88% 88%,#c9e9e6 0,transparent 40%),linear-gradient(135deg,#f0e4e2,#ded8ed 60%,#d2e2e9);background-attachment:fixed;font-family:Arial,'Apple SD Gothic Neo','Noto Sans KR',sans-serif}
header{margin:24px auto 0;width:calc(100% - 48px);max-width:1320px;padding:24px 28px;border:1px solid var(--glass-edge);border-radius:30px;background:linear-gradient(135deg,rgba(255,255,255,.65),rgba(255,255,255,.26));box-shadow:var(--glass-shadow);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);gap:20px}
.artist-name-row b{letter-spacing:-.7px}.artist-brand>small{color:#625c75;font-size:10px;letter-spacing:3.5px}
body main{max-width:1376px;gap:24px;padding:28px;grid-template-columns:minmax(300px,360px) minmax(0,1fr);align-items:start}
main>aside,main>section{min-width:0;border:1px solid var(--glass-edge);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(255,255,255,.32));box-shadow:var(--glass-shadow);padding:28px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
h1{font-size:clamp(34px,3.6vw,50px);font-weight:500;letter-spacing:-1.8px;line-height:1.24}p{color:var(--glass-muted)}.eyebrow{color:#6d588d;letter-spacing:2.4px}label{color:#494355;font-weight:500}
body button,body #siteMenu summary,body #experienceMenu summary{border:1px solid rgba(255,255,255,.94);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.81),rgba(255,255,255,.36));color:var(--glass-ink);box-shadow:0 5px 12px rgba(62,49,91,.09),inset 0 1px 1px #fff;transition:background .18s ease,box-shadow .18s ease;}
body button:hover,body #siteMenu summary:hover,body #experienceMenu summary:hover{background:linear-gradient(145deg,#fff,rgba(234,225,255,.86));box-shadow:0 7px 18px rgba(97,67,160,.16),inset 0 1px 1px #fff}
body button:focus-visible,body summary:focus-visible,body input:focus-visible,body select:focus-visible,body textarea:focus-visible{outline:3px solid #7652d5;outline-offset:3px}
body button:disabled{opacity:.5;cursor:not-allowed}
header .header-actions>button{min-height:48px;height:auto;padding:10px 8px;font-weight:500;font-size:14px}header .header-actions{gap:10px}
body #quizButton,body #make,body #apply,body #download,body #confirmSaveColor,body #photoOCRConvert,body #photoOCRRead,body .photo-primary{color:white;border:1px solid #c1afff;background:linear-gradient(145deg,#a280f6 0%,#7952e8 55%,#6743d7 100%);box-shadow:0 7px 16px #7650d432,inset 0 2px 2px #ffffff8c,inset 0 -2px 3px #5430b755;font-weight:600}
body #quizButton:hover,body #make:hover,body #download:hover,body #confirmSaveColor:hover{background:linear-gradient(145deg,#ab89ff,#7550df)}
body #mic,body #newsletterButton,body #sharePainting,body #saveActions #sharePainting{color:#13494e;border:1px solid #d2ffff;background:linear-gradient(145deg,#c5f3e7,#8ed4d3 70%,#86c3d1);box-shadow:0 7px 16px #418f9526,inset 0 2px 2px #ffffffad}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body textarea,body select,body #chooseSourceLanguage,body #screenLanguageDialog select{border:1px solid #ffffff;border-radius:18px;background:rgba(255,255,255,.75);color:var(--glass-ink);box-shadow:inset 0 2px 5px #5950790c,0 2px 3px #ffffff70}
body #word::placeholder{color:#766784}body #word.speech-listening{border-color:#a84250;background:#fff4f6}
body .stage{border-radius:24px;border:1px solid #ffffffbd;background:rgba(255,255,255,.36);box-shadow:inset 0 2px 24px #ffffff50;overflow:hidden}
body #homeChartButton{background:rgba(255,255,255,.5);color:#524263;border:1px solid #fff;border-radius:22px;box-shadow:0 8px 24px #51436814}#homeChartButton span{background:rgba(255,255,255,.65)}
body .reading-tools button{border-color:#fff;background:rgba(255,255,255,.6)}
body dialog{color:var(--glass-ink);border:1px solid #fffffff0!important;border-radius:28px!important;background:linear-gradient(135deg,rgba(251,246,252,.96),rgba(229,235,246,.94))!important;box-shadow:0 28px 90px #35314a40,inset 0 1px 2px #fff;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
body dialog::backdrop{background:rgba(47,42,66,.32);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
body dialog .dialog-close-row>button.dialog-close{background:rgba(255,255,255,.76)!important;border-color:#fff!important;color:#554a68!important;box-shadow:0 3px 8px #51416c10!important}
body #saveActions{background:rgba(242,239,249,.96);border-top:1px solid #fff;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:18px 18px 0 0}
body dialog details:not(#siteMenu){border:1px solid #ffffffc9;border-radius:18px;background:rgba(255,255,255,.36);padding:12px 14px;margin-bottom:12px}body dialog summary{cursor:pointer;color:#4b4160;font-weight:600;min-height:30px;line-height:1.6}
body #deviceCardSettings,body #myCardHome,body .grammar-item,body .unit,body .quiz-rules,body .photo-candidate-panel{background:rgba(255,255,255,.61);border-color:#fff;border-radius:18px}
body .grammar-item.jamo-used,body #sourceLanguageChoices button[aria-pressed=true],body #screenLanguageChoices button[aria-pressed=true]{border-color:#8c6be3;background:#eee7ff}
body #artistMenuDialog a,body #inquiryDialog #browsePurchaseArtworks,body #browsePurchaseArtworks2,body #inquiryDialog .inquiry-icons #inquiryEmail{background:rgba(255,255,255,.64);color:#4e3a74;border-color:#fff;border-radius:20px}
body input[type=checkbox],body input[type=radio],body input[type=range]{accent-color:#7950de}body #partInfo{color:#665180}body footer{max-width:1376px;margin:auto;color:#625c70;padding:16px 28px 28px}
/* Keep color chips true to the selected paper/tape color. */
body button[style*="background"]{box-shadow:inset 0 1px 2px #ffffff90,0 3px 8px #40344e12}
@media(min-width:1100px){header{flex-direction:row;align-items:center;gap:32px}.artist-brand{width:auto;flex:1}.header-actions{max-width:660px!important;flex:1.4}.artist-name-row{flex-wrap:wrap}.artist-name-row #full{margin-left:0}}
@media(max-width:850px){header{margin:14px 14px 0;width:calc(100% - 28px);padding:20px;border-radius:26px}body main{grid-template-columns:1fr;padding:18px 14px;gap:18px}main>aside,main>section{padding:22px;border-radius:26px}h1{font-size:38px}.stage{padding:22px}header .header-actions>button{font-size:13px;min-height:46px}.artist-name-row{gap:8px}body footer{padding:12px 20px 24px}}
@media(max-width:400px){main>aside,main>section{padding:18px}header{padding:18px}header .header-actions>button{font-size:12px}.artist-name-row b{font-size:20px}}
@media(prefers-reduced-motion:reduce){body button{transition:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){header,main>aside,main>section{background:#f0edf6}body dialog{background:#f0edf6!important}}

/* Sculpted glass: one light source, clear rims, frosted controls. */
:root{--glass-ink:#242533;--glass-muted:#535665;--glass-shadow:14px 22px 25px -9px #343c5863,0 3px 5px #ffffffa6,inset 2px 2px 3px #ffffffed,inset -2px -2px 4px #e1faffb3}
html{background:#c9c8ce}
body{background:radial-gradient(ellipse at 2% 4%,#f4e1d8 0,transparent 49%),radial-gradient(ellipse at 100% 0%,#647287 0,transparent 58%),linear-gradient(135deg,#e9d8d2 5%,#c8c3d0 56%,#9aaabd 100%);background-attachment:fixed}
header,main>aside,main>section{position:relative;isolation:isolate;border:1px solid #ffffffa8;background:radial-gradient(ellipse at 1% 0%,#ffffff5c,transparent 58%),radial-gradient(ellipse at 100% 100%,#b8f8ff45,transparent 42%),linear-gradient(120deg,#ffffff29,#ffffff0a 55%,#d9e4ff24);box-shadow:var(--glass-shadow);backdrop-filter:blur(26px) saturate(115%);-webkit-backdrop-filter:blur(26px) saturate(115%)}
header::before,main>aside::before,main>section::before{content:"";position:absolute;inset:4px;border:1px solid #ffffff4a;border-top-color:#ffffffad;border-left-color:#ffffff94;border-radius:inherit;pointer-events:none;z-index:-1}
header::after,main>aside::after,main>section::after{content:"";position:absolute;right:22px;bottom:-2px;width:95px;height:5px;border-radius:100%;background:linear-gradient(90deg,transparent,#b4faff 36%,#fff 74%,transparent);box-shadow:0 0 9px 2px #c9faffbd,0 0 24px 5px #bcadff75;pointer-events:none}
body main{gap:30px;padding-top:34px;padding-bottom:38px}
body button,body #siteMenu summary,body #experienceMenu summary{border-color:#ffffff9e;background:linear-gradient(155deg,#ffffffb8,#ffffff70 48%,#e2e4ef4f);box-shadow:8px 12px 12px -6px #39425b66,0 2px 3px #ffffffb3,inset 1px 2px 3px #fffffff2,inset -1px -2px 3px #ffffffa6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
body button:hover,body #siteMenu summary:hover,body #experienceMenu summary:hover{background:linear-gradient(155deg,#ffffffd6,#ffffff85 55%,#dce8ff6b);box-shadow:8px 13px 16px -5px #39425b70,0 0 12px #ffffff8c,inset 1px 2px 3px #fff,inset -1px -2px 3px #fff}
body button:active{box-shadow:2px 4px 7px #39425b40,inset 1px 2px 5px #46516b3b}
body #quizButton,body #make,body #apply,body #download,body #confirmSaveColor,body #photoOCRConvert,body #photoOCRRead,body .photo-primary{border-color:#e4cbffb3;background:radial-gradient(ellipse at 18% 0%,#dfbcff8c,transparent 56%),linear-gradient(150deg,#a76bf2,#7950e6 58%,#6743d6);box-shadow:10px 17px 14px -7px #49396c80,0 5px 9px -2px #f3b8ffd9,0 9px 22px -6px #a27bffb3,inset 1px 2px 4px #f5d7ffd9,inset -2px -3px 4px #d5a9ffb3,inset 0 -6px 12px #542db53b;color:#fff;text-shadow:0 1px 2px #3d23605c}
body #quizButton:hover,body #make:hover,body #download:hover,body #confirmSaveColor:hover{background:radial-gradient(ellipse at 18% 0%,#e2c2ffb3,transparent 60%),linear-gradient(150deg,#a76bf2,#7950e6 58%,#6743d6)}
body #mic,body #newsletterButton,body #sharePainting,body #saveActions #sharePainting{border-color:#d4ffffb3;background:radial-gradient(ellipse at 16% 0%,#e9fffca6,transparent 60%),linear-gradient(150deg,#86c9c4,#56adb3 60%,#59a4ae);color:#123d47;box-shadow:10px 17px 14px -7px #364d6280,0 5px 9px -2px #d2ffeed9,0 9px 22px -6px #7effe3b3,inset 1px 2px 4px #e9ffffe6,inset -2px -3px 4px #a9f3ebd9}
body #artistInquiry{background:linear-gradient(155deg,#ffffffbf,#e3e3ed7a);border-color:#ffffffb3;color:var(--glass-ink)}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body textarea,body select,body #chooseSourceLanguage,body #screenLanguageDialog select{background:linear-gradient(135deg,#fffdf9e6,#f4f4f7c9);border-color:#ffffffbf;box-shadow:inset 1px 2px 4px #555c721a,0 1px 2px #fff,5px 8px 14px -7px #35405c4d}
body .reading-tools button{background:linear-gradient(135deg,#ffffff66,#ffffff26);border-color:#ffffffad}
body .stage{background:#ffffff24;border-color:#ffffff73;box-shadow:inset 0 1px 18px #ffffff24}
body #myCardHome{box-sizing:border-box;max-width:1320px;margin:24px auto 0;width:calc(100% - 48px);padding:18px 22px;background:linear-gradient(135deg,#ffffff80,#ffffff40);border-color:#ffffffb3;box-shadow:9px 15px 20px -10px #3c425b66,inset 0 1px 2px #fff}
body dialog{background:radial-gradient(ellipse at 0% 0%,#fff8f3bf,transparent 65%),radial-gradient(ellipse at 100% 100%,#c8efff59,transparent 50%),linear-gradient(140deg,#e9e3ecd9,#dce3edd9)!important;border-color:#ffffffe6!important;box-shadow:20px 30px 38px -8px #212c4f80,0 2px 8px #fff9,inset 2px 2px 4px #fff,inset -2px -2px 4px #bff3ffb3;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}
body dialog::backdrop{background:#30394d40;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body dialog .dialog-close-row>button.dialog-close{background:linear-gradient(145deg,#ffffffb3,#ffffff52)!important;box-shadow:5px 7px 10px -6px #39425b80,inset 0 1px 2px #fff!important}
body dialog details:not(#siteMenu){background:linear-gradient(135deg,#ffffff73,#ffffff26);border-color:#ffffff94;box-shadow:inset 0 1px 1px #ffffffb3,3px 6px 12px -8px #39425b66}
body #saveActions{background:#e7e7efe6}
body #startQuickGuide,body #artistInquiry:hover{background:linear-gradient(145deg,#ffffffc9,#ffffff70);color:var(--glass-ink);border-color:#fff}
/* Color samples and paintings are not optical UI surfaces. */
body #homeChartButton,body #paperPaletteGrid button,body #tapeColorChips button{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:850px){body main{gap:26px;padding-top:26px}header,main>aside,main>section{box-shadow:9px 15px 20px -8px #343c5866,0 2px 4px #ffffffb3,inset 2px 2px 3px #ffffffe6,inset -1px -2px 3px #d9f7ffb3}body #myCardHome{width:calc(100% - 28px);margin:22px 14px 0;padding:16px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){header,main>aside,main>section{background:linear-gradient(135deg,#e9deda,#b7c4d5)}body dialog{background:#e9e8ef!important}}

/* Crystal completion: clear toolbar surfaces and consistent detailed controls. */
body{background:radial-gradient(ellipse at 8% 4%,#edddd8 0,transparent 48%),radial-gradient(ellipse at 88% 60%,#7cbcc355 0,transparent 40%),radial-gradient(ellipse at 80% 0%,#54627e 0,transparent 60%),linear-gradient(145deg,#d9d0d6,#a8aabd 60%,#718b9d);background-attachment:fixed}
body #saveColorDialog .save-heading,body #paintingDialog .painting-heading{background:transparent!important;box-shadow:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none}
body #saveColorDialog .save-heading:empty{display:none;padding:0;margin:0;min-height:0;height:0}
body #paintingDialog #expandedSave,body #saveColorDialog #confirmSaveColor,body .speech-confirm #make:not([hidden]){color:#fff!important;background:radial-gradient(ellipse at 16% 0%,#ebc5ff8c,transparent 58%),linear-gradient(145deg,#ac78f1,#7550dc 68%,#6846ca)!important;border:1px solid #eddbffc4!important;box-shadow:9px 14px 16px -7px #30335480,0 5px 12px -4px #ecbbffd9,inset 1px 2px 4px #fbeaffd9,inset -1px -3px 4px #c6a2f2b3!important}
body #paintingDialog #expandedMenuArrow{background:linear-gradient(145deg,#ffffffd9,#d5e4f780);border:1px solid #fff;box-shadow:8px 13px 20px #212a4a4d,inset 1px 2px 4px #fff}
body #saveColorDialog .save-heading,body #paintingDialog .painting-heading{position:relative;top:auto}
body dialog button:not([style*="background"]):not(#confirmSaveColor):not(#expandedSave):not(#sharePainting):not(.dialog-close):not(#photoOCRConvert):not(#photoOCRRead){border-color:#ffffffb8;background:linear-gradient(150deg,#ffffffe0,#e7edfa66);color:#32344b;box-shadow:6px 10px 12px -6px #343c5866,inset 1px 2px 3px #fffffff2,inset -1px -2px 3px #d2efffc4}
body dialog #tapeColorChips button[aria-pressed=true],body dialog #sourceLanguageChoices button[aria-pressed=true],body dialog #screenLanguageChoices button[aria-pressed=true]{border-color:#ad8ef2;box-shadow:0 0 0 2px #b699f566,0 0 18px #ac8fe640,inset 0 1px 3px #fff}
body .paper-result,body #paperSurface{background:transparent!important}
body #paperSurface.shared-footer-ready #expandedFooterImage{clip-path:none;z-index:4;border-radius:18px}
body #paperSurface.shared-footer-ready>:not(#expandedFooterImage){visibility:hidden!important}
body #colorPreview{background:transparent;border-radius:20px}
body #stage svg,body #expandedArt svg,body #quizArt svg,body #nameLiveArt svg{background:transparent!important;filter:none}
body #paperSurface #expandedArt svg{filter:none!important}
body dialog #expandedActionMenu,body dialog #expandedDecode{background:#ffffff36;border:1px solid #ffffff80;border-radius:20px}
body dialog .save-heading button:disabled{opacity:.45}

/* Brighter crystal interface, with the original paper artwork retained. */
body{background:radial-gradient(ellipse at 0% 0%,#fff1e8 0,transparent 58%),radial-gradient(ellipse at 100% 0%,#aab9cc 0,transparent 60%),radial-gradient(ellipse at 90% 90%,#cff3ee 0,transparent 46%),linear-gradient(135deg,#f2e7e2,#d9d8e8 60%,#c1d7e2);background-attachment:fixed}
body dialog{background:radial-gradient(ellipse at 0% 0%,#fffaf4d9,transparent 70%),radial-gradient(ellipse at 100% 100%,#cff4ff80,transparent 55%),linear-gradient(140deg,#efedf3d9,#dce6f1d9)!important}
body #paintingQuizDialog #quizRules{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0;padding:0;color:#4a4b58;font-size:14px;line-height:1.65;margin:8px 0 16px}
body #paintingQuizDialog .quiz-award-stats{background:#ffffff26;border:1px solid #ffffff80;color:#4e5761}
body #showQuickGuide,body #installAppButton,body #full,body #siteQRButton,body #language,body #reset,body #originalSpeak,body #speak,body #artistInquiry,body #startQuickGuide,body dialog .dialog-close-row>button.dialog-close{background:linear-gradient(145deg,#fff,#fffdf5e6)!important;color:#343443!important;border-color:#fff!important;box-shadow:6px 10px 13px -7px #49516b73,inset 0 2px 3px #fff!important}
body #showQuickGuide:hover,body #installAppButton:hover,body #full:hover,body #reset:hover{background:#fff!important}
body #myCardDialog{width:min(94vw,680px);max-height:88dvh;overflow:auto;padding:24px}
body #myCardDialog #myCardHome{width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body #myCardDialog #myCardHome>strong{display:block;width:100%;font-size:26px;margin-bottom:10px}
body #myCardDialog #myCardHome p{margin:8px 0;line-height:1.6}
body #siteQRDialog .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body #siteQRDialog .qr-download{display:flex;align-items:center;justify-content:center;text-align:center;border:1px solid #fff;border-radius:24px;background:#fffdf5e6;color:#343443;min-height:48px;padding:12px;text-decoration:none;box-shadow:6px 10px 13px -7px #49516b73}
body .card-qr-site-note{font-size:15px!important;font-weight:400!important;color:#535665!important;line-height:1.6}
body .card-share-info{font-size:13px;line-height:1.6}
/* Keep utility SVGs clear: the generic artwork SVG rule must not paint icons. */
body #expandedMenuArrow svg,body #openPhotoOCR svg{background:transparent!important;filter:none!important;box-shadow:none!important;animation:none!important}
body #openPhotoOCR svg{width:24px;height:24px;max-height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .voice-actions #openPhotoOCR{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;min-width:48px;padding:10px;border-radius:50%}
body .voice-actions{gap:8px}
body .artist-name-row #showQuickGuide{flex:none;width:auto;min-height:40px;padding:8px 12px;white-space:nowrap;font-size:13px;margin-left:0}
body header .header-actions #language{width:100%;max-width:none;min-height:48px;padding:10px 8px;font-size:14px;white-space:nowrap}
@media(max-width:480px){body .voice-actions button:not(#openPhotoOCR){font-size:11px;padding:10px 4px}body .voice-actions{gap:6px}body .voice-actions #openPhotoOCR{flex-basis:44px;width:44px;min-width:44px;padding:9px}body .artist-name-row #showQuickGuide{font-size:12px;padding:8px 9px}}
body .voice-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) minmax(0,1fr);gap:6px;align-items:center}
body .voice-actions button:not(#openPhotoOCR){width:100%;min-width:0;font-size:12px;padding:10px 3px;letter-spacing:-.3px}
body .voice-actions #openPhotoOCR{width:44px;min-width:44px;height:44px;padding:9px}
@media(max-width:360px){body .voice-actions button:not(#openPhotoOCR){font-size:10px}}
body header .header-actions #language{white-space:normal;line-height:1.35;font-size:clamp(11px,1.2vw,14px);overflow-wrap:anywhere}
body #deviceCardSettings{position:static;top:auto}
body #basicMemorySettings{padding:12px 4px;margin:12px 0 20px;border-top:1px solid #ffffff80}
body #basicMemorySettings .memory-options{display:flex;flex-wrap:wrap;gap:12px 22px;margin:0 0 12px}
body #deviceCardSettings .save-contact{margin:12px 0}
@media(max-width:650px){body .artist-name-row{flex-wrap:wrap;row-gap:10px}body .artist-name-row>b{flex-basis:100%}body .artist-name-row #full{margin-left:auto}}
body #artistStatementDialog{width:min(92vw,760px);max-height:88dvh;overflow:auto;padding:30px}
body #artistStatementTitle{font-size:clamp(23px,4vw,32px);line-height:1.5;letter-spacing:-.6px;margin:14px 0 24px;overflow-wrap:anywhere}
body #artistStatementBody{font-size:18px;line-height:1.95;color:#373a49;white-space:pre-line;overflow-wrap:anywhere}
body .intro-copy-buttons a{display:flex;align-items:center;justify-content:center;padding:12px 16px;min-height:48px;border:1px solid #fff;border-radius:26px;background:linear-gradient(145deg,#fff,#e6eef8b3);box-shadow:6px 10px 13px -7px #49516b73;color:#343443;text-decoration:none;text-align:center}
body #artistIntroCopy .intro-copy-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;align-items:stretch;width:100%}
body #artistIntroCopy .intro-copy-buttons>#copyArtistIntroKo,body #artistIntroCopy .intro-copy-buttons>#copyArtistIntroEn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 14px;border-radius:24px;font-size:16px;line-height:1.3;font-weight:500;text-align:center}
body #saveColorDialog>.artwork-type-options{padding:10px 4px;margin:12px 0 0}
body #saveColorDialog>.artwork-type-options label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
body #saveColorDialog>.artwork-type-options select{max-width:62%;padding:10px;font-size:15px}
body #copyArtistStatement{min-width:160px;min-height:48px;margin-top:12px}
body #artistStatementCopyFallback{width:100%;font-size:16px;line-height:1.7;padding:12px}

/* Language-aware reference chart: authored text stays selectable and translatable. */
.translated-reference-chart{background:#252121;color:#f4f2ef;padding:clamp(18px,4vw,44px);border-radius:24px;text-align:left;line-height:1.8;font-size:16px}.translated-reference-chart[hidden]{display:none!important}.translated-reference-chart h2{color:#fff!important;text-align:center;font-size:clamp(24px,5vw,38px)}.translated-reference-chart h3{color:#fff!important;margin-top:30px;font-size:21px}.translated-reference-chart h4{color:#ddd!important;margin:8px 0}.translated-reference-chart p{color:#eee!important;margin:12px 0}.reference-color-wheel{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:12px}.reference-color-tile{text-align:center}.reference-color-tile span{display:block;aspect-ratio:1;box-shadow:inset 0 0 0 1px #ffffff30}.reference-color-tile b{display:block;font-size:23px;color:#fff}.reference-jamo-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.reference-jamo-table>div{background:#ffffff16;padding:15px}.reference-jamo-table b{font-size:24px;letter-spacing:3px}.reference-vowels{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.reference-vowels>div{padding:18px;text-align:center;border:1px solid #aaa;font-size:28px}#homeChartButton .translated-reference-chart{cursor:zoom-in}#referenceChartDialog .translated-reference-chart{width:100%;box-sizing:border-box}#homeChart img[hidden],#referenceChartDialog img[hidden]{display:none!important}

.reference-wheel-layout>svg{display:block;width:min(100%,440px);height:auto;margin:10px auto;background:transparent!important;box-shadow:none!important;filter:none!important}.reference-wheel-layout .reference-color-wheel{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.reference-wheel-layout .reference-color-tile span{aspect-ratio:1.5}

.hunmin-example{margin-top:28px;padding-top:18px;border-top:1px solid #ffffff40}.hunmin-example-picture svg{display:block;width:100%;height:auto;background:transparent!important;filter:none!important;animation:none!important;box-shadow:none!important;border-radius:0!important}.hunmin-example-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center;margin-top:12px;gap:6px}.hunmin-example-breakdown b{display:block;font-size:clamp(22px,5vw,36px);color:#fff}.hunmin-example-breakdown span{display:block;font-size:clamp(12px,2.5vw,17px);color:#eee}
/* Longer translated captions wrap while paired actions retain the same height. */
body #artistIntroCopy .intro-copy-buttons>#copyArtistIntroKo,body #artistIntroCopy .intro-copy-buttons>#copyArtistIntroEn{height:auto;min-height:52px;white-space:normal;overflow-wrap:anywhere}
body .device-card-body>button{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
body #retryScreenTranslation{max-width:100%;margin:0 0 12px;white-space:normal}

/* The composited PNG stays identical to the download; SVG hit areas sit above it. */
body #paperSurface.shared-footer-ready>#expandedArt{visibility:visible!important;z-index:5;pointer-events:none}
body #paperSurface.shared-footer-ready #expandedArt svg{visibility:visible!important;pointer-events:none;overflow:visible}
body #paperSurface.shared-footer-ready #expandedArt g[data-jamo]{visibility:visible!important;pointer-events:all;opacity:1!important;animation:none!important;cursor:pointer}
body #paperSurface.shared-footer-ready #expandedArt g[data-jamo]>rect{fill-opacity:0;pointer-events:all;vector-effect:non-scaling-stroke}
body #paperSurface.shared-footer-ready #expandedArt g[data-selected]>rect{fill-opacity:.12}
body #expandedArt [data-jamo-feedback],body #stage [data-jamo-feedback]{fill:white;stroke:#171724;stroke-width:2;paint-order:stroke fill;font-weight:800;font-family:Arial,sans-serif;pointer-events:none;user-select:none}
body #expandedArt g[data-jamo]:focus-visible{outline:none;stroke:#ffb000;stroke-width:5px}
body #partInfo strong,body #expandedPartInfo strong{display:inline-block;font-size:1.65em;margin:0 .3em;color:#242633;vertical-align:middle}
body #partInfo span+span,body #expandedPartInfo span+span{margin-left:.35em}

/* Prominent, icon-free speech action. */
.voice-actions #mic{font-size:clamp(20px,2.3vw,24px)!important;font-weight:800!important;line-height:1.25;white-space:normal}

/* Header color roles: language mint, artist orange, commission blue. */
body header #language{border-color:#d4ffffb3;background:radial-gradient(ellipse at 16% 0%,#e9fffca6,transparent 60%),linear-gradient(150deg,#86c9c4,#56adb3 60%,#59a4ae);color:#123d47;box-shadow:10px 17px 14px -7px #364d6280,0 5px 9px -2px #d2ffeed9,0 9px 22px -6px #7effe3b3,inset 1px 2px 4px #e9ffffe6,inset -2px -3px 4px #a9f3ebd9}
body header #newsletterButton{border-color:#ffffff9e;background:linear-gradient(155deg,#ffffffb8,#ffffff70 48%,#e2e4ef4f);color:var(--glass-ink);box-shadow:8px 12px 12px -6px #39425b66,0 2px 3px #ffffffb3,inset 1px 2px 3px #fffffff2,inset -1px -2px 3px #ffffffa6}
body header #siteMenu summary{background:radial-gradient(ellipse at 15% 0%,#fff5dfbd,transparent 60%),linear-gradient(145deg,#ffd1a0,#f6a45f 65%,#ed9650);border-color:#fff0d3;color:#55301a;box-shadow:8px 12px 12px -6px #61442f66,0 3px 9px #ffc98d80,inset 1px 2px 4px #fff3df,inset -1px -2px 4px #ffd6a9}
body header #artistInquiry{background:radial-gradient(ellipse at 15% 0%,#e8f7ffcf,transparent 60%),linear-gradient(145deg,#b9e2ff,#7cb9ef 65%,#69a7e1)!important;border-color:#e3f4ff!important;color:#173d65!important;box-shadow:8px 12px 12px -6px #34567766,0 3px 9px #a8dcff80,inset 1px 2px 4px #f0faff,inset -1px -2px 4px #b8deff!important}
body header #language:hover,body header #siteMenu summary:hover,body header #artistInquiry:hover{filter:brightness(1.05)}

/* Keep vowel diagrams square; white vowel fields stay inside the artwork. */
body .grammar-item svg{width:75px;height:75px;max-width:100%;aspect-ratio:1;margin:8px auto;background:transparent}

/* Omit the four explanatory notes requested for the main experience.
   Retain script targets so language and speech controls continue to work. */
body #help,body #notice,body footer #privacy{display:none!important}

/* Keep personal card access first, with secondary actions beside the reset setting. */
body footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
body .footer-utilities{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}
body .footer-utilities>label{display:flex;align-items:center;gap:8px;white-space:nowrap}
body .footer-utilities button{min-height:44px;padding:10px 16px;font-size:14px;line-height:1.4}
body .save-utility-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
body .save-utility-actions button{width:100%;min-width:0;min-height:48px;padding:12px;font-size:15px;line-height:1.4;white-space:normal}
body header .header-actions #language{overflow-wrap:normal;font-size:14px}
@media(max-width:650px){body .footer-utilities{width:100%;justify-content:flex-start}body .footer-utilities button{flex:1;min-width:120px}body header .header-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Artist navigation: translucent glass and evenly aligned white buttons. */
body #artistMenuDialog{width:min(460px,calc(100vw - 32px));padding:24px;border-radius:32px;background:linear-gradient(135deg,rgba(255,250,245,.48),rgba(219,233,248,.32))!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border:1px solid #ffffffb3!important;box-shadow:16px 24px 40px -12px #27375466,inset 1px 2px 3px #ffffffb3}
body #artistMenuDialog::backdrop{background:rgba(39,49,68,.18);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body #artistMenuDialog .artist-menu-heading{border:0;margin:0 0 18px;padding:0 4px 4px}
body #artistMenuDialog h2{font-size:22px;font-weight:700}
body #artistMenuDialog nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px 12px;padding:4px 0 12px;background:transparent}
body #artistMenuDialog nav>:is(button,a.artist-website){display:inline-flex;flex:0 1 auto;justify-content:center;align-items:center;gap:9px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:54px;height:auto;margin:0;padding:14px 12px;border:1px solid #ffffffc9!important;border-radius:999px!important;font-size:16px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:break-word;text-align:center;text-decoration:none;background:linear-gradient(145deg,#fff,#fffffff0)!important;color:#343443!important;box-shadow:6px 10px 14px -7px #34445b73,inset 1px 2px 4px #ffffffe0,inset -1px -2px 4px #ffffff70!important;transition:filter .15s ease,transform .15s ease}
body #artistMenuDialog nav .artist-menu-icon{width:19px;height:19px;flex:0 0 19px;stroke:currentColor!important;opacity:.85}
body #artistMenuDialog nav>:is(button,a.artist-website):hover{filter:brightness(1.06);transform:translateY(-1px)}
body #artistMenuDialog nav>:is(button,a.artist-website):focus-visible{outline:3px solid #3b567c;outline-offset:4px}
body #artistMenuDialog #closeArtistMenu{border-radius:999px!important}
@media(max-width:400px){body #artistMenuDialog{padding:20px 16px}body #artistMenuDialog nav{gap:14px 10px}body #artistMenuDialog nav>:is(button,a.artist-website){padding:12px 10px;font-size:15px}}
@media(prefers-reduced-motion:reduce){body #artistMenuDialog nav>:is(button,a.artist-website){transition:none;transform:none}}

body #artistMenuDialog nav>:last-child{grid-column:1 / -1}

/* Subtle color accents for interview and portfolio only. */
body #artistMenuDialog nav>#artistInterviewButton{background:radial-gradient(ellipse at 15% 0%,#ffffffc9,transparent 65%),linear-gradient(145deg,#eee2ff,#c4a5ef)!important;color:#493369!important;border-color:#f4eaff!important}
body #artistMenuDialog nav>a.artist-website[type="application/pdf"]{background:radial-gradient(ellipse at 15% 0%,#ffffffc9,transparent 65%),linear-gradient(145deg,#e2f4ff,#9dcdf1)!important;color:#214b70!important;border-color:#edf8ff!important}

/* Hide the manual restart control while preserving automatic reset handlers. */
body #reset{display:none!important}

body #installAppDialog{width:min(92vw,560px);max-height:88dvh;overflow:auto}body #installAppHelp ol{padding-left:1.6em;line-height:1.7}body #installAppHelp li{padding:6px 0 10px 5px}body #installAppAddress{font-size:14px;min-width:0}body .install-link{display:grid;gap:10px}body #confirmInstallApp{width:100%;font-weight:800;font-size:20px}

body #paintingPreviewTitle{margin:0 auto 0 0;font-size:clamp(22px,3vw,28px);font-weight:750;text-align:left}body #paintingDialog #expandedPartInfo{margin:12px 0;line-height:1.5;font-size:clamp(15px,2vw,19px)}body #paintingDialog #expandedActionMenu{margin:0 0 18px;padding:10px;gap:10px}body #paintingDialog #expandedActionMenu button{margin:0;font-size:clamp(14px,2vw,18px);padding:10px 15px}body #paintingDialog .painting-heading{margin:0;padding:0 0 6px}

/* Compact preview controls and crop only the outer photographed-paper margin. */
body #paintingDialog #expandedActionMenu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 10px;padding:8px}
body #paintingDialog #expandedActionMenu button:not([hidden]){min-width:0;width:100%;min-height:44px;padding:10px 4px;font-size:clamp(11px,2.4vw,16px);line-height:1.25;white-space:normal;box-sizing:border-box}
body #paintingDialog #expandedPartInfo{margin:8px 0 12px;font-size:clamp(14px,2vw,18px);line-height:1.5}
body #paintingDialog #paperResult{overflow:hidden;aspect-ratio:1;margin:0 auto 12px;border-radius:18px}
body #paintingDialog #paperSurface{inset:-12%;width:124%;height:124%}

/* Explicit CJK sans faces prevent locale-dependent serif fallback on Android. */
@font-face{font-family:'Readable Hangul Sans';src:url('/assets/fonts/noto-sans-kr.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+1100-11FF,U+3130-318F,U+A960-A97F,U+AC00-D7FF}
@font-face{font-family:'Readable Chinese Sans';src:url('/assets/fonts/noto-sans-sc.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
html:lang(zh){--chinese-ui-font:Arial,'Readable Hangul Sans','Readable Chinese Sans','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif}
html:lang(zh) body,html:lang(zh) button,html:lang(zh) input,html:lang(zh) textarea,html:lang(zh) select{font-family:var(--chinese-ui-font)}

/* A companion artwork, following the main painting experience. */
.reread-discovery{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:24px 0;padding:28px 32px;border:1px solid #ffffffb3;border-radius:30px;background:linear-gradient(125deg,#f9f5eccc,#e9e3f3cc 60%,#dcefeecc);box-shadow:0 14px 28px -20px #343e6166,inset 0 1px 3px #fff;color:#343443}
.reread-discovery .reread-kicker{font-size:11px;letter-spacing:.2em;color:#77658a;margin:0 0 12px}
.reread-discovery h2{font-size:25px;margin:0 0 10px}.reread-discovery h2 small{display:block;font-size:13px;font-weight:400;letter-spacing:.08em;margin-top:6px;color:#77658a}
.reread-discovery p{font-size:15px;line-height:1.7;margin:0}.reread-discovery p span{font-size:13px;color:#636374}
.reread-discovery a{flex-shrink:0;text-decoration:none;color:#4c385f;padding:15px 24px;border-radius:999px;background:linear-gradient(145deg,#faf5ff,#d8b9ed);border:1px solid #ffffffc9;box-shadow:0 8px 15px -8px #54406980,inset 0 2px 4px #fff;font-size:15px}.reread-discovery a span{margin-left:8px}.reread-discovery a:focus-visible{outline:3px solid #6d43a0;outline-offset:4px}
@media(max-width:600px){.reread-discovery{align-items:flex-start;flex-direction:column;padding:24px;gap:20px}.reread-discovery a{align-self:flex-start}}

/* Translated voice controls must fit narrow screens without shrinking labels. */
body .voice-actions{grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr) minmax(0,1fr);align-items:stretch;min-width:0}
body .voice-actions button:not(#openPhotoOCR){height:auto;min-height:48px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;font-size:14px;padding:10px 12px;box-sizing:border-box}
body .voice-actions #openPhotoOCR{align-self:center;justify-self:center}
body #chooseSourceLanguage{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;height:auto}
@media(max-width:600px){
 body .voice-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 body .voice-actions #mic{grid-column:1;grid-row:1}
 body .voice-actions #openPhotoOCR{grid-column:2;grid-row:1}
 body .voice-actions #originalSpeak{grid-column:1;grid-row:2}
 body .voice-actions #speak{grid-column:2;grid-row:2}
 body .voice-actions button:not(#openPhotoOCR){font-size:14px;min-height:48px}
}
