:root{--paper:#151816;--ink:#fff0d4;--orange:#ff7845;--line:#736a513f;--muted:#b5b2a2;--cream:#242a25;--mint:#80dbbe;--glass:#242b25e8;--glow:#ff784533}
html,body{height:100%;overscroll-behavior:none}body{background:radial-gradient(ellipse at 60% -30%,#60412b 0,transparent 60%),var(--paper);overflow:hidden;color:var(--ink)}header{height:62px;padding:0 24px;border-bottom:1px solid var(--line)}header .font-brand{filter:brightness(0) invert(.94)}header .edition{color:var(--muted)}header>div{display:flex;gap:10px}.text-button{min-height:44px}.brand{font-size:26px}.brand-icon{font-size:32px}main{max-width:none;padding:0 18px}.intro{height:66px;padding:10px 4px}.intro h1{margin:0}.intro .font-heading{width:240px;filter:brightness(0) invert(.92)}.intro .eyebrow,.intro p,.stamp{display:none}.intro:after{content:'石窯の工房 / 描いて、盛って、焼いて、回す。';margin-left:auto;color:var(--muted);font-size:12px}.workshop{height:calc(100dvh - 245px);grid-template-columns:255px minmax(260px,1fr) 270px;border:0;background:none;gap:14px;align-items:stretch}.ingredients,.stats{height:100%;overflow:auto;overscroll-behavior:contain;padding:18px;background:var(--glass);border:1px solid var(--line);border-radius:16px;scrollbar-width:thin;scrollbar-color:#76694c transparent;backdrop-filter:blur(12px)}.board{height:100%;min-height:0;display:flex;flex-direction:column;border:1px solid #ffad5840;border-radius:18px;overflow:hidden;box-shadow:0 0 24px #ff784509;background:#1e251f}.board-top{background:#252c25;color:var(--muted);padding:16px;flex-shrink:0}.canvas-wrap{flex:1;min-height:0;height:auto!important;display:flex;align-items:center;justify-content:center;background:#e7ddc3;overflow:hidden;touch-action:none}#editor{display:block;flex-shrink:0;touch-action:none;border-radius:0}#emptyHint{color:#34443b;pointer-events:none}.board-note{display:none}.studio-foot{background:#252c25;color:var(--muted);padding:12px;font-size:10px;flex-shrink:0}.preview-wrap{height:200px;background:radial-gradient(#d6bd83,#aca781);border-radius:12px;overflow:hidden}#preview3d{height:100%;width:100%}.preview-caption,.preview-badge{color:#303e31}button{border-radius:8px;transition:transform .12s,box-shadow .2s,background .2s}button:active{transform:translateY(2px) scale(.98)}button.active,.dough-options .active,.symmetry .active{background:#743f2b!important;color:#fff2d6!important;border-color:var(--orange)!important;box-shadow:0 0 12px var(--glow)}input,select{color:var(--ink);background:#1c231e;border:1px solid #79796766;border-radius:6px}input[type=range]{accent-color:var(--orange);background:transparent}input[type=color]{padding:2px}#brushSample{border-radius:8px}.color-drawer summary,.section-label{color:var(--muted)}.mini-toppings button{background:#32372d;color:var(--ink)}.circle-base{background:#59402b;color:#ffe7b5;border-color:#ca8c4955}.note{background:#1c2721;border-color:#76dbbe44}.note p{color:var(--muted)}#radarChart text{fill:var(--ink)}.stat-title i{color:var(--orange)}.stat-track{background:#101712}.stat-track>div{background:linear-gradient(90deg,#bb4d2c,var(--orange));box-shadow:0 0 10px var(--glow)}progress{accent-color:var(--mint)}.cook-bar{position:fixed;inset:auto 18px 14px;margin:0;padding:10px 20px;height:98px;display:flex;justify-content:space-between;gap:18px;border:1px solid #fc965e55;background:linear-gradient(120deg,#2c2d23f5,#1c251ff5);border-radius:18px;box-shadow:0 -8px 40px #0003;backdrop-filter:blur(18px);z-index:20}.cook-bar .heat-info{display:block}.heat-info h2{font-size:16px;margin:5px 0}.heat-info p{display:none}.heat-info .section-label{display:none}#bakeLabel{color:var(--orange)}.temperature{gap:14px;display:flex;align-items:center}.dial-wrap{width:80px;height:80px}.dial-min,.dial-max{display:none}#dial{width:76px;height:76px;border:5px solid #5a5140;background:radial-gradient(circle at 36% 27%,#605b4c,#242b25 60%,#141b16);box-shadow:inset 0 2px 3px #e1b16a66;color:var(--ink)}#temperatureValue{font-size:22px}#temperatureValue small{font-size:10px}.dial-pointer{height:100%;width:100%}.temperature-caption{color:var(--ink);font-size:12px}.temperature-caption span{display:none}.start-area{min-width:220px;width:28%}#start{width:100%;height:68px;border-radius:12px;background:linear-gradient(120deg,#ff934d,#ee4d28);border:1px solid #ffb56c;box-shadow:0 0 24px #ff78452b,inset 0 1px #ffd0a5;display:flex;align-items:center;justify-content:space-between;padding:14px 24px}#start img{max-height:36px;width:auto}.start-area p{display:none}footer{display:none}details summary{min-height:38px;cursor:pointer}dialog:not(#battleDialog){background:#242c25;color:var(--ink);border:1px solid #b6824e66;border-radius:16px;box-shadow:0 12px 80px #0008;max-height:90dvh;overflow:auto}dialog::backdrop{background:#06110bbb;backdrop-filter:blur(5px)}#battleDialog .result-card{background:#263329f5!important;color:var(--ink)!important;border:1px solid #df8d5566}.primary,#launchButton{background:var(--orange);color:#1d241f;border-radius:8px}.save-slot{background:#1e2721;border-color:#74745b}.slot-name{color:var(--ink)}.slot-confirm{background:#3a3725}.model-settings,.formula,.effects-settings{color:var(--muted)}.model-settings a{color:var(--mint)}#mobileTools{display:none}#massDetails,#islandCount{font-size:10px;color:var(--mint)}#instantRematch{border:1px solid var(--orange);color:var(--ink)}#battleDialog[open]{animation:enter-arena .2s ease-out}#installHint{font-size:11px;color:var(--muted)}#toppingPainter input{max-width:190px}.mix-panel p{font-size:10px;color:var(--muted)}#pickerPreview{background:var(--glass);color:var(--ink)}#toast{background:#354838;color:var(--ink);bottom:125px}#qualityStatus{color:var(--muted)}
@keyframes enter-arena{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:none}}
@media(max-width:900px){header{height:52px;padding:0 10px;gap:8px}header .edition,header .jp,header #help{display:none}header .brand-icon{display:none}header .font-brand{width:125px}header>div{gap:4px}header .text-button{font-size:10px;padding:4px}main{padding:0 8px}.intro{display:none}.workshop{display:block;position:relative;height:calc(100dvh - 202px - env(safe-area-inset-bottom));padding:8px 0}.board{width:100%;height:100%;border-radius:14px}.board-top{padding:8px 10px;font-size:9px}.studio-foot{padding:7px 10px;font-size:9px}.ingredients,.stats{display:none;position:fixed;z-index:25;left:8px;right:8px;bottom:calc(145px + env(safe-area-inset-bottom));width:auto;height:min(58dvh,530px);padding:16px;border-color:#fdad6c77;box-shadow:0 -15px 55px #0009;background:#222d26f5;backdrop-filter:blur(18px)}body[data-tools=paint] .ingredients{display:block}body[data-tools=stats] .stats{display:block}#mobileTools{display:flex;position:fixed;bottom:env(safe-area-inset-bottom,0px);left:0;right:0;height:49px;z-index:30;background:#171f1a;border-top:1px solid var(--line);padding:0 5px}#mobileTools button{flex:1;min-height:44px;font-size:12px;color:var(--muted)}#mobileTools button.active{color:var(--ink)}.cook-bar{left:8px;right:8px;bottom:calc(55px + env(safe-area-inset-bottom));height:88px;padding:7px 10px;gap:10px}.cook-bar .heat-info{display:none}.temperature{flex:none;gap:8px}.dial-wrap{width:68px;height:68px}#dial{width:66px;height:66px;border-width:4px}#temperatureValue{font-size:21px}.temperature-caption{font-size:10px;width:30px;line-height:1.5}.start-area{min-width:0;flex:1;width:auto}#start{height:68px;padding:12px 16px}#start img{width:105px;height:auto}#start span{font-size:32px}.ingredients button,.stats button,.ingredients input:not([type=range]),.stats select{min-height:44px}#palette{grid-template-columns:repeat(8,1fr);gap:2px}#palette button{width:100%;height:44px;border-radius:10px}#recentColors button{width:44px;height:44px}.brush-kinds{grid-template-columns:repeat(3,1fr)}.topping-categories{flex-wrap:wrap}.mini-toppings{grid-template-columns:repeat(3,1fr)}#openToppingPainter{width:100%;margin-top:10px}.stats .preview-wrap{height:220px}#toast{bottom:155px}#pickerPreview{bottom:170px;right:12px}#garageDialog{width:96vw;padding:18px}#saveSlots{grid-template-columns:repeat(2,1fr)}#garageDialog h2{font-size:16px}#result .result-card{padding:18px}#toppingPainter{padding:16px}#toppingPainter button{margin:2px;font-size:11px}}
@media(max-width:900px) and (orientation:landscape){header{height:44px}.workshop{height:calc(100dvh - 94px);margin-right:180px}.cook-bar{left:auto;right:8px;top:52px;bottom:55px;width:172px;height:auto;flex-direction:column;justify-content:center;gap:18px}.temperature{justify-content:center}.temperature-caption{width:auto}.start-area{flex:0;width:100%}#start{height:62px;padding:12px}#start img{width:90px}.ingredients,.stats{left:auto;right:8px;top:48px;bottom:55px;width:360px;max-width:65vw;height:auto}.stats .preview-wrap{height:140px}#palette button{min-height:44px}#toppingCanvas{width:150px;height:150px}#toppingPainter h2,#toppingPainter p{margin:4px 0}#announcer{max-width:45%;left:50%;transform:translateX(-50%)}#battleDialog .battle-heading{padding:2px 10px}#battleDialog #aimHelp{top:90px}#battleDialog .result-card{max-width:600px;width:90vw;padding:10px}#clipPreview{max-height:110px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

select,#bladeType,#cpuLevel,#stageModel,input[type=number],input[type=text]{background:#1c231e!important;color:var(--ink)!important}select option{background:#1c231e;color:#fff0d4}#islandWarning[hidden],#pickerPreview[hidden]{display:none!important}

main{width:100%}.canvas-wrap{max-height:none!important}#editor{max-height:none!important;max-width:none!important}
#battleDialog #arena{max-height:none!important;height:100%!important;min-height:0!important}#battleDialog .arena-wrap{max-height:none!important}

.aim-quick{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px}.aim-quick button{min-height:44px;padding:5px;background:#74684944;color:#fff0d4;font-size:11px}.aim-quick small{width:100%;font-size:10px;color:#ffa873}.launch-settings label{display:block;margin:12px 0}.launch-settings select{width:100%;min-height:44px}#selfDestructCall{position:absolute;inset:35% 0 auto;z-index:8;text-align:center;font-size:clamp(28px,6vw,64px);font-weight:900;color:#ffb43b;text-shadow:3px 3px #6f200e}#selfDestructCall[hidden]{display:none}#battleDialog .aim-quick button{padding:4px 8px}@media(max-height:500px){.aim-quick small{display:none}.aim-quick button{min-height:36px}#launchControls{bottom:50px!important;padding:5px!important}.aim-quick{gap:3px}}

.shape-panel{padding:12px 0}.shape-panel select{width:100%;min-height:44px;margin:4px 0}.shape-panel label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 0}.shape-panel input[type=range]{width:110px}.shape-panel input[type=color]{width:42px;height:36px}.shape-panel input[type=number]{width:64px}.shape-panel p{font-size:10px;line-height:1.7;color:var(--muted)}.shape-actions{display:flex;flex-wrap:wrap;gap:4px}.shape-actions button{min-height:44px;border:1px solid var(--line);padding:7px}#shapeList{height:90px}

#launchControls{display:grid;grid-template-columns:1fr 1fr auto}#launchControls[hidden]{display:none!important}#launchControls .aim-quick{display:flex!important;flex-direction:row!important;align-items:center;grid-column:1/-1}#launchControls .aim-quick small{flex-basis:100%}@media(max-width:600px){#battleDialog #launchControls{grid-template-columns:1fr 1fr}#launchButton{grid-column:1/-1}}

.coating-panel,.topping-pen{padding:12px 0}.coating-panel p,.topping-pen p,#hsvValue{font-size:10px;color:var(--muted)}.topping-pen select{width:100%;min-height:44px}.topping-pen label{display:block;margin:8px 0}.topping-pen input[type=range]{width:100%}#copyColor{font-size:10px;min-height:36px}
