/* どどメンバーズ☆ */
.dmb-locked, .dmb-form-wrap, .dmb-gallery, .dmb-mat-info { --dmb-accent: #ff7a45; box-sizing: border-box; }
.dmb-locked *, .dmb-form-wrap *, .dmb-gallery * { box-sizing: border-box; }

/* 🔒 案内 */
.dmb-locked {
	position: relative; margin: 1.6em 0; padding: 26px 22px 22px; text-align: center;
	border: 1px dashed rgba(0,0,0,.22); border-radius: 14px;
	background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.05));
}
.dmb-locked-icon { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.dmb-locked-msg p { margin: 0 0 .5em; }
.dmb-locked-msg p:last-child { margin-bottom: 0; }
.dmb-locked-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.dmb-btn, a.dmb-btn, button.dmb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 8px 20px; border-radius: 10px; cursor: pointer;
	border: 1px solid rgba(0,0,0,.15); background: #fff; color: inherit;
	font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.dmb-btn:hover { border-color: var(--dmb-accent, #ff7a45); color: inherit; }
.dmb-btn.is-primary { background: var(--dmb-accent, #ff7a45); border-color: var(--dmb-accent, #ff7a45); color: #fff; }
.dmb-btn.is-primary:hover { filter: brightness(1.06); color: #fff; }

.dmb-status.is-member strong { color: var(--dmb-accent, #ff7a45); }

/* 投稿フォーム */
.dmb-form { display: grid; gap: 4px; max-width: 640px; }
.dmb-form p { margin: 0 0 12px; }
.dmb-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.dmb-form input[type="text"], .dmb-form textarea, .dmb-form select {
	width: 100%; padding: 9px 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; background: #fff; font-size: 15px;
}
.dmb-form input[type="file"] { display: block; width: 100%; padding: 14px; border: 1px dashed rgba(0,0,0,.25); border-radius: 10px; background: rgba(0,0,0,.02); }
.dmb-form small { display: block; margin-top: 4px; opacity: .65; }
.dmb-form fieldset { margin: 0 0 12px; padding: 0; border: 0; }
.dmb-form legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.dmb-form .dmb-radio, .dmb-form .dmb-check { display: block; font-weight: 400; margin: 4px 0; }
.dmb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .dmb-row { grid-template-columns: 1fr; } }
.dmb-req { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #e5484d; color: #fff; font-size: 11px; vertical-align: 1px; }
.dmb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dmb-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; }
.dmb-notice.is-ok { background: #e7f6ec; color: #185c2f; }
.dmb-notice.is-err { background: #fdecec; color: #8a1f1f; }

/* ギャラリー */
.dmb-gallery { display: grid; grid-template-columns: repeat(var(--dmb-cols, 4), minmax(0, 1fr)); gap: 14px; margin: 1.2em 0; }
@media (max-width: 834px) { .dmb-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dmb-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.dmb-g-item { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.dmb-g-img { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.05); }
.dmb-g-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .2s; }
.dmb-g-item:hover .dmb-g-img img { transform: scale(1.04); }
.dmb-g-noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; opacity: .45; }
.dmb-g-lock { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700; }
.dmb-g-t { font-weight: 700; font-size: 14px; line-height: 1.4; }
.dmb-g-by { font-size: 12px; opacity: .6; }
.dmb-pager { text-align: center; margin: 1em 0; }
.dmb-pager .page-numbers { display: inline-block; padding: 4px 10px; }

/* 素材ページ */
.dmb-mat-info { margin: 1.6em 0; }
.dmb-mat-info dl { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 12px; }
.dmb-mat-info dl > div { display: flex; gap: 8px; }
.dmb-mat-info dt { font-weight: 700; opacity: .6; margin: 0; }
.dmb-mat-info dd { margin: 0; }
.dmb-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dmb-files li { margin: 0; padding: 0; border: 0; }
.dmb-files li::before { content: none; }

/* ---- 1.1.0：マイページ・Discord・会員コード ---- */
.dmb-panel { --dmb-accent: #ff7a45; display: grid; gap: 14px; margin: 1.2em 0; }
.dmb-panel * { box-sizing: border-box; }
.dmb-card { padding: 18px 20px; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; background: #fff; }
.dmb-card h3 { margin: 0 0 10px; padding: 0; border: 0; background: none; font-size: 17px; }
.dmb-card h3::before, .dmb-card h3::after { content: none; display: none; }
.dmb-card p { margin: 0 0 10px; }
.dmb-card details > summary { cursor: pointer; list-style: none; }
.dmb-card details > summary::-webkit-details-marker { display: none; }
.dmb-card details > summary h3 { display: inline; }
.dmb-card details > summary::after { content: "＋"; float: right; opacity: .5; }
.dmb-card details[open] > summary::after { content: "−"; }
.dmb-card details[open] > summary { margin-bottom: 12px; }
.dmb-state.is-member { border-color: color-mix(in srgb, var(--dmb-accent) 50%, transparent); background: color-mix(in srgb, var(--dmb-accent) 6%, #fff); }
.dmb-state-who { display: flex; align-items: center; gap: 12px; }
.dmb-state-who img { border-radius: 50%; }
.dmb-state-name { font-weight: 700; }
.dmb-state-lv strong { color: var(--dmb-accent); }
.dmb-srcs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dmb-srcs li { margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 13px; }
.dmb-srcs li::before { content: none; }
.dmb-srcs li span { opacity: .6; margin-right: 6px; }
.dmb-howto { margin: 0 0 12px; padding-left: 1.2em; }
.dmb-row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dmb-row-btns form { margin: 0; }
.dmb-btn.dmb-discord, a.dmb-btn.dmb-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.dmb-btn.dmb-discord:hover { filter: brightness(1.08); color: #fff; }
.dmb-btn.is-quiet { border-color: transparent; background: transparent; opacity: .7; font-weight: 400; }
.dmb-hint { font-size: 14px; padding: 8px 12px; border-radius: 8px; background: #fff8e5; }
.dmb-notice.is-info { background: #eef4ff; color: #1e3a6e; }
.dmb-code-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.dmb-code-row { display: flex; gap: 8px; }
.dmb-code-row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; font-family: ui-monospace, monospace; }
.dmb-code-form small { display: block; margin-top: 6px; opacity: .65; }
.dmb-app-state { padding: 10px 12px; border-radius: 8px; background: rgba(0,0,0,.04); }
.dmb-app-state.is-rej { background: #fdecec; }
.dmb-logout { text-align: right; font-size: 13px; margin: 0; }
.dmb-panel .dmb-card h3 { font-weight: 700; font-size: 17px; line-height: 1.4; }
.dmb-card .dmb-code-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
