/* Phase 2 で増えた画面(モード切替・マイめんこ・作成エディタ・完了)の見た目 */
.screen.top { justify-content: flex-start; }
.screen > * { flex-shrink: 0; }

.seg { display: flex; border: 2px solid #ffd34d; border-radius: 0.8rem; overflow: hidden; }
.seg button {
  font: inherit; font-size: 1.05rem; font-weight: 800; color: #ffd34d; background: transparent;
  border: none; padding: 0.5rem 1.8rem;
}
.seg button.on { background: #ffd34d; color: #3a1d05; }
.current span { color: #fff; font-weight: 800; }

#card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; width: 100%; }
.card-item { position: relative; background: rgba(255,255,255,0.07); border: 2px solid transparent; border-radius: 0.6rem; padding: 0.4rem 0.2rem; font: inherit; color: #fff; font-size: 0.6rem; }
.card-item.sel { border-color: #ffd34d; background: rgba(255, 211, 77, 0.18); }
.card-item canvas { width: 100%; height: auto; display: block; margin-bottom: 0.2rem; border-radius: 0.3rem; }
.card-item .del { position: absolute; top: -0.4rem; right: -0.4rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #c0392b; color: #fff; border: none; font-size: 0.8rem; line-height: 1.3rem; padding: 0; }

#editor { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; }
#editor[hidden] { display: none; }
#editor-canvas, #done-card { width: 8.4rem; height: auto; touch-action: none; cursor: grab; border-radius: 0.5rem; background: rgba(255,255,255,0.08); }
#done-card { width: 11rem; cursor: default; }
.slider { display: flex; align-items: center; gap: 0.4rem; width: 100%; font-size: 0.75rem; }
.slider .sl-name { width: 4.6rem; font-weight: 800; text-align: left; }
.slider small { font-size: 0.6rem; color: #e8d9a8; white-space: nowrap; }
.slider input { flex: 1; min-width: 0; accent-color: #ffd34d; }
.presets { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.presets button { font: inherit; font-size: 0.72rem; font-weight: 800; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); border-radius: 0.5rem; padding: 0.3rem 0.6rem; }
.stats { width: 100%; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.7rem; }
.stats div { display: flex; align-items: center; gap: 0.5rem; }
.stats span { width: 4.6rem; text-align: left; color: #e8d9a8; }
.stats i { flex: 1; height: 0.6rem; background: rgba(255,255,255,0.14); border-radius: 0.3rem; overflow: hidden; }
.stats b { display: block; height: 100%; background: #ffd34d; }
#name { width: 100%; font: inherit; font-size: 0.9rem; padding: 0.5rem 0.7rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); color: #fff; }
.done-name { font-size: 1.2rem; font-weight: 800; margin: 0; }
button.big.x { background: #000; color: #fff; box-shadow: 0 0.2rem 0 #444; border: 1px solid #555; }
