/* 回避型攻略掲示板: 書き込みダイアログ（2026-09-19）。書く箱（.kb__write）はそのまま中に入る */
.kbd { position: fixed; inset: 0; z-index: 1200; }
.kbd[hidden] { display: none !important; }
.kbd__bg { position: absolute; inset: 0; background: rgba(58, 42, 85, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.kbd__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; background: #fff8fc; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(58, 42, 85, .3); display: flex; flex-direction: column; animation: kbdUp .22s ease-out; }
@keyframes kbdUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kbd__sheet { animation: none; } }
.kbd__hd { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; position: relative; }
.kbd__grip { position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 2px; background: #e0c8ef; transform: translateX(-50%); }
.kbd__title { font-size: 14px; font-weight: 900; color: #7a3a8a; padding-top: 8px; }
.kbd__x { font-family: inherit; font-size: 15px; font-weight: 900; color: #a093b5; background: #fff; border: 1.5px solid #f2dcea; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; }
.kbd__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 12px calc(16px + env(safe-area-inset-bottom)); }
.kbd__body .kb__write { margin: 0; box-shadow: none; }
.kbd__body .kb__write .kb__wl { margin-top: 0; }
.kbd__reg { margin: 10px 0 0; background: #fff; border: 1.5px dashed #e0c8ef; border-radius: 14px; padding: 10px 12px; }
.kbd__regl { margin: 0 0 6px; font-size: 12.5px; font-weight: 900; color: #7a3a8a; }
.kbd__regf { display: flex; gap: 6px; }
.kbd__regi { flex: 1; min-width: 0; font-family: inherit; font-size: 15px; padding: 9px 12px; border: 1.5px solid #e0c8ef; border-radius: 999px; }
.kbd__regb { flex: none; font-family: inherit; font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #d65c9a, #8b6cc1); border: none; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.kbd__regb[disabled] { opacity: .6; }
.kbd__regn { margin: 6px 0 0; font-size: 11px; color: #a093b5; line-height: 1.6; }
html.kbd-open, html.kbd-open body { overflow: hidden; }
@media (min-width: 700px) {
	.kbd__sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; transform: translate(-50%, -50%); border-radius: 22px; }
	@keyframes kbdUp { from { transform: translate(-50%, -48%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
}
.kbd__toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1300; max-width: min(92vw, 520px); background: #3a2a55; color: #fff; font-size: 13px; line-height: 1.6; padding: 12px 16px; border-radius: 14px; box-shadow: 0 10px 28px rgba(58, 42, 85, .35); transition: opacity .5s; }
.kbd__toast.is-out { opacity: 0; }
