*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;background:#f4ede1;color:#304a3d;font-family:system-ui,-apple-system,'Noto Sans JP',sans-serif}body{background-image:repeating-linear-gradient(90deg,#fff8eb00 0 58px,#b39e7810 58px 60px);overscroll-behavior-y:none}button,input{font:inherit}button{display:flex;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:44px;padding:10px 14px;border:1px solid #b9bdab;border-radius:12px;background:#fffaf1;color:#304a3d;font-size:16px;font-weight:700;line-height:1.25;cursor:pointer;touch-action:manipulation}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #c99c4e;outline-offset:3px}.primary{background:#a63748;color:#fff7e8;border-color:#a63748;box-shadow:0 3px 0 #782638}.secondary{background:#e4ebde}.quiet{background:transparent;border-color:transparent;box-shadow:none}header{height:70px;max-width:1120px;margin:auto;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:10px}h1{margin:0;font-size:clamp(19px,3vw,26px);font-weight:800;letter-spacing:.025em}header #back{position:static;flex:none;font-size:14px;min-height:40px;padding:8px}main{max-width:1080px;margin:auto;padding:0 20px 30px}.wall-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:6px 0 24px}.wall-toolbar .primary{min-width:190px}.tabs{display:flex;background:#e6dece;border-radius:13px;padding:4px;gap:3px}.tabs button{border:0;background:transparent;font-size:14px;padding:9px 13px;min-height:38px}.tabs button[aria-pressed=true]{background:#fff9ef;box-shadow:0 2px 4px #67503915}#gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 20px}.card{min-width:0;position:relative}.art-button{width:100%;padding:0;background:radial-gradient(ellipse,#fff9edb0,#eadfcb50);border:0;border-radius:28px 28px 8px 8px;aspect-ratio:1;position:relative;overflow:hidden}.art-button:before{content:'';position:absolute;top:7%;left:calc(50% - 4px);width:8px;height:8px;border-radius:50%;background:#8c774f;box-shadow:0 2px 2px #54433150}.art-button svg{width:100%;height:100%}.card h2{font-size:16px;margin:9px 0 2px;overflow-wrap:anywhere;line-height:1.45}.card-author{font-size:14px;color:#6d7865;margin:0;overflow-wrap:anywhere}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.like-button{min-height:38px;background:transparent;border:1px solid #bcae91;border-radius:20px;padding:7px 12px;white-space:nowrap;color:#9e3847}.like-button[aria-pressed=true]{background:#f1d6d1;border-color:#af5761}.like-button svg{width:17px;height:17px;flex:none}.like-button:disabled{opacity:.6}#more{margin:25px auto 0;min-width:150px}#wall-message{margin:70px auto;text-align:center;font-size:16px;color:#6e7766}body[data-screen=editor]{height:100dvh;overflow:hidden}body[data-screen=editor] #app{height:100dvh;display:flex;flex-direction:column}body[data-screen=editor] header{flex:none;width:100%;height:58px}body[data-screen=editor] main{flex:1;min-height:0;width:min(700px,100%);padding:0 16px max(12px,env(safe-area-inset-bottom));display:flex}#editor{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;position:relative}#base-picker{display:flex;gap:6px;flex:none}#base-picker button{flex:1;font-size:14px;min-height:40px;padding:8px 5px}#base-picker button[aria-pressed=true]{border-color:#a63748;background:#ecd9d1;color:#913344}.edit-stage{min-height:0;flex:1;display:flex;justify-content:center;align-items:center}#preview{width:min(100%,var(--preview-size,360px));aspect-ratio:1;max-height:100%;touch-action:none;user-select:none;cursor:pointer}#preview svg{width:100%;height:100%;display:block;touch-action:none}#piece-actions{display:flex;gap:6px;flex:none}#piece-actions button{flex:1;font-size:14px;min-height:36px;padding:7px}#categories{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;flex:none;padding:2px 0}#categories button{flex:none;min-height:36px;padding:7px 12px;font-size:14px;border:0;background:transparent;white-space:nowrap}#categories button[aria-pressed=true]{background:#375a46;color:#fff9e8}#palette{display:flex;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:3px 1px 6px;flex:none;min-height:78px}#palette button{flex:none;min-width:76px;height:76px;flex-direction:column;gap:0;padding:2px 6px;border-radius:12px;font-size:14px;background:#fff9ee}#palette button svg{width:52px;height:44px}#palette button[aria-pressed=true]{border:2px solid #a63748;background:#f5e2d9}footer.edit-footer{display:flex;gap:6px;flex:none;padding-bottom:19px}footer.edit-footer button{flex:1;font-size:14px;padding:10px 5px;min-height:44px}#edit-count{position:absolute;bottom:0;right:0;font-size:13px;color:#69755f;line-height:18px}#confirm{max-width:440px;margin:auto}#confirm-preview{width:100%;max-width:360px;margin:auto}#confirm-preview svg{display:block;width:100%}#post-form{display:flex;flex-direction:column;gap:16px}#post-form label{display:flex;flex-direction:column;gap:7px;font-size:15px;font-weight:700}input{width:100%;padding:12px 14px;font-size:16px;border:1px solid #b7bdac;border-radius:12px;color:#304a3d;background:#fffdf4;min-height:46px}#submit{width:100%;margin-bottom:15px}dialog{width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid #bfb59f;border-radius:22px;background:#fff9ef;color:#304a3d;padding:22px 22px 14px;box-shadow:0 15px 60px #1d352744;overflow:auto}dialog::backdrop{background:#183e2c70;backdrop-filter:blur(3px)}.close{position:absolute;top:6px;right:6px;z-index:2;background:#fff9efc0;border:0;font-size:28px;width:40px;padding:0;min-height:40px}#detail-preview{max-width:300px;margin:auto}#detail-preview svg{display:block;width:100%}dialog h2{font-size:22px;line-height:1.35;margin:4px 0 5px;overflow-wrap:anywhere}#detail-author{font-size:16px;margin:0 0 3px;overflow-wrap:anywhere}#detail-date{font-size:14px;color:#7c826f}.detail-actions{display:flex;gap:9px;margin:15px 0 7px}.detail-actions .primary{flex:1}.detail-actions .like-button{min-width:75px}.detail-secondary{display:flex;justify-content:flex-end;gap:8px}.detail-secondary button{font-size:14px;min-height:36px;padding:7px;color:#737b68}#share-fallback{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}#share-fallback button{flex:1;white-space:nowrap;font-size:14px;padding:9px}#toast{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 24px);background:#284b3c;color:#fffaf0;border-radius:12px;padding:12px 18px;font-size:15px;box-shadow:0 4px 15px #1d352733;text-align:center;pointer-events:none}[hidden]{display:none!important}@media(max-width:700px){#gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 13px}.wall-toolbar{align-items:stretch;gap:16px;margin-bottom:20px}.wall-toolbar .primary{width:100%}.tabs{width:100%}.tabs button{flex:1}.art-button{border-radius:22px 22px 8px 8px}}@media(max-width:480px){header{height:62px;padding:10px 14px}main{padding:0 14px 25px}#gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.card h2{font-size:16px}.card-bottom{align-items:flex-start}.like-button{padding:7px 10px}.card-author{font-size:14px;line-height:1.4}.art-button{border-radius:20px 20px 6px 6px}#confirm-preview{max-width:280px}#post-form{gap:14px}body[data-screen=editor] main{padding-inline:10px}dialog{padding:16px 18px 9px}#detail-preview{max-width:250px}dialog h2{font-size:20px}}@media(max-height:670px){body[data-screen=editor] header{height:50px}#editor{gap:5px}#base-picker button{min-height:34px}#piece-actions button{min-height:32px}#palette{min-height:66px;padding-bottom:3px}#palette button{height:63px;min-width:70px}#palette button svg{height:34px}#categories button{min-height:32px;padding:6px 10px}footer.edit-footer button{min-height:40px}#detail-preview{max-width:190px}}
#editor{min-width:0;width:100%}body[data-screen=editor] main{min-width:0}#base-picker,#categories,#palette{min-width:0;max-width:100%}
#palette button[data-part]{touch-action:none;user-select:none}#palette button span{display:block;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#drag-ghost{position:fixed;z-index:50;pointer-events:none;transform:translate(-50%,-50%);border-radius:50%;background:#fff9ed50;outline:2px solid #437d59;filter:drop-shadow(0 3px 5px #1c3b3030)}#drag-ghost[data-valid=false]{outline-color:#bd5661;background:#fff2f05c}#drag-ghost svg{width:100%;height:100%;display:block}.draw-new{background:#e7ecde!important;color:#355c43!important}#paint-dialog{width:min(450px,calc(100vw - 16px));height:min(800px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);padding:12px 14px;overflow:hidden}#paint-dialog[open]{display:flex;flex-direction:column;gap:9px}.paint-heading{display:flex;align-items:center;justify-content:space-between;flex:none}.paint-heading h2{font-size:20px;margin:0}.paint-heading button{width:36px;height:34px;min-height:34px;padding:0;font-size:27px}.paint-tools{display:flex;gap:4px;flex:none}.paint-tools button{flex:1;font-size:14px;white-space:nowrap;padding:8px 3px;min-height:38px}.paint-tools button[aria-pressed=true]{color:#fff9e9;background:#375a46;border-color:#375a46}.paint-stage{flex:1;min-height:80px;display:flex;justify-content:center;align-items:center;min-width:0}#paint-canvas{display:block;touch-action:none;background-color:#fffdf5;background-image:linear-gradient(45deg,#cdd3c944 25%,transparent 25%),linear-gradient(-45deg,#cdd3c944 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#cdd3c944 75%),linear-gradient(-45deg,transparent 75%,#cdd3c944 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #c0c4b3;border-radius:8px;max-width:100%;max-height:100%;user-select:none}.paint-controls{display:flex;align-items:center;gap:6px;flex:none}.paint-controls button{font-size:13px;min-height:34px;padding:7px;white-space:nowrap}.paint-controls label{display:flex;align-items:center;gap:5px;font-size:14px;flex:1;min-width:0}.paint-controls input{padding:0;min-height:30px;min-width:0;width:100%;accent-color:#a63748}#paint-colors{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;flex:none}.paint-swatch{width:100%;height:27px;min-height:27px;padding:0;border:1px solid #a5ac9c;border-radius:7px;box-shadow:inset 0 0 0 2px #fff5}.paint-swatch[aria-pressed=true]{outline:2px solid #375a46;outline-offset:1px;box-shadow:inset 0 0 0 3px #fff}.paint-name-label{font-size:14px;font-weight:700;display:flex;flex-direction:column;gap:4px;flex:none}.paint-name-label input{min-height:40px;padding:8px 12px}#paint-save{flex:none;min-height:43px}@media(max-height:650px){#paint-dialog[open]{gap:6px}.paint-tools button{min-height:34px}.paint-swatch{height:23px;min-height:23px}#paint-colors{gap:4px}.paint-name-label input{min-height:36px}.paint-controls button{min-height:30px}.paint-heading h2{font-size:18px}}
.paint-controls label{white-space:nowrap}.paint-controls button{font-size:14px}
#size-control{display:flex;align-items:center;gap:10px;min-height:40px;flex:none;padding:0 3px}#size-control label{font-size:14px;font-weight:700;white-space:nowrap}#size-value{font-size:14px;font-weight:700;min-width:4ch;text-align:right;font-variant-numeric:tabular-nums}#size-slider{-webkit-appearance:none;appearance:none;flex:1;min-width:0;width:100%;min-height:40px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;touch-action:none;cursor:ew-resize}#size-slider::-webkit-slider-runnable-track{height:6px;background:linear-gradient(to right,#a63748 var(--range-fill,33.3%),#d9dccc var(--range-fill,33.3%));border-radius:6px}#size-slider::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border:3px solid #fff9ed;border-radius:50%;background:#a63748;box-shadow:0 1px 4px #233d3030;margin-top:-10px}#size-slider::-moz-range-track{height:6px;border-radius:6px;background:#d9dccc}#size-slider::-moz-range-progress{height:6px;background:#a63748}#size-slider::-moz-range-thumb{width:21px;height:21px;border:3px solid #fff9ed;border-radius:50%;background:#a63748}#size-slider:disabled{opacity:.35;cursor:default}@media(max-height:600px) and (max-width:650px){body[data-screen=editor] header{height:48px}#editor{gap:4px}#base-picker button,#piece-actions button{min-height:30px}#size-control,#size-slider{min-height:34px}#palette{min-height:56px}#palette button{height:54px}#palette button svg{height:28px}#categories button{min-height:30px}footer.edit-footer button{min-height:38px}}@media(min-width:700px) and (max-height:600px){body[data-screen=editor] main{width:min(1100px,100%)}#editor{display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1fr);grid-template-rows:auto auto auto auto 66px auto 18px;gap:5px 16px}.edit-stage{grid-column:1;grid-row:1/8;height:100%}#base-picker{grid-column:2;grid-row:1}#piece-actions{grid-column:2;grid-row:2}#size-control{grid-column:2;grid-row:3}#categories{grid-column:2;grid-row:4}#palette{grid-column:2;grid-row:5;min-height:0}footer.edit-footer{grid-column:2;grid-row:6;padding-bottom:0}#edit-count{position:static;grid-column:2;grid-row:7;text-align:right}}

#sound{flex:none;width:40px;height:40px;min-height:40px;padding:8px;border-radius:12px}#sound svg{display:block;width:24px;height:24px}#sound .sound-off{display:none}#sound[aria-pressed=false] .sound-waves{display:none}#sound[aria-pressed=false] .sound-off{display:block}header h1{min-width:0;flex:1} .audio-credit{font-size:14px;text-align:center;margin:16px 0;color:#677365}.audio-credit a{color:inherit;text-underline-offset:3px}
