/* daml（脱出ML）のゲーム画面。public/js/daml/app.js と組で使う */
.es-outer { max-width: 820px; margin: 0 auto; padding: 0 1rem; }
.breadcrumb { font-size: 0.8rem; color: var(--color-text-muted, #8a8a8a); margin-bottom: 1rem; }
.breadcrumb a { color: var(--color-primary, #2b4b6e); text-decoration: none; }
.es-title { font-family: "Shippori Mincho", serif; color: var(--color-primary, #2b4b6e); font-size: 1.8rem; margin: 0 0 0.6rem; letter-spacing: 0.04em; }
.es-intro { line-height: 1.85; margin: 0 0 0.8rem; }
.es-dev-note { background: #fff7e6; border: 1px solid #e8c98a; border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 0.86rem; margin-bottom: 0.8rem; }
.es-help { background: #fff; border: 1px solid #e5e0d8; border-radius: 8px; padding: 0.6rem 1rem; margin-bottom: 1rem; }
.es-help summary { cursor: pointer; font-weight: 700; color: var(--color-primary, #2b4b6e); }
.es-help ul { margin: 0.6rem 0 0.2rem; padding-left: 1.3rem; line-height: 1.8; font-size: 0.92rem; }
.es-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin-bottom: 0.5rem; }
.es-bar strong { font-family: "Shippori Mincho", serif; color: var(--color-primary, #2b4b6e); font-size: 1.05rem; }
.es-bar-right { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--color-text-light, #5a5a5a); }
.es-view { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #d8d0c2; border-radius: 8px; background: #efe8da; user-select: none; -webkit-user-select: none; }
.es-view img { position: absolute; display: block; pointer-events: none; }
.es-bg { left: 0; top: 0; width: 100%; height: 100%; }
.es-hs { position: absolute; padding: 0; margin: 0; background: transparent; border: 2px solid transparent; border-radius: 6px; cursor: pointer; }
.es-hs:hover, .es-hs:focus-visible { border-color: rgba(248, 246, 241, 0.9); box-shadow: 0 0 0 2px rgba(43, 75, 110, 0.55); outline: none; }
.es-view.has-item .es-hs:hover, .es-view.has-item .es-hs:focus-visible { box-shadow: 0 0 0 2px rgba(192, 76, 56, 0.75); }
.es-exit { position: absolute; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.8rem; font-weight: 700; color: #fff; background: rgba(45, 45, 45, 0.55); border: none; border-radius: 6px; padding: 0.45rem 0.6rem; cursor: pointer; z-index: 2; }
.es-exit:hover, .es-exit:focus-visible { background: rgba(43, 75, 110, 0.9); }
.es-exit-text { margin: 0 0.25em; }
.es-exit-left { left: 6px; }
.es-exit-right { right: 6px; }
.es-exit-back { top: auto; bottom: 6px; left: 50%; transform: translateX(-50%); }
.es-exit-forward { top: 6px; left: 50%; transform: translateX(-50%); }
.es-msg { min-height: 3.6em; background: #fff; border: 1px solid #e5e0d8; border-radius: 8px; padding: 0.55rem 0.9rem; margin: 0.6rem 0; line-height: 1.75; font-size: 0.95rem; }
.es-msg p { margin: 0; }
.es-muted { color: var(--color-text-light, #5a5a5a); font-size: 0.85rem; }
.es-inv-head { font-size: 0.85rem; font-weight: 700; color: var(--color-text-light, #5a5a5a); margin: 0.2rem 0 0.3rem; }
.es-inv { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 4.6rem; align-items: flex-start; }
.es-item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: 5.2rem; padding: 0.35rem 0.2rem; font: inherit; font-size: 0.72rem; background: #fff; border: 2px solid #e5e0d8; border-radius: 8px; cursor: pointer; }
.es-item img { width: 40px; height: 40px; }
.es-item[aria-pressed="true"] { border-color: var(--color-accent, #c04c38); background: #fdf1ee; }
.es-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0; }
.es-btn { font: inherit; font-size: 0.85rem; border: 1px solid var(--color-primary, #2b4b6e); background: #fff; color: var(--color-primary, #2b4b6e); border-radius: 6px; padding: 0.35rem 0.9rem; cursor: pointer; }
.es-btn.primary { background: var(--color-primary, #2b4b6e); color: #fff; }
.es-btn.small { padding: 0.15rem 0.6rem; font-size: 0.78rem; }
.es-save-note { font-size: 0.8rem; color: var(--color-accent, #c04c38); margin: 0.4rem 0 0; }
.es-modal { position: fixed; inset: 0; z-index: 50; background: rgba(30, 30, 30, 0.45); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.es-modal[hidden] { display: none; }
.es-modal-box { background: var(--color-bg, #f8f6f1); border-radius: 10px; width: 100%; max-width: 420px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.es-modal-box h2 { font-family: "Shippori Mincho", serif; color: var(--color-primary, #2b4b6e); font-size: 1.15rem; margin: 0 0 0.7rem; }
.es-modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.es-dials { display: flex; justify-content: center; gap: 0.5rem; }
.es-dial { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.es-dial button { font: inherit; width: 2.6rem; height: 2rem; border: 1px solid #b5ab9b; background: #fff; border-radius: 6px; cursor: pointer; }
.es-dial span { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; width: 2.6rem; text-align: center; background: #2d2d2d; color: #f8f6f1; border-radius: 4px; }
.es-cap { margin: 0 0 0.3rem; font-size: 0.75rem; color: var(--color-text-light, #5a5a5a); text-align: center; }
.es-seq { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 0.7rem; min-height: 2.4rem; }
.es-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.es-choice { padding: 0; border: none; background: none; cursor: pointer; }
.es-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.3rem; border: 1px solid #b5ab9b; border-radius: 6px; background: #fff; font-size: 1.2rem; font-weight: 700; color: #2d2d2d; box-sizing: border-box; }
.es-chip[style] { color: #fff; font-size: 0.8rem; text-shadow: 0 0 2px rgba(0, 0, 0, 0.6); }
.es-chip.empty { background: #eeeae3; border-style: dashed; }
.es-text { width: 100%; font: inherit; font-size: 1.1rem; padding: 0.4rem 0.5rem; box-sizing: border-box; }
.es-hints { margin: 0; padding-left: 1.3rem; line-height: 1.8; }
.es-credit { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #e5e0d8; font-size: 0.8rem; line-height: 1.8; color: var(--color-text-light, #5a5a5a); }
.es-credit h2 { font-size: 0.95rem; margin: 0 0 0.4rem; color: var(--color-text, #2d2d2d); }
@media (max-width: 640px) {
  .es-title { font-size: 1.5rem; }
  .es-exit { font-size: 1rem; padding: 0.5rem 0.45rem; }
  .es-exit-text { display: none; }
}
.es-exit.closed { opacity: 0.55; }
.es-dial span.wide { width: auto; min-width: 5.5rem; font-size: 1.1rem; padding: 0.2rem 0.4rem; }
.es-goal-title { font-weight: 700; margin: 0 0 0.4rem; }
.es-goal-list { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; margin-top: 0.5rem; }
.es-sub { font-size: 0.55em; color: var(--color-text-light, #5a5a5a); font-weight: 500; margin-left: 0.3em; }
