tarinai/css/base.css

688 lines
18 KiB
CSS
Raw Normal View History

2026-06-22 02:03:19 +09:00
/* CSS split file; preserve manifest load order. */
2026-06-21 14:09:35 +09:00
@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&family=M+PLUS+Rounded+1c:wght@400;500;700&family=Yomogi&display=swap");
:root {
--bg: #f7f5ec;
--panel: rgba(255,251,245,0.90);
--ink: #2a241d;
--muted: #756a5e;
--line: rgba(84, 68, 48, 0.18);
--accent: #9ce84b;
--accent-2: #f5a8b7;
--danger: #b64545;
--shadow: 0 18px 50px rgba(64, 48, 32, 0.14);
--radius: 18px;
--bubble-font: "Yomogi", "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, sans-serif;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
background:
radial-gradient(circle at 12% 0%, rgba(168, 228, 113, 0.28), transparent 33%),
radial-gradient(circle at 88% 8%, rgba(255, 222, 147, 0.24), transparent 28%),
radial-gradient(circle at 82% 90%, rgba(126, 181, 120, 0.16), transparent 34%),
linear-gradient(180deg, #dff0ff 0%, #edf8ff 12%, #f9f6eb 46%, var(--bg) 100%);
color: var(--ink);
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
button {
font: inherit;
color: inherit;
}
.loading-panel {
width: min(420px, 92vw);
padding: 24px 22px;
border-radius: 24px;
border: 1px solid rgba(84, 68, 48, 0.16);
background: rgba(255, 252, 246, 0.92);
box-shadow: 0 18px 48px rgba(64, 48, 32, 0.16);
text-align: center;
}
#app {
width: min(1480px, 100vw);
margin: 0 auto;
padding: 18px;
position: relative;
}
.topbar {
display: flex;
justify-content: space-between;
2026-06-30 22:30:37 +09:00
gap: 14px;
2026-06-21 14:09:35 +09:00
align-items: center;
2026-06-30 22:30:37 +09:00
flex-wrap: nowrap;
2026-06-21 14:09:35 +09:00
margin-bottom: 16px;
}
.top-left {
display: flex;
align-items: center;
2026-06-30 22:30:37 +09:00
gap: 10px;
flex: 1 1 auto;
2026-06-21 14:09:35 +09:00
min-width: 0;
}
.brand {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
min-width: 0;
}
.room-link {
text-decoration: none;
white-space: nowrap;
background: rgba(255,255,255,0.86);
}
h1 {
margin: 0;
font-size: clamp(24px, 3.4vw, 42px);
letter-spacing: 0.03em;
white-space: nowrap;
}
.top-actions {
display: flex;
2026-06-30 22:30:37 +09:00
gap: 6px;
flex: 0 0 auto;
flex-wrap: nowrap;
2026-06-21 14:09:35 +09:00
justify-content: flex-end;
2026-06-30 22:30:37 +09:00
align-items: center;
white-space: nowrap;
2026-06-21 14:09:35 +09:00
}
.btn, .tool {
border: 1px solid var(--line);
background: rgba(255,255,255,0.76);
border-radius: 999px;
2026-06-30 22:30:37 +09:00
padding: 8px 11px;
2026-06-21 14:09:35 +09:00
cursor: pointer;
box-shadow: 0 4px 14px rgba(80,60,40,0.06);
transition: transform 130ms ease, background 130ms ease, border-color 130ms ease;
user-select: none;
}
.btn:hover, .tool:hover { transform: translateY(-1px); background: #fff; }
.btn:active, .tool:active { transform: translateY(1px); }
.btn.primary {
background: linear-gradient(180deg, #a9ef5d, #8bdc3f);
border-color: rgba(89, 128, 47, 0.28);
}
.btn.danger {
color: #7a2828;
}
.layout {
display: grid;
grid-template-columns: minmax(520px, 1fr) 380px;
gap: 16px;
align-items: stretch;
}
.stage-wrap {
position: relative;
background: linear-gradient(180deg, rgba(255,255,255,0.46), rgba(246, 240, 228, 0.56));
border: 1px solid rgba(84, 68, 48, 0.12);
border-radius: calc(var(--radius) + 8px);
overflow: hidden;
box-shadow: 0 16px 42px rgba(42, 45, 80, 0.12), inset 0 0 0 1px rgba(255,255,255,0.24);
min-height: var(--field-min-height, 620px);
}
#gameCanvas {
width: 100%;
height: var(--field-height, calc(100vh - 140px));
min-height: var(--field-min-height, 620px);
display: block;
cursor: crosshair;
background: linear-gradient(180deg, #cfe3d3, #d9d0ad);
}
.field-dialog {
position: fixed;
inset: 0;
z-index: 30;
display: grid;
place-items: center;
padding: 18px;
background: rgba(34, 29, 22, 0.38);
backdrop-filter: blur(3px);
}
.field-dialog.hidden { display: none; }
.field-dialog-panel {
width: min(440px, 100%);
max-height: calc(100vh - 36px);
overflow: auto;
2026-06-24 18:49:17 +09:00
border-radius: 12px;
2026-06-21 14:09:35 +09:00
padding: 16px;
background: rgba(255, 252, 245, 0.96);
border: 1px solid rgba(84,68,48,0.16);
box-shadow: 0 18px 46px rgba(40, 32, 24, 0.22);
}
.field-dialog-panel h2 {
margin: 0 0 12px;
font-size: 17px;
}
.field-choice-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.field-choice {
min-height: 74px;
border: 1px solid rgba(84,68,48,0.16);
border-radius: 12px;
background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(241,235,221,0.72));
cursor: pointer;
color: var(--ink);
}
.field-choice:hover { border-color: rgba(112,178,66,0.45); }
2026-06-30 10:57:06 +09:00
.field-choice.active,
.field-choice[aria-pressed="true"] {
border-color: rgba(112,178,66,0.72);
box-shadow: 0 0 0 2px rgba(112,178,66,0.18), inset 0 0 0 1px rgba(255,255,255,0.64);
background: linear-gradient(180deg, rgba(248,255,240,0.96), rgba(231,246,210,0.82));
}
2026-06-21 14:09:35 +09:00
.field-choice strong, .field-choice span { display: block; }
.field-choice strong { font-size: 15px; }
.field-choice span { margin-top: 4px; color: var(--muted); font-size: 12px; }
2026-06-30 10:57:06 +09:00
.field-dialog-lead {
margin: -4px 0 12px;
color: var(--muted);
font-size: 12px;
line-height: 1.5;
}
.field-dialog-section-title {
margin: 12px 0 7px;
font-size: 12px;
font-weight: 700;
color: rgba(75,62,43,0.78);
}
.reset-dialog-panel { width: min(760px, 100%); }
.reset-preset-choice-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.reset-preset-choice-grid .field-choice { min-height: 66px; padding: 7px 5px; }
2026-06-21 14:09:35 +09:00
.field-dialog-actions {
margin-top: 12px;
display: flex;
justify-content: flex-end;
gap: 8px;
}
.archive-reset-dialog-panel {
width: min(420px, 100%);
}
.archive-reset-actions {
justify-content: space-between;
gap: 10px;
}
.archive-reset-actions .btn {
min-width: 132px;
}
.ecology-dialog-panel {
width: min(760px, 100%);
max-height: calc(100vh - 36px);
overflow-y: auto;
overscroll-behavior: auto;
}
.ecology-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.ecology-card {
display: grid;
grid-template-columns: 72px minmax(0, 1fr);
gap: 10px;
align-items: center;
padding: 10px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(243,237,225,0.76));
border: 1px solid rgba(84,68,48,0.12);
}
.ecology-card img {
width: 72px;
height: 72px;
object-fit: contain;
filter: drop-shadow(0 8px 18px rgba(56, 44, 32, 0.10));
}
.ecology-card strong {
display: block;
margin-bottom: 4px;
font-size: 15px;
}
.ecology-card p {
margin: 0;
color: var(--muted);
font-size: 12px;
line-height: 1.40;
}
.toast {
position: absolute;
left: 50%;
bottom: 22px;
transform: translateX(-50%);
background: rgba(42,36,29,0.86);
color: white;
padding: 10px 16px;
border-radius: 999px;
2026-06-24 18:49:17 +09:00
font-size: 12px;
2026-06-21 14:09:35 +09:00
pointer-events: none;
opacity: 1;
transition: opacity 200ms ease, transform 200ms ease;
}
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }
.panel {
display: flex;
flex-direction: column;
gap: 12px;
height: calc(100vh - 120px);
max-height: calc(100vh - 120px);
overflow-y: auto;
overflow-x: hidden;
padding-right: 3px;
}
.card {
position: relative;
background: var(--panel);
border: 1px solid var(--line);
border-radius: var(--radius);
padding: 14px;
box-shadow: 0 10px 30px rgba(64, 48, 32, 0.08);
backdrop-filter: blur(10px);
position: relative;
}
.card h2 {
margin: 0 0 12px;
font-size: 17px;
letter-spacing: 0.03em;
}
.tool-grid {
display: grid;
2026-06-24 18:49:17 +09:00
grid-template-columns: repeat(3, minmax(0,1fr));
2026-06-26 19:04:32 +09:00
gap: 6px;
2026-06-21 14:09:35 +09:00
}
.tool {
2026-06-26 19:04:32 +09:00
--tool-main-icon-size: 28px;
--tool-icon-zoom: 1.05;
2026-06-24 18:49:17 +09:00
--tool-watermark-size: 0px;
border-radius: 12px;
display: grid;
2026-06-26 19:04:32 +09:00
grid-template-columns: 29px minmax(0,1fr);
2026-06-25 22:30:35 +09:00
align-items: center;
justify-items: stretch;
2026-06-26 19:04:32 +09:00
gap: 3px;
padding: 4px 4px 4px 2px;
min-height: 47px;
font-size: 10.2px;
line-height: 1.06;
2026-06-24 18:49:17 +09:00
letter-spacing: -0.015em;
2026-06-25 22:30:35 +09:00
text-align: left;
2026-06-21 14:09:35 +09:00
position: relative;
overflow: hidden;
background-repeat: no-repeat;
2026-06-25 22:30:35 +09:00
background-position: left 3px center, center;
2026-06-24 18:49:17 +09:00
background-size: var(--tool-main-icon-size) var(--tool-main-icon-size), cover;
2026-06-21 14:09:35 +09:00
}
.tool::before {
content: "";
position: absolute;
2026-06-26 19:04:32 +09:00
left: 3px;
2026-06-25 22:30:35 +09:00
top: 50%;
2026-06-24 18:49:17 +09:00
width: var(--tool-main-icon-size);
height: var(--tool-main-icon-size);
2026-06-25 22:30:35 +09:00
transform: translateY(-50%) scale(var(--tool-icon-zoom, 1));
transform-origin: center;
2026-06-21 14:09:35 +09:00
background: var(--tool-icon) center / contain no-repeat;
2026-06-24 18:49:17 +09:00
opacity: 0.98;
z-index: 1;
2026-06-21 14:09:35 +09:00
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
}
.tool::after {
content: "";
position: absolute;
inset: 0;
2026-06-24 18:49:17 +09:00
background: none;
display: none;
2026-06-21 14:09:35 +09:00
pointer-events: none;
2026-06-24 18:49:17 +09:00
z-index: 0;
}
.tool-label {
position: relative;
z-index: 2;
display: block;
2026-06-25 22:30:35 +09:00
grid-column: 2;
align-self: center;
justify-self: start;
2026-06-24 18:49:17 +09:00
max-width: 100%;
min-width: 0;
overflow-wrap: anywhere;
2026-06-26 19:04:32 +09:00
font-size: 10.2px;
line-height: 1.10;
2026-06-24 18:49:17 +09:00
font-weight: 700;
2026-06-26 19:04:32 +09:00
max-width: 5.05em;
word-break: normal;
overflow-wrap: anywhere;
2026-06-24 18:49:17 +09:00
text-shadow: 0 1px 0 rgba(255,255,255,0.62);
2026-06-21 14:09:35 +09:00
}
2026-06-23 22:39:20 +09:00
2026-06-26 19:04:32 +09:00
.tool.tool-has-canvas-icon { --tool-icon: none; grid-template-columns: 29px minmax(0,1fr); min-height: 47px; padding-top: 4px; }
2026-06-25 14:51:58 +09:00
2026-06-23 22:39:20 +09:00
.tool.tool-has-canvas-icon::before,
.tool.tool-has-canvas-icon::after { background: none !important; }
.tool-sprite-preview {
position: absolute;
2026-06-26 19:04:32 +09:00
left: 1px;
2026-06-25 22:30:35 +09:00
top: 50%;
2026-06-26 19:04:32 +09:00
width: 30px;
height: 30px;
2026-06-25 22:30:35 +09:00
transform: translateY(-50%);
2026-06-23 22:39:20 +09:00
pointer-events: none;
2026-06-24 18:49:17 +09:00
z-index: 1;
2026-06-23 22:39:20 +09:00
filter: drop-shadow(0 2px 3px rgba(52,40,26,0.12));
}
2026-06-26 19:04:32 +09:00
.tool[data-tool="giant_drug"] .tool-sprite-preview { width: 39px; height: 39px; left: -4px; }
2026-06-25 22:30:35 +09:00
.tool[data-tool="dwarf_drug"] .tool-sprite-preview,
2026-06-26 19:04:32 +09:00
.tool[data-tool="oshibyo"] .tool-sprite-preview { width: 22px; height: 22px; left: 5px; }
2026-06-25 22:30:35 +09:00
.tool[data-tool="poke"], .tool[data-tool="water_hose"] { --tool-icon-zoom: 0.92; }
2026-06-21 14:09:35 +09:00
.tool[data-tool="observe"] { --tool-icon: url("../assets/ui/tool_observe.webp"); }
.tool[data-tool="zunchi"] { --tool-icon: url("../assets/ui/tool_zunchi.webp"); }
.tool[data-tool="sweet"] { --tool-icon: url("../assets/ui/tool_sweet.webp"); }
.tool[data-tool="grass"] { --tool-icon: url("../assets/ui/tool_grass.webp"); }
.tool[data-tool="stone"] { --tool-icon: url("../assets/ui/tool_stone.webp"); }
.tool[data-tool="genkotsu"] { --tool-icon: url("../assets/ui/tool_genkotsu.webp"); }
.tool[data-tool="firecracker"] { --tool-icon: url("../assets/ui/tool_firecracker.webp"); }
2026-06-27 21:50:05 +09:00
.tool[data-tool="shoot"] { --tool-icon: url("../assets/ui/tool_shoot.png"); --tool-icon-zoom: 1.48; }
2026-06-21 14:09:35 +09:00
.tool[data-tool="fence_v"] { --tool-icon: url("../assets/ui/tool_fence_v.webp"); }
.tool[data-tool="fence_h"] { --tool-icon: url("../assets/ui/tool_fence_h.webp"); }
.tool[data-tool="bed"] { --tool-icon: url("../assets/ui/tool_bed.webp"); }
.tool[data-tool="love_mochi"] { --tool-icon: url("../assets/ui/tool_love_mochi.webp"); }
.tool[data-tool="fight_mochi"] { --tool-icon: url("../assets/ui/tool_fight_mochi.webp"); }
2026-06-23 22:39:20 +09:00
.tool[data-tool="signboard"] { --tool-icon: url("../assets/ui/tool_signboard.webp"); }
.tool[data-tool="duplicator"] { --tool-icon: url("../assets/ui/tool_duplicator.webp"); }
.tool[data-tool="pushpin"] { --tool-icon: url("../assets/ui/tool_pushpin.webp"); }
.tool[data-tool="oshibyo"] { --tool-icon: url("../assets/ui/tool_oshibyo.webp"); }
2026-06-22 02:03:19 +09:00
/* Generated parameter item tool icons. */
2026-07-01 14:41:05 +09:00
.tool[data-tool="laxative"] { --tool-icon: url("../assets/ui/tool_laxative.webp"); }
.tool[data-tool="protein"] { --tool-icon: url("../assets/ui/tool_protein.webp"); }
.tool[data-tool="niteropu"] { --tool-icon: url("../assets/ui/tool_niteropu.webp"); }
.tool[data-tool="ammo"] { --tool-icon: url("../assets/ui/tool_ammo.webp"); }
.tool[data-tool="mystery_drug"] { --tool-icon: url("../assets/ui/tool_mystery_drug.webp"); }
.tool[data-tool="mercury"] { --tool-icon: url("../assets/ui/tool_mercury.webp"); }
.tool[data-tool="giant_drug"] { --tool-icon: url("../assets/ui/tool_giant_drug.webp"); }
.tool[data-tool="dwarf_drug"] { --tool-icon: url("../assets/ui/tool_dwarf_drug.webp"); }
.tool[data-tool="zunda_juice"] { --tool-icon: url("../assets/ui/tool_zunda_juice.webp"); }
2026-06-23 22:39:20 +09:00
.signboard-editor {
position: fixed;
inset: 0;
z-index: 42;
display: grid;
place-items: center;
padding: 18px;
background: rgba(34, 29, 22, 0.34);
backdrop-filter: blur(3px);
}
.signboard-editor.hidden { display: none; }
.signboard-editor-panel {
2026-06-24 17:39:44 +09:00
width: min(220px, calc(100vw - 28px));
2026-06-24 18:49:17 +09:00
border-radius: 12px;
2026-06-23 22:39:20 +09:00
padding: 14px;
background: linear-gradient(180deg, rgba(255,253,247,0.98), rgba(245,237,221,0.96));
border: 1px solid rgba(94, 70, 42, 0.20);
box-shadow: 0 22px 60px rgba(36, 28, 20, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
}
.signboard-editor-titlebar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 0 0 10px;
padding-bottom: 8px;
border-bottom: 1px solid rgba(94, 70, 42, 0.13);
}
.signboard-editor-titlebar h2 {
margin: 0;
font-size: 16px;
letter-spacing: .03em;
}
.signboard-editor-close {
width: 30px;
height: 30px;
border-radius: 999px;
border: 1px solid rgba(84,68,48,0.16);
background: rgba(255,255,255,0.72);
color: var(--ink);
font-size: 19px;
2026-06-22 02:03:19 +09:00
line-height: 1;
2026-06-23 22:39:20 +09:00
cursor: pointer;
}
.signboard-editor-close:hover { background: rgba(255,248,232,0.96); }
#signboardEditorText {
2026-06-24 17:39:44 +09:00
width: 7.4em;
max-width: 100%;
2026-06-23 22:39:20 +09:00
box-sizing: border-box;
2026-06-24 17:39:44 +09:00
display: block;
margin: 0 auto;
2026-06-24 13:48:22 +09:00
resize: none;
2026-06-23 22:39:20 +09:00
min-height: 88px;
2026-06-24 13:48:22 +09:00
max-height: 88px;
overflow: hidden;
white-space: pre;
2026-06-23 22:39:20 +09:00
border-radius: 12px;
border: 1px solid rgba(84,68,48,0.18);
background: rgba(255,255,255,0.84);
padding: 10px 11px;
color: var(--ink);
2026-06-24 13:48:22 +09:00
font: 15px/1.55 ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
letter-spacing: 0.03em;
2026-06-23 22:39:20 +09:00
outline: none;
2026-06-22 02:03:19 +09:00
}
2026-06-23 22:39:20 +09:00
#signboardEditorText:focus {
border-color: rgba(112,178,66,0.54);
box-shadow: 0 0 0 3px rgba(112,178,66,0.14);
}
.signboard-editor-meta {
display: flex;
2026-06-24 17:39:44 +09:00
flex-wrap: wrap;
gap: 2px 8px;
2026-06-23 22:39:20 +09:00
justify-content: space-between;
color: var(--muted);
font-size: 12px;
margin: 6px 2px 0;
}
.signboard-editor-actions {
display: flex;
2026-06-24 17:39:44 +09:00
flex-wrap: wrap;
justify-content: center;
2026-06-23 22:39:20 +09:00
gap: 8px;
margin-top: 12px;
}
2026-06-25 14:51:58 +09:00
2026-06-29 21:02:04 +09:00
.robot-cleaner-editor-panel { width: min(300px, calc(100vw - 28px)); }
.robot-cleaner-editor-help {
color: var(--muted);
font-size: 12px;
line-height: 1.45;
margin: 0 2px 10px;
}
.robot-cleaner-targets {
display: grid;
gap: 8px;
margin: 8px 0 2px;
}
.robot-cleaner-targets label {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-radius: 10px;
background: rgba(255,255,255,0.58);
border: 1px solid rgba(84,68,48,0.11);
cursor: pointer;
user-select: none;
}
.robot-cleaner-targets input { accent-color: #70b242; }
2026-06-25 14:51:58 +09:00
/* v16.07.08: right menu fixed quick tabs */
.panel-quick-tabs {
position: sticky;
top: 0;
z-index: 12;
display: grid;
2026-06-28 13:40:41 +09:00
grid-template-columns: repeat(6, minmax(0, 1fr));
2026-06-25 14:51:58 +09:00
gap: 6px;
padding: 8px 4px 9px;
margin: -2px 0 2px;
background: linear-gradient(180deg, rgba(244, 250, 247, 0.96), rgba(244, 250, 247, 0.78));
border-bottom: 1px solid rgba(102, 169, 215, 0.34);
box-shadow: 0 8px 16px rgba(79, 103, 121, 0.10);
backdrop-filter: blur(8px);
}
.panel-quick-tabs button {
min-width: 0;
border: 1px solid rgba(102, 169, 215, 0.34);
border-radius: 999px;
padding: 7px 5px;
background: rgba(255,255,255,0.76);
color: var(--ink);
font-size: 11px;
line-height: 1.1;
font-weight: 700;
cursor: pointer;
box-shadow: 0 3px 9px rgba(68, 92, 110, 0.08);
}
.panel-quick-tabs button:hover,
.panel-quick-tabs button.active {
background: #efffde;
border-color: rgba(103,178,44,0.46);
}
2026-06-26 12:46:32 +09:00
.rotator-editor {
position: fixed;
inset: 0;
z-index: 43;
display: grid;
place-items: center;
padding: 18px;
background: rgba(34, 29, 22, 0.34);
backdrop-filter: blur(3px);
}
.rotator-editor.hidden { display: none; }
.rotator-editor-panel {
width: min(620px, calc(100vw - 28px));
border-radius: 14px;
padding: 14px;
background: linear-gradient(180deg, rgba(255,253,247,0.98), rgba(245,237,221,0.97));
border: 1px solid rgba(94, 70, 42, 0.20);
box-shadow: 0 22px 60px rgba(36, 28, 20, 0.28), inset 0 1px 0 rgba(255,255,255,0.72);
}
.rotator-editor-titlebar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px solid rgba(94, 70, 42, 0.13);
}
.rotator-editor-titlebar h2 { margin: 0; font-size: 16px; letter-spacing: .03em; }
.rotator-editor-close {
width: 30px;
height: 30px;
border-radius: 999px;
border: 1px solid rgba(84,68,48,0.16);
background: rgba(255,255,255,0.72);
color: var(--ink);
font-size: 19px;
line-height: 1;
cursor: pointer;
}
.rotator-editor-close:hover { background: rgba(255,248,232,0.96); }
.rotator-editor-controls {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
margin-bottom: 8px;
}
.rotator-editor-controls label {
display: grid;
grid-template-columns: auto 1fr 72px auto;
align-items: center;
gap: 8px;
font-size: 13px;
color: var(--ink);
}
.rotator-editor-controls input[type="number"] {
width: 72px;
box-sizing: border-box;
border-radius: 8px;
border: 1px solid rgba(84,68,48,0.18);
background: rgba(255,255,255,0.84);
padding: 4px 6px;
}
.rotator-editor-tools {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 8px;
}
.rotator-editor-tools button {
border: 1px solid rgba(84,68,48,0.16);
background: rgba(255,255,255,0.74);
color: var(--ink);
border-radius: 999px;
padding: 5px 10px;
font-size: 12px;
cursor: pointer;
}
.rotator-editor-tools button.active {
background: rgba(137, 101, 198, 0.18);
border-color: rgba(112, 80, 170, 0.38);
font-weight: 700;
}
#rotatorCanvas {
width: 100%;
height: min(58vh, 360px);
display: block;
border-radius: 12px;
border: 1px solid rgba(84,68,48,0.20);
background: #f7f3ea;
touch-action: none;
cursor: crosshair;
}
.rotator-editor-hint {
margin: 7px 2px 0;
color: var(--muted);
font-size: 12px;
}
.rotator-editor-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 12px;
}
@media (max-width: 560px) {
.rotator-editor-panel { padding: 10px; }
.rotator-editor-controls label { grid-template-columns: 1fr; align-items: stretch; }
#rotatorCanvas { height: 320px; }
}