:root{--cf-ink:#21180f;--cf-gold:#d4bd88}.cf-touch{z-index:100000;pointer-events:none;color:var(--cf-gold);font-family:Georgia,Noto Serif KR,serif;position:fixed}.cf-touch[hidden],.cf-rotate[hidden],.cf-compact-settings[hidden],.cf-touch [hidden]{display:none!important}.cf-touch button,.cf-move-area{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}.cf-move-area{z-index:0;width:50%;position:absolute;inset:0 auto 0 0}.cf-touch-actions,.cf-touch-items,.cf-touch-menu{z-index:1}.cf-stick,.cf-stick-knob{pointer-events:none}.cf-stick[data-floating=true]{left:var(--cf-stick-x);top:var(--cf-stick-y);bottom:auto;transform:translate(-50%,-50%)}.cf-touch button{color:#efddae;background:radial-gradient(#49341ddd,#110e0be8);border:2px solid #b89a63;border-radius:12px;width:52px;height:52px;padding:4px;font:700 13px Georgia,serif;box-shadow:inset 0 0 0 3px #19130f,0 2px 6px #0009}.cf-touch button[data-held=true]{background:#77603a;border-color:#ffe5ae}.cf-touch button:disabled{opacity:.45}.cf-touch-menu{right:max(112px, env(safe-area-inset-right));top:max(12px, env(safe-area-inset-top));position:absolute}.cf-stick{width:108px;height:108px;left:max(16px, env(safe-area-inset-left));bottom:max(14px, env(safe-area-inset-bottom));background:radial-gradient(circle,#4b382866,#110e0b88);border:2px solid #b89a6388;border-radius:50%;position:absolute;box-shadow:inset 0 0 0 6px #13100ba6}.cf-stick-knob{pointer-events:none;background:#c5ad77bb;border:1px solid #ebd5a3;border-radius:50%;width:40px;height:40px;position:absolute;top:34px;left:34px}.cf-touch-actions{right:max(16px, env(safe-area-inset-right));bottom:max(14px, env(safe-area-inset-bottom));grid-template-columns:repeat(2,52px);gap:10px;display:grid;position:absolute}.cf-touch-items{left:50%;bottom:max(16px, env(safe-area-inset-bottom));gap:6px;display:flex;position:absolute;transform:translate(-50%)}.cf-touch-items button{background:url(../assets/images/ui/frame_empty.png) 50%/100% 100%,#19130fc9;border:0;border-radius:6px;width:44px;height:44px}.cf-touch-items img{object-fit:contain;pointer-events:none;width:29px;height:29px}.cf-rotate{z-index:100010;color:#ead6a6;text-align:center;background:#100d09f5;place-content:center;padding:32px;font:20px Georgia,serif;display:grid;position:fixed;inset:0}.cf-rotate:before{content:"↻";color:#b89a63;font-size:68px;display:block}.cf-compact-settings{z-index:100001;box-sizing:border-box;color:#241b11;pointer-events:none;flex-direction:column;gap:4px;padding:7.5% 13.5% 5.5%;font:11px Georgia,Noto Serif KR,serif;display:flex;position:fixed}.cf-compact-settings header,.cf-compact-settings footer{pointer-events:auto;flex-shrink:0;align-items:center;gap:6px;display:flex}.cf-compact-settings header{border-bottom:1px solid #6f573666;min-height:24px;padding:0 2px 2px}.cf-compact-settings h1{flex:1;margin:0;font-size:13px;font-weight:400}.cf-compact-settings button,.cf-compact-settings select{box-sizing:border-box;color:#21180f;touch-action:manipulation;background:#cbb789dc;border:1px solid #35271a;border-radius:6px;min-height:24px;padding:1px 6px;font:700 10px Georgia,serif}.cf-compact-settings button:hover,.cf-compact-settings select:hover{background:#d9c697}.cf-compact-settings select{min-width:0;max-width:132px}.cf-compact-settings header select{width:118px;max-width:42%}.cf-settings-pages{overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#8b7049 #d5c6a5;pointer-events:auto;flex:1;grid-template-columns:1fr 1fr;gap:7%;min-height:0;padding:3px 5px 3px 3px;display:grid;overflow-y:auto}.cf-settings-page{flex-direction:column;gap:3px;min-width:0;display:flex}.cf-setting-row{background:#e3d7b83d;border:1px solid #6e573644;border-radius:6px;grid-template-columns:minmax(0,1fr) minmax(70px,34%);align-items:center;gap:5px;min-width:0;min-height:25px;padding:2px 5px;display:grid}.cf-setting-row label{overflow-wrap:anywhere;font-weight:700;line-height:1.05}.cf-setting-row input[type=range]{accent-color:#755b31;touch-action:pan-x;width:100%;height:20px;margin:0}.cf-setting-row output{text-align:right;font-size:10px}.cf-setting-row button,.cf-setting-row select{width:100%;min-height:23px}.cf-compact-settings footer{justify-content:center;gap:12px;padding-top:1px}.cf-compact-settings footer button{flex:0 auto;width:108px;min-width:0;max-width:118px}.cf-compact-settings button:disabled{opacity:.5}@media (height<=420px){.cf-compact-settings{gap:3px;padding:7% 13.5% 5%}.cf-compact-settings header{min-height:22px}.cf-compact-settings button,.cf-compact-settings select{min-height:23px}.cf-setting-row{min-height:24px;padding:2px 4px}}@media (prefers-reduced-motion:reduce){.cf-touch *{transition:none}}.cf-compact-pause{z-index:100002;box-sizing:border-box;color:#d4bd88;background:#100d09fc;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:16px;font:18px Georgia,Noto Serif KR,serif;display:flex;position:fixed;overflow-y:auto}.cf-compact-pause[hidden]{display:none}.cf-compact-pause h2{margin:0 0 8px;font-size:24px;font-weight:400}.cf-compact-pause button{color:#ddc99b;touch-action:manipulation;background:#21180f;border:1px solid #b89a63;border-radius:8px;flex-shrink:0;width:min(320px,90%);min-height:44px;font:17px Georgia,serif}.cf-pause-audio{overscroll-behavior:contain;scrollbar-color:#8b7049 #21180f;width:min(320px,90%);min-height:0;overflow:hidden auto}.cf-pause-audio button,.cf-pause-audio input{box-sizing:border-box}.cf-pause-audio button{width:100%;margin-bottom:8px}.cf-pause-audio label{font-size:14px;display:block}.cf-pause-audio input{accent-color:#c4a567;width:100%;height:44px;margin:0;display:block}.cf-settings-pages::-webkit-scrollbar{width:6px}.cf-settings-pages::-webkit-scrollbar-thumb{background:#8b7049;border-radius:4px}@media (prefers-reduced-motion:reduce){.cf-touch *{transition:none}}.cf-workbench,.cf-compact-shop{z-index:100003;box-sizing:border-box;color:#ead9ad;pointer-events:none;grid-template-rows:44px minmax(0,1fr) 44px;gap:8px;padding:12px 16px;font:14px Georgia,Noto Serif KR,serif;display:grid;position:fixed}.cf-workbench[hidden],.cf-compact-shop[hidden]{display:none!important}.cf-workbench header,.cf-workbench footer,.cf-compact-shop header,.cf-compact-shop footer{justify-content:space-between;align-items:center;gap:10px;min-width:0;display:flex}.cf-workbench h1,.cf-compact-shop h1{text-shadow:0 2px 3px #000;margin:0;font-size:20px;font-weight:400}.cf-workbench h2,.cf-compact-shop h2{text-align:center;overflow-wrap:anywhere;margin:0;font-size:16px}.cf-workbench button,.cf-compact-shop button{box-sizing:border-box;color:#ecd8aa;min-height:44px;font:inherit;pointer-events:auto;touch-action:manipulation;cursor:pointer;overflow-wrap:anywhere;background:linear-gradient(#493520ed,#20170eec);border:1px solid #bda36f;border-radius:8px;flex-shrink:0;padding:7px 10px;box-shadow:inset 0 0 0 3px #19120b80,0 2px 3px #0005}.cf-workbench button[aria-pressed=true],.cf-compact-shop button[aria-pressed=true]{background:linear-gradient(#78613a,#483521);border-color:#f4d397;box-shadow:inset 0 0 0 3px #b99c5355}.cf-workbench button:disabled,.cf-compact-shop button:disabled{opacity:.5;cursor:default}.cf-workbench button:focus-visible,.cf-compact-shop button:focus-visible{outline-offset:-4px;outline:2px solid #ffedba}.cf-workbench footer{justify-content:flex-end}.cf-workbench footer button{min-width:120px}.cf-ink-balance{align-items:center;gap:6px;font-size:16px;display:flex}.cf-ink-balance .cf-art-icon{width:24px;height:30px}.cf-art-icon{object-fit:contain;pointer-events:none;flex-shrink:0;width:40px;height:40px}.cf-art-placeholder{color:#b4a481;place-items:center;width:32px;font-size:24px;display:grid}.cf-workbench-body{grid-template-columns:27fr 36fr 37fr;gap:10px;min-height:0;display:grid}.cf-workbench-doll .cf-workbench-body{grid-template-columns:30fr 40fr 30fr}.cf-workbench-list-panel,.cf-workbench-detail{pointer-events:auto;background:#211711e0;border:1px solid #8c734b;border-radius:12px;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:8px;display:flex;box-shadow:inset 0 0 0 3px #100b0870}.cf-panel-scroll{overscroll-behavior:contain;touch-action:pan-y;scrollbar-color:#9e8659 #211711;scrollbar-width:thin;flex:1;min-height:0;overflow:hidden auto}.cf-workbench-row{text-align:left;align-items:center;gap:6px;width:100%;margin-bottom:6px;display:flex}.cf-workbench-row-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.cf-workbench-row strong{font-size:14px;line-height:1.3}.cf-workbench-row small{color:#cbb68a;font-size:12px}.cf-workbench-doll .cf-workbench-row{flex-direction:column;align-items:flex-start}.cf-workbench-preview{background:radial-gradient(at 50% 55%,#0000 50%,#1b13096b);border:1px dashed #c2a76c80;border-radius:18px;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:8px;display:flex}.cf-preview-space{flex:1;min-height:0}.cf-workbench-preview p{text-align:center;margin:0;font-size:14px}.cf-workbench-tabs{gap:6px;display:flex}.cf-workbench-tabs button{flex:1;min-width:0;padding:5px}.cf-workbench-detail p{white-space:pre-line;overflow-wrap:anywhere;margin:8px 0;line-height:1.5}.cf-workbench-status{color:#d1ba88}.cf-upgrade-card{border-bottom:1px solid #92754680;margin-bottom:8px;padding:10px 6px}.cf-upgrade-card strong{font-size:14px}.cf-upgrade-card small{color:#e9c875}.cf-upgrade-card.cf-owned{background:#64522e55}.cf-panel-notice{z-index:5;text-align:center;pointer-events:none;background:#160f09f5;border:1px solid #bea16b;border-radius:10px;max-width:80%;padding:12px 18px;position:absolute;top:8px;left:50%;transform:translate(-50%)}.cf-panel-notice[hidden]{display:none}@media (width<=700px){.cf-workbench,.cf-compact-shop{gap:6px;padding:8px 10px}.cf-workbench-body{gap:6px}.cf-workbench-list-panel,.cf-workbench-detail,.cf-workbench-preview{padding:6px}.cf-workbench h1{font-size:18px}.cf-workbench-row .cf-art-icon{width:28px;height:32px}}.cf-compact-shop[data-hard=true]{background:linear-gradient(#10090680,#180b09b0),url(../assets/images/ui/shop/shop_bg.png) 50%/cover}html[data-game-theme=halloween] .cf-compact-shop[data-hard=true]{background-image:linear-gradient(#10090680,#180b09b0),url(../assets/images/ui/halloween/shop_bg.webp)}.cf-shop-tabs{gap:8px;display:flex}.cf-shop-resources{white-space:nowrap;color:#efd193;background:#170d09df;border:1px solid #b99a6255;border-radius:10px;padding:8px 12px;font-size:15px}.cf-shop-body{grid-template-columns:58fr 42fr;gap:12px;min-height:0;display:grid}.cf-shop-stock{pointer-events:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:8px;padding:4px;display:grid}.cf-shop-offer{flex-direction:column;justify-content:center;align-items:center;gap:6px;min-width:0;display:flex;position:relative;background:radial-gradient(at 50% 33%,#bbaa7466,#352618de 70%),#1c100b!important;border-color:#a68854aa!important;min-height:136px!important}.cf-shop-offer[aria-pressed=true]{box-shadow:inset 0 0 0 3px #d6b26966,0 0 10px #dfb35b60;border-color:#ffe2a0!important}.cf-shop-offer strong{color:var(--offer-color);text-shadow:0 1px 2px #000;font-size:14px}.cf-shop-icon-frame{background:url(../assets/images/ui/frame_empty.png) 50%/contain no-repeat;place-items:center;width:62px;height:62px;display:grid}.cf-shop-icon-frame .cf-art-icon{width:46px;height:46px}.cf-shop-price{color:#ffdb78;font-size:14px}.cf-shop-offer small{color:#e7ce8b;font-size:12px}.cf-shop-detail{pointer-events:auto;background:#1b100bf0;border:1px solid #b99a63;border-radius:12px;flex-direction:column;gap:8px;min-width:0;min-height:0;padding:10px;display:flex;box-shadow:inset 0 0 0 3px #9d814324}.cf-shop-description p{white-space:pre-line;overflow-wrap:anywhere;margin:8px 0;line-height:1.6}.cf-shop-detail-actions{flex-wrap:wrap;flex-shrink:0;gap:6px;max-height:45%;display:flex;overflow-y:auto}.cf-shop-detail-actions button{flex:1;min-width:80px}.cf-shop-inventory{pointer-events:auto;background:#1b100be8;border:1px solid #8c734b;border-radius:12px;padding:8px}.cf-shop-inventory-group{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.cf-shop-inventory-group h2{text-align:left;color:#d6bf90;margin:4px;font-size:14px}.cf-shop-inventory-group button{text-align:left;align-items:center;gap:8px;display:flex}.cf-compact-shop footer button{flex:1;min-width:0}.cf-shop-dialog{pointer-events:auto;background:#160e08f7;border:1px solid #c3a675;border-radius:16px;flex-direction:column;grid-row:1/-1;gap:12px;padding:20px max(16px,8%);display:flex}.cf-shop-dialog h2{font-size:22px}.cf-shop-dialog p{text-align:center;white-space:pre-line;margin:0;line-height:1.5}.cf-shop-dialog-action{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;display:flex;padding:12px!important}.cf-shop-dialog-action span{white-space:pre-line;width:100%;line-height:1.5;display:block}.cf-shop-dialog-action .cf-art-icon{width:52px;height:52px}@media (width<=700px){.cf-shop-body{gap:6px}.cf-shop-stock{gap:6px;padding:2px}.cf-shop-resources{padding:6px;font-size:13px}.cf-shop-tabs{gap:4px}.cf-shop-offer{padding:6px!important}.cf-shop-detail{padding:8px}}.cf-setting-row input[type=range]{grid-column:1/-1}.cf-filter-preview{pointer-events:none;box-sizing:border-box;flex:0 0 52px;min-height:52px;padding:1px 2px}.cf-filter-preview canvas{border-radius:5px;width:100%;height:100%;display:block;background:0 0!important}@media (height<=420px){.cf-filter-preview{flex-basis:46px;min-height:46px}}
