/* ゲームメーカー：編集画面（フォーム・マップ・素材えらびの窓） */
.gm-app { padding: 10px; }
.gm-top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.gm-top .gt-sub, .gm-top .btn-dl-rect { padding: 6px 12px; font-size: .92em; margin: 0; cursor: pointer; }
.gm-upl { cursor: pointer; display: inline-flex; align-items: center; }
.gm-title-show { font-weight: 800; color: #3d6b3d; margin-left: 4px; } .gm-status { font-size: .8em; color: #7a7a6a; }
.gm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gm-tabs .gt-sub, .gm-map-tabs .gt-sub, .gm-tools .gt-sub { padding: 5px 12px; font-size: .9em; }
.gm-tabs .gt-sub.on, .gm-map-tabs .gt-sub.on, .gm-tools .gt-sub.on { border-color: var(--green, #6aa56a); background: #e6f2dc; box-shadow: inset 0 0 0 1px var(--green, #6aa56a); }
.gm-body { height: min(78vh, 800px); min-height: 460px; overflow: auto; overscroll-behavior: contain; border: 1px solid #ddd5bf; border-radius: 10px; background: #fffdf6; padding: 12px 14px; box-sizing: border-box; }
.gm-body h2 { margin-top: 4px; }
.gm-body h3 { margin: 16px 0 6px; padding: 3px 10px; border-left: 5px solid #8fbf8f; background: #f3f8ec; font-size: 1.02em; }
.gm-body h4 { margin: 12px 0 4px; font-size: .98em; color: #3d6b3d; }
.gm-note { font-size: .86em; color: #6a6a5a; margin: 4px 0 8px; } .gm-note code, .gm-body code { background: #f1ece2; padding: 0 4px; border-radius: 4px; font-size: .92em; }
.gm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 14px; align-items: start; }
.gm-f { display: flex; flex-direction: column; gap: 3px; font-size: .88em; min-width: 0; } .gm-f > span { font-weight: 700; color: #4b4636; }
.gm-f input[type=text], .gm-f input[type=number], .gm-f input[type=search], .gm-f select, .gm-f textarea, .gm-body textarea { font: inherit; font-size: .95em; padding: 5px 8px; border: 1px solid #cfc8b4; border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; min-width: 0; }
.gm-s { max-width: 150px; } .gm-xs { max-width: 86px; } .gm-wide { grid-column: 1 / -1; }
.gm-rows { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.gm-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; padding: 8px; border: 1px solid #e4dcc0; border-radius: 10px; background: #fff; }
.gm-row.gm-wrap { align-items: center; }
.gm-row .gm-f { flex: 1 1 140px; } .gm-row .gm-f.gm-s { flex: 0 1 130px; } .gm-row .gm-f.gm-xs { flex: 0 1 80px; }
.gm-chk { display: inline-flex; align-items: center; gap: 4px; font-size: .88em; cursor: pointer; } .gm-chks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gm-del { font: inherit; border: 1px solid #e0b4b4; background: #fff5f5; border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.gm-sub { border: 1px solid #e4dcc0; border-radius: 10px; padding: 8px 12px; background: #fbf8ee; display: flex; flex-direction: column; gap: 6px; } .gm-sub h3 { margin-top: 0; }
.gm-pb { font: inherit; width: 74px; min-height: 74px; border: 2px dashed #b9b090; border-radius: 10px; background: #f7f3e6 repeating-conic-gradient(#eee8d6 0 25%, #fffdf6 0 50%) 0 0 / 14px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 3px; }
.gm-pb img { max-width: 62px; max-height: 56px; image-rendering: pixelated; } .gm-pb-e { font-size: 26px; color: #8a8060; } .gm-pb small { font-size: .7em; color: #5a5a4a; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 4px; }
.gm-start { text-align: center; } .gm-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; text-align: left; }
.gm-tpl { font: inherit; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 12px; border: 2px solid #cfc8b4; border-radius: 12px; background: #fff; cursor: pointer; }
.gm-tpl:hover { border-color: #6aa56a; background: #f3f8ec; } .gm-tpl img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; align-self: center; margin-bottom: 4px; }
.gm-tpl small { color: #fff; background: #6aa56a; border-radius: 999px; padding: 0 8px; font-weight: 700; } .gm-tpl span { font-size: .82em; color: #5a5a4a; }
/* マップ */
.gm-maps { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: 10px; }
.gm-map-side { grid-column: 1 / -1; } .gm-map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .gm-tools { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 4px; } .gm-map-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.gm-map-main { grid-column: 2 / 3; grid-row: 2; min-width: 0; } .gm-map-prop { grid-column: 1 / 2; grid-row: 2; border: 1px solid #e4dcc0; border-radius: 10px; padding: 8px 12px; background: #fff; height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.gm-map-scroll { height: 520px; overflow: auto; border: 2px solid #6b5ab0; border-radius: 10px; background: #0b0a1c; } #gm-mapcv { display: block; image-rendering: pixelated; cursor: crosshair; touch-action: none; }
@media (max-width: 860px) { .gm-maps { grid-template-columns: 1fr; } .gm-map-main, .gm-map-prop { grid-column: 1; grid-row: auto; } .gm-map-scroll { height: 380px; } .gm-map-prop { height: auto; max-height: 360px; } }
/* シーン */
.gm-scn { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; } .gm-scn-list { display: flex; flex-direction: column; gap: 5px; }
.gm-scn-i { font: inherit; text-align: left; border: 1px solid #cfc8b4; border-radius: 8px; background: #fff; padding: 5px 8px; cursor: pointer; display: flex; flex-direction: column; } .gm-scn-i.on { border-color: #6aa56a; background: #e6f2dc; } .gm-scn-i small { color: #6a6a5a; }
@media (max-width: 760px) { .gm-scn { grid-template-columns: 1fr; } .gm-scn-list { flex-direction: row; flex-wrap: wrap; } }
/* あそぶ */
.gm-playbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; } .gm-host { max-width: 960px; margin: 0 auto; }
/* 窓 */
.gm-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(30, 26, 14, .55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.gm-mbox { width: min(980px, 100%); height: min(86vh, 760px); background: #fffdf6; border: 3px solid #8fbf8f; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.gm-mhead { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f3f8ec; border-bottom: 1px solid #ddd5bf; flex: none; }
.gm-pk-top { display: flex; gap: 8px; padding: 8px 12px 0; flex: none; } .gm-pk-top input[type=search] { flex: 1; font: inherit; padding: 6px 10px; border: 1px solid #cfc8b4; border-radius: 8px; }
.gm-pk-cats { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px; max-height: 84px; overflow: auto; flex: none; } .gm-pk-cats button { font: inherit; font-size: .8em; padding: 2px 9px; border: 1px solid #cfc8b4; border-radius: 999px; background: #fff; cursor: pointer; } .gm-pk-cats button.on { background: #e6f2dc; border-color: #6aa56a; font-weight: 700; }
.gm-pk-grid { flex: 1 1 0; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 6px 12px; align-content: start; }
.gm-pk-i { font: inherit; border: 1px solid #e4dcc0; border-radius: 10px; background: #fff repeating-conic-gradient(#f4efe0 0 25%, #fff 0 50%) 0 0 / 12px 12px; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; } .gm-pk-i:hover { border-color: #6aa56a; }
.gm-pk-i img { width: 76px; height: 76px; object-fit: contain; image-rendering: pixelated; } .gm-pk-i span { font-size: .7em; line-height: 1.2; text-align: center; max-height: 2.4em; overflow: hidden; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 2px; }
.gm-pk-nav { padding: 6px 12px; text-align: center; flex: none; border-top: 1px solid #ddd5bf; font-size: .9em; }
.gm-imp { height: min(80vh, 700px); } .gm-imp > p, .gm-imp-st { padding: 6px 14px; margin: 0; } .gm-imp-body { flex: 1; min-height: 0; overflow: auto; padding: 0 14px 12px; } .gm-imp-body h4 { margin: 12px 0 4px; } .gm-imp-body h5 { margin: 8px 0 3px; color: #5a5a4a; }
.gm-imp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; } .gm-imp-i { font: inherit; text-align: left; border: 1px solid #cfc8b4; border-radius: 8px; background: #fff; padding: 6px 10px; cursor: pointer; display: flex; flex-direction: column; } .gm-imp-i:hover { border-color: #6aa56a; background: #f3f8ec; } .gm-imp-i img { width: 100%; height: 70px; object-fit: contain; image-rendering: pixelated; } .gm-imp-i small { color: #6a6a5a; }
.gm-bridge { position: fixed; left: -2000px; top: 0; width: 1100px; height: 800px; border: 0; visibility: hidden; }
.gm-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: rgba(40, 36, 24, .92); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: .92em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100001; max-width: 92vw; text-align: center; } .gm-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

.gm-mono { font-family: ui-monospace, Consolas, "MS Gothic", monospace !important; font-size: 13px !important; line-height: 1.25; white-space: pre; overflow: auto; }
