/* Keep account access beside the language switch on each game screen. */
#login-btn { order: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: #222a3a; color: var(--text); font-size: 14px; text-decoration: none; white-space: nowrap; }
#login-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#app > header { padding-right: 350px; }
#app > header:has(.author-gates) { padding-right: 12px; }
#app > header:has(.author-gates) .head-btns { display: flex; position: static; margin-left: auto; }
@media (max-width: 600px) {
  #app > header { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 8px; }
  #app > header .head-btns { position: static; align-self: flex-end; order: -1; }
  #app > header .brand { width: 100%; max-width: 100% !important; align-self: stretch; }
  #login-btn { padding-inline: 9px; font-size: 12px; }
  body.prestart:has(#start-intro:not(.hidden)) #app > header .brand { display: none; }
}
/* Menu entry for creating an Original Defense; styled like the neighbouring menu buttons. */
.menu-create-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(243,195,75,.55); border-radius: 999px; background: #222a3a; color: var(--text); font-weight: 700; text-align: center; text-decoration: none; }
.menu-create-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.original-defense-badge { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 8px 12px; border-left: 4px solid #f3c34b; border-radius: 6px; background: rgba(243,195,75,.1); text-align: left; }
.original-defense-badge span:first-child { color: #f3c34b; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.original-defense-badge strong { font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.original-defense-badge strong + span { font-size: 12px; opacity: .8; }
.original-defense-badge .original-defense-description { margin: 4px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
/* オリジナル防衛戦の参加者画面（版固定ランタイム）: 固定された style.css には結果画面の出典の配置（#251・#256）が無く、
   出典が結果のボタンに重なる。表示だけを今の通常版と同じ配置にそろえる（地図の領域の端、縦長では地図の上端）。 */
:root:has(meta[name="dtt-creator-runtime"]) body.end-open #stage-credit { position: relative; inset: auto; z-index: 1; grid-column: 1; grid-row: 1 / 3; align-self: end; justify-self: end; margin: 0 8px 4px; text-align: right; text-shadow: 0 0 3px rgba(0, 0, 0, 0.85); }
:root:has(meta[name="dtt-creator-runtime"]) body.end-open.result-stacked #stage-credit { grid-row: 2; align-self: start; margin: 4px 8px 0; }
/* 同じく固定ランタイムの参加者画面: スマホの文字 11px・タップ 44px（#233・#256 で通常版を直した分）を表示だけそろえる。 */
:root:has(meta[name="dtt-creator-runtime"]) .beta-feedback { display: block; width: fit-content; min-height: 44px; margin: 8px auto 0; padding: 10px 4px; box-sizing: border-box; line-height: 1.5; }
:root:has(meta[name="dtt-creator-runtime"]) .end-placement > summary { padding: 12px 0; line-height: 20px; }
:root:has(meta[name="dtt-creator-runtime"]) .end-details summary,
:root:has(meta[name="dtt-creator-runtime"]) .end-actions button,
:root:has(meta[name="dtt-creator-runtime"]) body.end-open .end-city-btn { min-height: 44px; }
:root:has(meta[name="dtt-creator-runtime"]) body.end-open .end-score-block span { font-size: 11px; }
:root:has(meta[name="dtt-creator-runtime"]) .end-actions button { padding-inline: 8px; }
@media (max-width: 800px), (max-height: 500px) and (max-width: 1000px) {
  :root:has(meta[name="dtt-creator-runtime"]) #dock .kind em { font-size: 12px; }
  :root:has(meta[name="dtt-creator-runtime"]) #dev-compact .dev-rp-line small { font-size: 11px; }
}
/* 題名は単語の途中で折り返さない（日本語は文節単位、行の長さをそろえる） */
.original-defense-badge strong, #start-intro #start-map-label { word-break: auto-phrase; text-wrap: balance; }
