/* ---------- 테마 꾸미기 (앱 전용): 판 테두리 · 화면 아래 모서리 장식 · 제목 밑줄 · 움직임 · 도장 ---------- */
/* 장식은 화면 바탕 바로 위(z-index -1)에만. 판·버튼·창 위에는 올라오지 않아요 */
.home-in{position:relative;z-index:1}
body::after,.home::after{content:"";position:fixed;z-index:-1;pointer-events:none;background-repeat:no-repeat;display:none}
.home::after{position:absolute}
.amb-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
:root[data-skin="sakura"] body::after,:root[data-skin="sakura"] .home::after{display:block;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22170%22%20height%3D%22140%22%3E%3Cpath%20d%3D%22M170%20128%20C134%20120%20102%20104%2078%2080%20M124%20112%20C118%2096%20116%2082%20122%2068%20M92%2094%20C76%2096%2060%2092%2048%2084%22%20fill%3D%22none%22%20stroke%3D%22%237a4a3a%22%20stroke-width%3D%224.5%22%20stroke-linecap%3D%22round%22/%3E%3Cellipse%20cx%3D%2276%22%20cy%3D%2263%22%20rx%3D%226.8%22%20ry%3D%2211.0%22%20transform%3D%22rotate%280%2076%2074%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2276%22%20cy%3D%2263%22%20rx%3D%226.8%22%20ry%3D%2211.0%22%20transform%3D%22rotate%2872%2076%2074%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2276%22%20cy%3D%2263%22%20rx%3D%226.8%22%20ry%3D%2211.0%22%20transform%3D%22rotate%28144%2076%2074%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2276%22%20cy%3D%2263%22%20rx%3D%226.8%22%20ry%3D%2211.0%22%20transform%3D%22rotate%28216%2076%2074%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2276%22%20cy%3D%2263%22%20rx%3D%226.8%22%20ry%3D%2211.0%22%20transform%3D%22rotate%28288%2076%2074%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%2276%22%20cy%3D%2274%22%20r%3D%223.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2250%22%20rx%3D%226.2%22%20ry%3D%2210.0%22%20transform%3D%22rotate%280%20120%2060%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2250%22%20rx%3D%226.2%22%20ry%3D%2210.0%22%20transform%3D%22rotate%2872%20120%2060%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2250%22%20rx%3D%226.2%22%20ry%3D%2210.0%22%20transform%3D%22rotate%28144%20120%2060%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2250%22%20rx%3D%226.2%22%20ry%3D%2210.0%22%20transform%3D%22rotate%28216%20120%2060%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2250%22%20rx%3D%226.2%22%20ry%3D%2210.0%22%20transform%3D%22rotate%28288%20120%2060%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%2260%22%20r%3D%223.5%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2271.5%22%20rx%3D%225.3%22%20ry%3D%228.5%22%20transform%3D%22rotate%280%2046%2080%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2271.5%22%20rx%3D%225.3%22%20ry%3D%228.5%22%20transform%3D%22rotate%2872%2046%2080%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2271.5%22%20rx%3D%225.3%22%20ry%3D%228.5%22%20transform%3D%22rotate%28144%2046%2080%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2271.5%22%20rx%3D%225.3%22%20ry%3D%228.5%22%20transform%3D%22rotate%28216%2046%2080%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2246%22%20cy%3D%2271.5%22%20rx%3D%225.3%22%20ry%3D%228.5%22%20transform%3D%22rotate%28288%2046%2080%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%2246%22%20cy%3D%2280%22%20r%3D%223.0%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2296.5%22%20rx%3D%224.7%22%20ry%3D%227.5%22%20transform%3D%22rotate%280%20140%20104%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2296.5%22%20rx%3D%224.7%22%20ry%3D%227.5%22%20transform%3D%22rotate%2872%20140%20104%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2296.5%22%20rx%3D%224.7%22%20ry%3D%227.5%22%20transform%3D%22rotate%28144%20140%20104%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2296.5%22%20rx%3D%224.7%22%20ry%3D%227.5%22%20transform%3D%22rotate%28216%20140%20104%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22140%22%20cy%3D%2296.5%22%20rx%3D%224.7%22%20ry%3D%227.5%22%20transform%3D%22rotate%28288%20140%20104%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%22104%22%20r%3D%222.6%22%20fill%3D%22%23f3d36b%22/%3E%3C/svg%3E");right:0;bottom:0;width:170px;height:140px;background-position:right bottom;}
:root[data-skin="maple"] body::after,:root[data-skin="maple"] .home::after{display:block;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22170%22%20height%3D%22130%22%3E%3Cpath%20d%3D%22M170%20120%20C130%20110%20100%2090%2076%2064%20M120%20104%20C118%2084%20124%2070%20136%2060%22%20fill%3D%22none%22%20stroke%3D%22%236b3a1e%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20transform%3D%22translate%2872%2056%29%20scale%281.6%29%20rotate%28-10%29%22%20d%3D%22M0-14L3-5%2010-8%207%200%2014%202%206%206%208%2012%200%208-8%2012-6%206-14%202-7%200-10-8-3-5Z%22%20fill%3D%22%23d9542b%22/%3E%3Cpath%20transform%3D%22translate%28138%2052%29%20scale%281.3%29%20rotate%2815%29%22%20d%3D%22M0-14L3-5%2010-8%207%200%2014%202%206%206%208%2012%200%208-8%2012-6%206-14%202-7%200-10-8-3-5Z%22%20fill%3D%22%23f0a03a%22/%3E%3Cpath%20transform%3D%22translate%28100%2084%29%20scale%281.1%29%20rotate%28-25%29%22%20d%3D%22M0-14L3-5%2010-8%207%200%2014%202%206%206%208%2012%200%208-8%2012-6%206-14%202-7%200-10-8-3-5Z%22%20fill%3D%22%23c8441f%22/%3E%3Cpath%20transform%3D%22translate%2846%2074%29%20scale%281.0%29%20rotate%2820%29%22%20d%3D%22M0-14L3-5%2010-8%207%200%2014%202%206%206%208%2012%200%208-8%2012-6%206-14%202-7%200-10-8-3-5Z%22%20fill%3D%22%23e0662a%22/%3E%3C/svg%3E");right:0;bottom:0;width:170px;height:130px;background-position:right bottom;}
:root[data-skin="forest"] body::after,:root[data-skin="forest"] .home::after{display:block;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22170%22%20height%3D%22130%22%3E%3Cpath%20d%3D%22M170%20124%20C140%20100%20110%2092%2060%2092%20M120%2098%20C116%2076%20122%2060%20140%2046%22%20fill%3D%22none%22%20stroke%3D%22%234d6b3a%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22/%3E%3Cpath%20transform%3D%22translate%2866%2084%29%20rotate%28-60%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%237bb560%22/%3E%3Cpath%20transform%3D%22translate%2892%2082%29%20rotate%28-40%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%235e9c48%22/%3E%3Cpath%20transform%3D%22translate%28140%2042%29%20rotate%2820%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%239cca7c%22/%3E%3Cpath%20transform%3D%22translate%28126%2064%29%20rotate%28-30%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%237bb560%22/%3E%3Cpath%20transform%3D%22translate%2840%2090%29%20rotate%28-80%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%235e9c48%22/%3E%3Cpath%20transform%3D%22translate%28150%20108%29%20rotate%28-20%29%22%20d%3D%22M0-16Q12%200%200%2016Q-12%200%200-16Z%22%20fill%3D%22%239cca7c%22/%3E%3C/svg%3E");right:0;bottom:0;width:170px;height:130px;background-position:right bottom;}
:root[data-skin="night"] body::after,:root[data-skin="night"] .home::after{display:block;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22150%22%20height%3D%22130%22%3E%3Cpath%20d%3D%22M112%2030a34%2034%200%201%200%2022%2062%2028%2028%200%201%201-22-62z%22%20fill%3D%22%23f4e7b8%22/%3E%3Cg%20fill%3D%22%23f2e2a6%22%3E%3Cpath%20d%3D%22M40%2040l2%206%206%202-6%202-2%206-2-6-6-2%206-2z%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22100%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2286%22%20r%3D%221.5%22/%3E%3Cpath%20d%3D%22M80%2018l1.5%204.5%204.5%201.5-4.5%201.5-1.5%204.5-1.5-4.5-4.5-1.5%204.5-1.5z%22/%3E%3C/g%3E%3C/svg%3E");right:0;top:auto;bottom:0;width:150px;height:130px;background-position:right bottom;}
:root[data-skin="sea"] body::after,:root[data-skin="sea"] .home::after{display:block;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22200%22%20height%3D%2260%22%3E%3Cpath%20d%3D%22M0%2030%20Q25%2014%2050%2030%20T100%2030%20T150%2030%20T200%2030%20V60%20H0Z%22%20fill%3D%22%23cfe9ee%22/%3E%3Cpath%20d%3D%22M0%2042%20Q25%2028%2050%2042%20T100%2042%20T150%2042%20T200%2042%20V60%20H0Z%22%20fill%3D%22%23a9d8e2%22/%3E%3C/svg%3E");left:0;right:0;bottom:0;height:60px;width:auto;background-size:200px 60px;background-repeat:repeat-x;background-position:left bottom;}
:root[data-skin="paper"] .board{border-radius:4px;}
:root[data-skin="sakura"] .board{border-color:#b84a70;border-radius:14px;box-shadow:0 0 0 3px #f6d3df, 0 6px 18px rgba(184,74,112,.18);}
:root[data-skin="sea"] .board{border-color:#1d4b57;border-radius:10px;box-shadow:0 0 0 3px #bfe3e9, 0 0 0 5px #1d4b57, 0 6px 16px rgba(29,75,87,.15);}
:root[data-skin="maple"] .board{border:4px solid #6b2f14;border-radius:8px;box-shadow:0 0 0 3px #e8b98d, 0 6px 16px rgba(107,47,20,.18);}
:root[data-skin="forest"] .board{border:4px solid #2f4d2b;border-radius:12px;box-shadow:0 0 0 3px #c9dfb8, 0 6px 16px rgba(47,77,43,.16);}
:root[data-skin="night"] .board{border-color:#c9cfe6;border-radius:10px;box-shadow:0 0 0 1px #3b4566, 0 0 18px rgba(140,170,255,.35);}
:root[data-skin="sakura"] .home-title .ht-big::after{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%2026%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%280%2030%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%2872%2030%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28144%2030%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28216%2030%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2230%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28288%2030%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2213%22%20r%3D%221.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%2290%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%280%2090%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2290%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%2872%2090%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2290%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28144%2090%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2290%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28216%2090%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%2290%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28288%2090%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%2290%22%20cy%3D%2213%22%20r%3D%221.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%280%20150%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%2872%20150%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28144%20150%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28216%20150%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28288%20150%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%22150%22%20cy%3D%2213%22%20r%3D%221.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%22210%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%280%20210%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22210%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%2872%20210%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22210%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28144%20210%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22210%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28216%20210%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22210%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28288%20210%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%22210%22%20cy%3D%2213%22%20r%3D%221.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%22270%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%280%20270%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22270%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%2872%20270%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22270%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28144%20270%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22270%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28216%20270%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Cellipse%20cx%3D%22270%22%20cy%3D%228%22%20rx%3D%223.1%22%20ry%3D%225.0%22%20transform%3D%22rotate%28288%20270%2013%29%22%20fill%3D%22%23f6b3c6%22%20stroke%3D%22%23e48aa6%22%20stroke-width%3D%221%22/%3E%3Ccircle%20cx%3D%22270%22%20cy%3D%2213%22%20r%3D%221.8%22%20fill%3D%22%23f3d36b%22/%3E%3Cellipse%20cx%3D%2260%22%20cy%3D%2214%22%20rx%3D%224%22%20ry%3D%222.4%22%20fill%3D%22%23f6b3c6%22%20transform%3D%22rotate%2825%2060%2014%29%22/%3E%3Cellipse%20cx%3D%22120%22%20cy%3D%2214%22%20rx%3D%224%22%20ry%3D%222.4%22%20fill%3D%22%23f6b3c6%22%20transform%3D%22rotate%2825%20120%2014%29%22/%3E%3Cellipse%20cx%3D%22180%22%20cy%3D%2214%22%20rx%3D%224%22%20ry%3D%222.4%22%20fill%3D%22%23f6b3c6%22%20transform%3D%22rotate%2825%20180%2014%29%22/%3E%3Cellipse%20cx%3D%22240%22%20cy%3D%2214%22%20rx%3D%224%22%20ry%3D%222.4%22%20fill%3D%22%23f6b3c6%22%20transform%3D%22rotate%2825%20240%2014%29%22/%3E%3C/svg%3E") center/contain no-repeat;height:.3em;margin-top:-.06em;transform:none}
:root[data-skin="night"] .home-title .ht-big::after{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M20%203l2%205%205%202-5%202-2%205-2-5-5-2%205-2z%22%20fill%3D%22%23f2d27a%22/%3E%3C/svg%3E");background-size:auto 100%;background-repeat:repeat-x;background-position:center;height:.2em;transform:none}
:root[data-skin="sea"] .home-title .ht-big::after{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2216%22%3E%3Cpath%20d%3D%22M0%2010%20Q10%202%2020%2010%20T40%2010%22%20fill%3D%22none%22%20stroke%3D%22%233a9aa8%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");background-size:auto 100%;background-repeat:repeat-x;background-position:center;height:.2em;transform:none}
:root[data-skin="forest"] .home-title .ht-big::after{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2244%22%20height%3D%2220%22%3E%3Cpath%20d%3D%22M0%2012%20Q22%206%2044%2012%22%20fill%3D%22none%22%20stroke%3D%22%234d6b3a%22%20stroke-width%3D%222%22/%3E%3Cpath%20d%3D%22M14%2011Q20%200%2026%204Q22%2010%2014%2011Z%22%20fill%3D%22%237bb560%22/%3E%3C/svg%3E");background-size:auto 100%;background-repeat:repeat-x;background-position:center;height:.2em;transform:none}
:root[data-skin="maple"] .home-title .ht-big::after{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2220%22%3E%3Cpath%20transform%3D%22translate%2820%2010%29%20scale%28.6%29%22%20d%3D%22M0-14L3-5%2010-8%207%200%2014%202%206%206%208%2012%200%208-8%2012-6%206-14%202-7%200-10-8-3-5Z%22%20fill%3D%22%23d9542b%22/%3E%3C/svg%3E");background-size:auto 100%;background-repeat:repeat-x;background-position:center;height:.2em;transform:none}

/* ================= 한지와 먹 (가장 얻기 어려운 테마) =================
   원칙: 색은 셋만 — 한지(아이보리) · 먹(검정) · 인주(붉은 낙관). 강조는 차분한 쪽빛.
   그림 글자(이모지)·무지개색·반짝이는 효과를 쓰지 않고, 붓과 종이의 질감으로만 고급스럽게.
   마른 붓 자국·낙관의 거친 가장자리는 index.html의 SVG 필터(#hjDry, #hjSeal)로 만들어요. */
:root[data-skin="hanji"] body, :root[data-skin="hanji"] .home{background-size:512px 512px}
/* 판: 종이 위에 먹으로 그은 두 줄 테두리 (바깥 굵게 · 안쪽 가늘게), 칸은 살짝 비쳐서 한지 결이 보이게 */
:root[data-skin="hanji"] .board{border:3px solid #1c1a17;border-radius:1px;background:transparent;
  box-shadow:0 0 0 4px rgba(243,236,220,.9), 0 0 0 5px #1c1a17, 0 10px 24px rgba(40,30,15,.12)}
:where(:root[data-skin="hanji"]) .cell{background-color:rgba(252,249,242,.62)}   /* :where → 선택·같은 숫자·줄 강조 색이 항상 이김 */
/* 글자: 둥근 글꼴 대신 고운바탕(명조 계열) — 버튼·창 제목·칩 */
:root[data-skin="hanji"] .home-btn b,:root[data-skin="hanji"] .wide-btn,:root[data-skin="hanji"] .modal h2,:root[data-skin="hanji"] .hf-txt b,
:root[data-skin="hanji"] .home-first button,:root[data-skin="hanji"] .home-sm span,:root[data-skin="hanji"] .coin-chip,:root[data-skin="hanji"] .theme-chip,
:root[data-skin="hanji"] .sh-info b,:root[data-skin="hanji"] .sh-btn,:root[data-skin="hanji"] .sb-btns button,:root[data-skin="hanji"] .coin-got,
:root[data-skin="hanji"] .shop-coins,:root[data-skin="hanji"] .sh-badge{font-family:"GowunBatang","Noto Serif KR",serif;font-weight:700;letter-spacing:-.01em}
/* 버튼: 둥근 알약 대신 모서리를 덜 둥글게, 먹색 주 버튼 */
:root[data-skin="hanji"] .home-btn,:root[data-skin="hanji"] .home-sm,:root[data-skin="hanji"] .wide-btn,:root[data-skin="hanji"] .home-first,
:root[data-skin="hanji"] .coin-chip,:root[data-skin="hanji"] .theme-chip,:root[data-skin="hanji"] .shop-card,:root[data-skin="hanji"] .modal{border-radius:6px}
:root[data-skin="hanji"] .home-btn:not(.primary),:root[data-skin="hanji"] .home-sm,:root[data-skin="hanji"] .coin-chip,:root[data-skin="hanji"] .theme-chip{background:rgba(251,247,238,.78);border-color:#bfb39b}   /* 주 버튼(이어서 하기)은 먹색 그대로 */
:root[data-skin="hanji"] .home-btn.primary{box-shadow:none}
:root[data-skin="hanji"] .home-btn.new{border-color:#1c1a17;box-shadow:none}
:root[data-skin="hanji"] .home-btn .hb-ic{background:#1c1a17;color:#f6f0e2;border-radius:4px}
:root[data-skin="hanji"] .home-first{background:rgba(229,231,216,.75)}
/* 메인 제목: 붓글씨 + 마른 붓으로 쫙 그은 밑줄 + 작은 낙관 */
:root[data-skin="hanji"] .home-title{font-family:"NanumBrush","Jua",serif;position:relative}
:root[data-skin="hanji"] .home-title .ht-big{font-size:4.4em;text-shadow:0 0 1px rgba(28,26,23,.35);letter-spacing:.02em}   /* 큰 글씨엔 필터를 쓰지 않음: 휴대폰에서 잘려 보이고 느려짐 */
:root[data-skin="hanji"] .home-title .ht-sm{font-size:1.6em;letter-spacing:.18em;color:#1c1a17;opacity:.85}
:root[data-skin="hanji"] .home-title .ht-big::after{height:.2em;margin:-.14em -4% 0 6%;border-radius:0;transform:rotate(-1.5deg);
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%2024%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M2%2015C40%209%20110%204%20200%206c40%201%2075%205%2096%2010-18%201-40%203-70%204-60%202-130%201-224-5z%22%20fill%3D%22%231c1a17%22/%3E%3C/svg%3E") center/100% 100% no-repeat}
:root[data-skin="hanji"] .home-tag{font-family:"GowunBatang",serif;font-weight:700;letter-spacing:.12em;color:#5a544a}
:root[data-skin="hanji"] .home-logo::after{content:"수\A독";white-space:pre;position:absolute;right:16%;top:12%;width:34px;height:34px;padding-top:2px;
  background:#a8261c;color:#f6efe0;border-radius:3px;font-family:"GowunBatang",serif;font-weight:700;font-size:13px;line-height:15px;text-align:center;
  filter:url(#hjSeal);transform:rotate(4deg);opacity:.92}
:root[data-skin="hanji"] .home-logo{position:relative}
@media (max-height:860px){ :root[data-skin="hanji"] .home-title .ht-big{font-size:3.8em} }
@media (max-height:700px){ :root[data-skin="hanji"] .home-title .ht-big{font-size:3.1em} :root[data-skin="hanji"] .home-logo::after{display:none} }
/* 화면 아래: 묵화처럼 옅은 먹 번짐 한 줄 (그림 글자 없이) */
:root[data-skin="hanji"] body::after,:root[data-skin="hanji"] .home::after{display:block;left:0;right:0;bottom:0;height:120px;width:auto;
  background:linear-gradient(to top, rgba(28,26,23,.06), rgba(28,26,23,0))}

/* ---------- 한지: 완성했을 때 — 붓글씨가 써지고 → 마른 붓 밑줄이 쫙 → 붉은 낙관이 콕 (딱 한 번) ---------- */
.fx-brush{position:fixed;inset:0;z-index:290;display:grid;place-items:center;pointer-events:none;
  background:radial-gradient(ellipse 75% 42% at 50% 46%, rgba(246,240,226,.96) 0 48%, rgba(246,240,226,0) 100%);
  animation:fbIn .3s ease both, fbOut .55s ease 2.5s forwards}
.fb-wrap{position:relative;display:flex;flex-direction:column;align-items:stretch;margin-top:-6vh}
.fb-txt{font-family:"NanumBrush","Jua",serif;font-size:76px;line-height:1;color:#1c1a17;white-space:nowrap;text-shadow:0 0 1px rgba(28,26,23,.4);
  clip-path:inset(-10% 100% -10% 0);animation:fbWrite .85s cubic-bezier(.55,.05,.35,1) .15s forwards}
.fb-line{display:block;width:108%;margin-left:-4%;height:20px;margin-top:2px;fill:#1c1a17;
  clip-path:inset(0 100% 0 0);animation:fbSweep .24s cubic-bezier(.8,0,.2,1) 1.05s forwards}
.fb-seal{position:absolute;right:-26px;top:-14px;width:44px;height:44px;border-radius:3px;background:#a8261c;color:#f6efe0;
  font-family:"GowunBatang",serif;font-weight:700;font-size:17px;line-height:19px;display:grid;place-items:center;text-align:center;white-space:pre;
  filter:url(#hjSeal);opacity:0;transform:rotate(6deg) scale(1.6);animation:fbSeal .22s cubic-bezier(.3,1.4,.5,1) 1.45s forwards}
@keyframes fbIn{from{opacity:0}to{opacity:1}}
@keyframes fbWrite{to{clip-path:inset(-10% -2% -10% 0)}}
@keyframes fbSweep{to{clip-path:inset(0 0 0 0)}}
@keyframes fbSeal{to{opacity:.94;transform:rotate(6deg) scale(1)}}
@keyframes fbOut{to{opacity:0}}
@media (max-width:380px){ .fb-txt{font-size:60px} .fb-seal{right:-14px;top:-22px} }
