/* Mode 2: My BanG Dream! ID card. Builds on main.css (same tokens, folders, cards, buttons). */

.step[hidden] { display: none; }
.sub-title { margin: 0; font-size: 17px; }
.sub-title small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }

/* ---------- step 1: name ---------- */
.idc-field { display: block; max-width: 560px; margin-top: 8px; }
.idc-field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.idc-field input { width: 100%; font-size: 26px; font-weight: 700; padding: 14px 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; color: var(--text); }
.idc-field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 51, 119, 0.15); }
.idc-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; text-align: right; }

/* ---------- step 2: picture tools + characters ---------- */
.pic-box { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px; margin-bottom: 22px; background: linear-gradient(135deg, #fff5f9, #eef3ff); border: 3px dashed var(--pink); border-radius: 22px; box-shadow: 0 10px 28px rgba(255, 51, 119, 0.14); transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.pic-box.drag { background: #ffe3ee; border-color: var(--blue); transform: scale(1.01); }
.pic-box[data-has="yes"] { border-style: solid; border-width: 2px; }
.pic-thumb { flex: 0 0 auto; width: 108px; height: 140px; border-radius: 16px; display: grid; place-items: center; background: #fff center / cover no-repeat; border: 2px solid var(--pink); color: var(--pink); font-size: 54px; font-weight: 700; line-height: 1; }
.pic-box[data-has="yes"] .pic-thumb span { display: none; }
.pic-text { display: grid; gap: 8px; min-width: 0; flex: 1 1 280px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.pic-text strong { color: var(--text); font-size: 22px; line-height: 1.2; }
.btn.big { padding: 13px 24px; font-size: 16px; }

.folder-stack.mono { width: 120px; }
/* each circle gets its character's own color from the script */
.folder-stack.mono span { position: absolute; bottom: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(42, 35, 71, 0.25); }
.pic-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }
.idc-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.folder-stack.mono span:nth-child(1) { left: 0; }
.folder-stack.mono span:nth-child(2) { left: 28px; z-index: 1; }
.folder-stack.mono span:nth-child(3) { left: 56px; z-index: 2; }

.char-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.char-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px 12px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; transition: transform 0.12s, box-shadow 0.12s; }
.char-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.char-card:focus-visible { outline: 2px solid var(--blue); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 82%, #000)); color: var(--on, #fff); font-weight: 700; font-size: 30px; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.char-card .nm { font-weight: 700; font-size: 14px; line-height: 1.25; }
.char-card .bd { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.char-card .tick { position: absolute; right: 10px; top: 14px; min-width: 26px; height: 26px; border-radius: 999px; display: none; place-items: center; background: var(--c); color: var(--on, #fff); font-weight: 700; font-size: 13px; box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 55%, transparent); }
.char-card.chosen { background: var(--panel-2); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.char-card.chosen .tick { display: grid; }

/* ---------- step 3: band ---------- */
.band-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 8px; }
.band-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px; padding: 18px 12px 14px; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 16px; transition: transform 0.12s, box-shadow 0.12s; }
.band-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.band-card:focus-visible { outline: 2px solid var(--blue); }
.band-card img { max-width: 78%; max-height: 62px; object-fit: contain; }
.band-card .nm { font-size: 13px; font-weight: 700; text-align: center; }
.band-card .tick { position: absolute; right: 10px; top: 12px; min-width: 26px; height: 26px; border-radius: 999px; display: none; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.band-card.chosen { background: var(--panel-2); box-shadow: 0 0 0 3px var(--c); }
.band-card.chosen .tick { display: grid; }

/* ---------- step 5: games ---------- */
.game-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.game-card { padding: 20px 20px 22px; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--pink); border-radius: 18px; box-shadow: var(--shadow); }
.game-card:nth-child(2) { border-top-color: var(--sky); }
.game-card h3 { margin: 0 0 4px; font-size: 19px; }
.game-card p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.srv-row { display: flex; gap: 10px; flex-wrap: wrap; }
.srv { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14px; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.srv::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d9bccb; background: #fff; }
.srv:hover { border-color: var(--pink); }
.srv:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.srv[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.srv[aria-pressed="true"]::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--pink); }

.id-note { margin: 14px 0 0; max-width: 640px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.srv.both { border-style: dashed; }
.srv.both[aria-pressed="true"] { border-style: solid; }

.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-nav .btn { min-width: 110px; }

/* ---------- right panel ---------- */
.idc-canvas { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 12px; background: var(--panel-2); cursor: zoom-in; }
.idc-canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.idc-zoom { width: min(1100px, 94vw); max-height: 94vh; padding: 14px; border: 0; border-radius: 20px; background: var(--panel); box-shadow: 0 30px 80px rgba(42, 35, 71, 0.45); }
.idc-zoom::backdrop { background: rgba(42, 35, 71, 0.6); backdrop-filter: blur(3px); }
.idc-zoom img { display: block; width: 100%; height: auto; border-radius: 12px; }
.idc-zoom .btn { display: block; margin: 12px auto 2px; min-width: 120px; }
.idc-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.idc-step { width: 100%; display: grid; grid-template-columns: 26px 1fr 18px; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color 0.12s, background 0.12s; }
.idc-step:hover { border-color: var(--pink); }
.idc-step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.idc-step.active { border-color: var(--pink); background: var(--panel-2); box-shadow: 0 0 0 2px rgba(255, 51, 119, 0.25); }
.idc-step .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.idc-step.done .num { background: var(--pink); border-color: var(--pink); color: #fff; }
.idc-step .txt { min-width: 0; }
.idc-step .lbl { display: block; font-size: 11px; color: var(--muted); }
.idc-step .val { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; font-weight: 700; overflow: hidden; overflow-wrap: anywhere; }
.idc-step .val.none { color: #c3aab9; font-weight: 500; }
.idc-step .chk { font-size: 14px; color: var(--pink); opacity: 0; }
.idc-step.done .chk { opacity: 1; }

@media (max-width: 560px) {
  .idc-field input { font-size: 22px; }
  .pic-tools { padding: 12px; }
  .band-pick { grid-template-columns: repeat(2, 1fr); }
  .step-nav .btn { flex: 1; }
}

/* ---------- adjust your own picture ---------- */
.adj-dialog { width: min(820px, 96vw); max-height: 96vh; overflow: auto; padding: 18px; border: 0; border-radius: 20px; background: var(--panel); box-shadow: 0 30px 80px rgba(42, 35, 71, 0.45); }
.adj-dialog::backdrop { background: rgba(42, 35, 71, 0.6); backdrop-filter: blur(3px); }
.adj-dialog h3 { margin: 0 0 4px; font-size: 20px; }
.adj-help { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
#adj-canvas { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--panel-2); cursor: grab; touch-action: none; }
#adj-canvas:active { cursor: grabbing; }
#adj-canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.adj-controls { display: grid; gap: 10px; margin-top: 14px; }
.adj-size { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.adj-size input[type=range] { width: 100%; accent-color: var(--pink); }
.adj-size output { min-width: 4ch; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.adj-buttons, .adj-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adj-actions { justify-content: flex-end; margin-top: 14px; }

/* ---------- player IDs, inside each game's box ---------- */
.game-ids { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.game-ids-title { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.id-field-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.id-field-row input { width: 100%; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; padding: 10px 12px; background: var(--bg); border: 2px solid var(--line); border-radius: 10px; color: var(--text); }
.id-field-row input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 51, 119, 0.15); }
@media (max-width: 560px) { .id-field-row { grid-template-columns: 1fr; gap: 6px; } }

.srv.none { border-style: dotted; }
.srv.none[aria-pressed="true"] { border-style: solid; background: var(--muted); border-color: var(--muted); }
.srv.none[aria-pressed="true"]::before { box-shadow: inset 0 0 0 3px var(--muted); }

/* ---------- joined since ---------- */
.since-q { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.since-field { margin-top: 18px; }
.since-field input:disabled { background: var(--panel); cursor: not-allowed; opacity: 0.7; }

/* ---------- ship examples (same look as the old idea buttons) ---------- */
.since-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.since-ideas span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.since-ideas .btn { padding: 7px 14px; font-size: 14px; border-radius: 999px; }
