/* ============================================
   ANTLERS KIT COLLECTION — app.css  v3
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #C8102E; --darkred: #8B0000;
  --navy: #0D1F3C; --darknavy: #091429;
  --gold: #C9A84C;
  --bg: #F7F5F1; --surface: #FFFFFF;
  --muted: #9A9189; --border: #E5E0D8; --text: #1A1714;
  --r: 6px;
}
html { font-size: 15px; }
body { background: var(--bg); color: var(--text); font-family: 'Noto Sans JP', sans-serif; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ══ HEADER — アントラーズレッド ══ */
.app-header { position: sticky; top: 0; z-index: 100; background: var(--red); border-bottom: 3px solid var(--darkred); display: flex; align-items: center; padding: 0 16px; height: 54px; gap: 12px; }
.app-logo { font-family: 'Bebas Neue', sans-serif; font-size: 15px; color: #fff; letter-spacing: 2px; flex-shrink: 0; line-height: 1.2; }
.app-logo span { opacity: 0.75; display: block; font-size: 10px; letter-spacing: 3px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-post-btn { padding: 6px 14px; background: #fff; border-radius: 20px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 1px; transition: opacity 0.15s; }
.header-post-btn:hover { opacity: 0.85; }
.header-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--darkred); border: 2px solid rgba(255,255,255,0.4); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; overflow: hidden; }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ══ BOTTOM NAV — ネイビー ══ */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); display: flex; height: 60px; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,0.35); font-size: 10px; letter-spacing: 1px; transition: color 0.2s; padding: 0; }
.nav-item.active { color: #fff; }
.nav-icon { font-size: 20px; line-height: 1; }
.nav-post-icon { font-size: 26px; }

/* ══ COMMON ══ */
.main-wrap { padding-bottom: 72px; }
.btn-primary { display: block; width: 100%; padding: 13px; background: var(--navy); border: none; border-radius: var(--r); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-align: center; transition: background 0.2s; }
.btn-primary:hover { background: var(--darknavy); }
.btn-post { flex: 2; padding: 13px; background: var(--navy); border: none; border-radius: var(--r); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 2px; transition: background 0.15s; }
.btn-post:hover { background: var(--darknavy); }
.btn-outline { flex: 1; padding: 13px; background: none; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-align: center; display: block; transition: all 0.15s; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.post-btn-wrap { display: flex; gap: 10px; margin-top: 8px; }
.form-errors { padding: 12px 14px; background: rgba(200,16,46,0.08); border: 1px solid rgba(200,16,46,0.25); border-radius: var(--r); margin-bottom: 16px; font-size: 13px; color: #cc1a1a; display: flex; flex-direction: column; gap: 4px; }
.form-section { margin-bottom: 20px; }
.form-section-title { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.required { color: var(--red); }
.form-control { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 14px; outline: none; background: var(--surface); transition: border-color 0.2s; color: var(--text); width: 100%; }
.form-control:focus { border-color: var(--navy); }
textarea.form-control { resize: vertical; min-height: 80px; line-height: 1.6; }

/* ══ LOGIN ══ */
.login-screen { min-height: 100vh; background: #0a0a0a; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; }
.login-screen::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(200,16,46,0.04) 0, rgba(200,16,46,0.04) 1px, transparent 0, transparent 40px); }
.login-box { position: relative; z-index: 1; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 36px; }
.login-logo-mark { font-size: 48px; margin-bottom: 10px; filter: drop-shadow(0 0 20px rgba(200,16,46,0.5)); }
.login-logo h1 { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 3px; color: #fff; line-height: 1.3; }
.login-logo p { font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 3px; margin-top: 4px; }
.auth-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.auth-tab { flex: 1; padding: 11px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 13px; letter-spacing: 2px; border-bottom: 2px solid transparent; transition: all 0.2s; margin-bottom: -1px; }
.auth-tab.active { color: #fff; border-bottom-color: var(--red); }
.auth-error { padding: 10px 14px; background: rgba(200,16,46,0.15); border: 1px solid rgba(200,16,46,0.3); border-radius: var(--r); color: #ff6b6b; font-size: 13px; margin-bottom: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input { width: 100%; padding: 13px 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r); color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s; }
.auth-form input:focus { border-color: rgba(255,255,255,0.3); }
.auth-form input::placeholder { color: rgba(255,255,255,0.25); }
.invite-note { margin-top: 18px; padding: 13px 14px; background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); border-radius: var(--r); font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.8; text-align: center; }
.invite-note strong { color: var(--gold); }

/* ══ TIMELINE ══ */
.timeline-header { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; }
.timeline-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.view-toggle { display: flex; gap: 4px; }
.view-btn { padding: 5px 10px; border-radius: 4px; border: 1px solid var(--border); background: none; font-size: 13px; color: var(--muted); transition: all 0.15s; }
.view-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.feed { padding: 0 12px; }
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.feed-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.feed-card-header { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.feed-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-user { flex: 1; }
.feed-username { font-size: 13px; font-weight: 700; }
.feed-time { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }
.feed-player-tag { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: rgba(13,31,60,0.08); color: var(--navy); font-weight: 500; flex-shrink: 0; }

/* ── スクエア画像 (1:1) ── */
.feed-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.feed-image img { width: 100%; height: 100%; object-fit: cover; }
.feed-image-empty { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 72px; background: #f0ece6; }

.feed-card-body { padding: 12px 14px; }
.feed-item-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feed-item-meta { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.feed-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 3px 9px; border-radius: 10px; font-weight: 500; }
.badge-sign  { background: rgba(201,168,76,0.15); color: #8a6a10; border: 1px solid rgba(201,168,76,0.3); }
.badge-trade { background: rgba(13,31,60,0.08); color: var(--navy); border: 1px solid rgba(13,31,60,0.2); }
.badge-sale  { background: rgba(34,139,34,0.1); color: #1a6a1a; border: 1px solid rgba(34,139,34,0.25); }
.badge-nokau { background: rgba(150,150,150,0.1); color: #555; border: 1px solid rgba(150,150,150,0.25); }
.feed-note { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; font-style: italic; }
.feed-actions { display: flex; border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.feed-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; background: none; border: none; border-right: 1px solid var(--border); padding: 6px 0; font-size: 12px; color: var(--muted); transition: color 0.15s; }
.feed-action-btn:last-child { border-right: none; }
.feed-action-btn.liked { color: var(--red); }
.feed-action-btn:hover { color: var(--text); }

.grid-feed { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 0 12px; }
.grid-item { background: var(--surface); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.grid-item:hover { transform: scale(1.02); }
.grid-item-img { aspect-ratio: 1 / 1; overflow: hidden; background: #e8e4df; position: relative; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.grid-item-img img { width: 100%; height: 100%; object-fit: cover; }
.grid-sign-badge  { position: absolute; top: 4px; right: 4px; background: var(--gold); color: #fff; font-size: 8px; font-weight: 700; padding: 2px 5px; border-radius: 2px; }
.grid-trade-badge { position: absolute; bottom: 4px; left: 4px; background: var(--navy); color: #fff; font-size: 9px; padding: 1px 5px; border-radius: 2px; }
.grid-item-info { padding: 6px 8px; }
.grid-item-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-item-sub  { font-size: 9px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 1px; }

/* ══ POST ══ */
.post-page { padding: 16px; max-width: 540px; margin: 0 auto; padding-bottom: 80px; }
.post-page-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; margin-bottom: 18px; }
.post-page-title span { color: var(--red); }
.img-upload-area { border: 2px dashed var(--border); border-radius: 10px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; background: var(--surface); margin-bottom: 20px; overflow: hidden; position: relative; }
.img-upload-area:hover { border-color: var(--navy); }
.upload-icon { font-size: 36px; opacity: 0.3; }
.upload-text { font-size: 14px; color: var(--text); font-weight: 500; }
.upload-sub { font-size: 11px; color: var(--muted); }
.preview-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; position: absolute; inset: 0; }
.preview-container.single { grid-template-columns: 1fr; }
.preview-thumb { width: 100%; height: 100%; object-fit: cover; }

/* ══ ITEM DETAIL ══ */
.item-detail { padding-bottom: 80px; }
.toast-banner { background: #1a5a1a; color: #fff; text-align: center; padding: 10px; font-size: 13px; }
.image-slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform 0.3s ease; }
.slide { min-width: 100%; }
.slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; }
.dot.active { background: #fff; }
.image-empty-lg { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 96px; background: #f0ece6; }
.item-actions { padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.action-like { display: flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 14px; transition: all 0.15s; }
.action-like.liked { background: rgba(200,16,46,0.08); border-color: rgba(200,16,46,0.3); }
.action-trade { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 500; }
.action-edit { margin-left: auto; padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 12px; }
.action-share { padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 500; background: none; cursor: pointer; text-decoration: none; color: inherit; }
.item-data-section { padding: 16px; }
.item-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.data-cell { background: var(--bg); border-radius: var(--r); padding: 10px 12px; }
.data-cell.full { grid-column: 1 / -1; }
.data-key { font-size: 10px; color: var(--muted); letter-spacing: 2px; margin-bottom: 4px; }
.data-val { font-size: 14px; font-weight: 600; line-height: 1.5; }
.sign-val { color: var(--gold); }
.note-val { font-weight: 400; font-size: 13px; line-height: 1.7; color: var(--muted); }
.data-val a { color: var(--red); }
.comments-section { padding: 16px; border-top: 1px solid var(--border); }
.comments-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.comments-title span { background: var(--bg); color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.comment-bubble { padding: 10px 12px; background: var(--bg); border-radius: var(--r); margin-bottom: 8px; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.comment-user { font-size: 12px; font-weight: 700; color: var(--navy); }
.comment-time { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; }
.comment-body { font-size: 13px; line-height: 1.6; }
.no-comments { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.comment-field { flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 13px; outline: none; background: #fff; resize: none; line-height: 1.5; }
.comment-field:focus { border-color: var(--navy); }
.comment-post { padding: 10px 16px; background: var(--navy); border: none; border-radius: var(--r); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }

/* ══ PROFILE ══ */
.profile-header { background: var(--navy); padding: 20px 16px 0; }
.profile-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.profile-avatar { width: 68px; height: 68px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; border: 3px solid rgba(255,255,255,0.2); flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.profile-handle { font-size: 11px; color: rgba(255,255,255,0.4); font-family: 'DM Mono', monospace; margin-bottom: 10px; }
.profile-stats { display: flex; gap: 20px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: #fff; }
.profile-stat-label { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 1px; }
.profile-edit-btn { padding: 7px 14px; border-radius: var(--r); border: 1px solid rgba(255,255,255,0.25); background: none; color: rgba(255,255,255,0.7); font-size: 12px; }
.profile-tabs { display: flex; }
.profile-tab { flex: 1; padding: 12px 4px; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 12px; letter-spacing: 1px; border-bottom: 2px solid transparent; transition: all 0.2s; margin-bottom: -1px; text-align: center; }
.profile-tab.active { color: #fff; border-bottom-color: #fff; }
.collection-content { padding: 12px; padding-bottom: 80px; }
.year-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.year-scroll::-webkit-scrollbar { display: none; }
.year-chip { padding: 6px 14px; border-radius: 20px; flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); transition: all 0.15s; }
.year-chip.has-data { color: var(--text); }
.year-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.collection-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.coll-item { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform 0.15s; }
.coll-item:hover { transform: scale(1.02); }
.coll-item-img { aspect-ratio: 1 / 1; overflow: hidden; background: #e8e4df; position: relative; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.coll-item-img img { width: 100%; height: 100%; object-fit: cover; }
.coll-item-info { padding: 6px 8px; }
.coll-item-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-item-sub  { font-size: 9px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 1px; }
.list-view { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); }
.list-item:hover { background: var(--bg); }
.list-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #e8e4df; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; min-width: 0; }
.list-title { font-weight: 700; font-size: 13px; }
.list-sub { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 2px; }
.list-sign { font-size: 11px; color: var(--gold); margin-top: 2px; }

/* ══ EDIT ══ */
.btn-delete { width: 100%; padding: 11px; background: none; border: 1.5px solid #e0a0a0; border-radius: var(--r); color: #cc3333; font-size: 13px; font-weight: 700; letter-spacing: 1px; transition: all 0.15s; }
.btn-delete:hover { background: #fff0f0; border-color: #cc3333; }
.current-images-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.current-img-label { position: relative; cursor: pointer; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; display: block; }
.current-img-label img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.delete-overlay { position: absolute; inset: 0; background: rgba(200,16,46,0); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: background 0.2s; }
.current-img-label.marked-delete img { opacity: 0.4; }
.current-img-label.marked-delete .delete-overlay { background: rgba(200,16,46,0.7); }

/* ══ EXPLORE ══ */
.explore-wrap { padding: 16px; padding-bottom: 80px; }
.explore-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 12px; text-align: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 30px; color: var(--red); line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }
.explore-section { margin-bottom: 28px; }
.explore-section-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.collector-list { display: flex; flex-direction: column; gap: 6px; }
.collector-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: background 0.15s; }
.collector-row:hover { background: var(--bg); }
.collector-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.collector-avatar img { width: 100%; height: 100%; object-fit: cover; }
.collector-info { flex: 1; }
.collector-name { font-size: 14px; font-weight: 700; }
.collector-count { font-size: 12px; color: var(--muted); margin-top: 2px; }
.collector-arrow { font-size: 20px; color: var(--muted); }
.player-rank-list { display: flex; flex-direction: column; gap: 8px; }
.player-rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.rank-num { width: 32px; text-align: center; font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.rank-num.rank-top { font-size: 20px; }
.rank-thumb { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: #e8e4df; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.rank-bar-wrap { height: 4px; background: var(--border); border-radius: 2px; }
.rank-bar { height: 100%; background: var(--red); border-radius: 2px; }
.rank-count { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.explore-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.explore-card { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform 0.15s; }
.explore-card:hover { transform: scale(1.02); }
.explore-card-img { aspect-ratio: 1 / 1; overflow: hidden; background: #e8e4df; position: relative; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.explore-card-img img { width: 100%; height: 100%; object-fit: cover; }
.explore-card-info { padding: 6px 8px; }
.explore-card-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-card-sub { font-size: 9px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 1px; }

/* ══ SETTINGS ══ */
.settings-wrap { padding: 16px; max-width: 540px; margin: 0 auto; padding-bottom: 80px; }
.settings-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; margin-bottom: 18px; }
.settings-success { padding: 10px 14px; background: rgba(34,139,34,0.1); border: 1px solid rgba(34,139,34,0.25); border-radius: var(--r); color: #1a6a1a; font-size: 13px; margin-bottom: 14px; }
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.settings-card-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.avatar-section { display: flex; align-items: center; gap: 16px; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; border: 3px solid var(--border); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-form { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload-btn { display: inline-block; padding: 9px 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r); font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.avatar-upload-btn:hover { border-color: var(--navy); }
.avatar-hint { font-size: 11px; color: var(--muted); line-height: 1.6; }
.btn-logout { display: block; width: 100%; padding: 13px; background: none; border: 1.5px solid var(--border); border-radius: var(--r); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-align: center; transition: all 0.15s; margin-top: 8px; }
.btn-logout:hover { border-color: #cc3333; color: #cc3333; }

/* ══ MISC ══ */
.empty-state { padding: 48px 24px; text-align: center; }
.empty-icon { font-size: 48px; opacity: 0.25; margin-bottom: 12px; }
.empty-state > div { font-size: 14px; color: var(--muted); }

@media (min-width: 600px) {
  .feed { padding: 0 24px; }
  .grid-feed { grid-template-columns: repeat(4,1fr); padding: 0 24px; }
  .collection-grid { grid-template-columns: repeat(4,1fr); }
  .explore-grid { grid-template-columns: repeat(4,1fr); }
}

/* ══ HEADER追加 ══ */
.header-icon-btn { position: relative; font-size: 20px; color: rgba(255,255,255,0.85); text-decoration: none; display: flex; align-items: center; }
.dm-badge { position: absolute; top: -4px; right: -6px; background: #fff; color: var(--red); font-size: 9px; font-weight: 900; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.header-logout-btn { font-size: 18px; color: rgba(255,255,255,0.7); text-decoration: none; display: flex; align-items: center; padding: 4px; transition: color 0.15s; }
.header-logout-btn:hover { color: #fff; }

/* ══ PROFILE フォロー/DM ══ */
.profile-stat-link { display: block; text-decoration: none; color: inherit; }
.profile-stat-link:hover .profile-stat-num { text-decoration: underline; }
.profile-action-btns { display: flex; gap: 8px; margin-top: 12px; }
.follow-btn { padding: 8px 20px; border-radius: 20px; border: 2px solid #fff; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: 1px; cursor: pointer; transition: all 0.15s; }
.follow-btn.following { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.follow-btn:hover { opacity: 0.85; }
.dm-btn { padding: 8px 16px; border-radius: 20px; border: 2px solid rgba(255,255,255,0.5); background: transparent; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; transition: all 0.15s; }
.dm-btn:hover { background: rgba(255,255,255,0.1); }

/* ══ MESSAGES ══ */
.messages-wrap { display: flex; height: calc(100vh - 54px - 60px); overflow: hidden; }
.messages-sidebar { width: 300px; flex-shrink: 0; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto; }
.messages-sidebar-title { padding: 16px; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; border-bottom: 1px solid var(--border); }
.dm-empty { padding: 24px 16px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.dm-thread-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.dm-thread-row:hover { background: var(--bg); }
.dm-thread-row.active { background: rgba(13,31,60,0.06); }
.dm-thread-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.dm-thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-thread-info { flex: 1; min-width: 0; }
.dm-thread-name { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dm-unread-badge { background: var(--red); color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.dm-thread-preview { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-thread-time { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; flex-shrink: 0; }

.dm-chat { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.dm-chat-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: var(--surface); flex-shrink: 0; }
.dm-chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.dm-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-chat-name { flex: 1; font-size: 15px; font-weight: 700; }
.dm-profile-link { font-size: 12px; color: var(--navy); padding: 5px 12px; border: 1px solid var(--border); border-radius: 12px; }

.dm-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.dm-messages-empty { text-align: center; color: var(--muted); font-size: 13px; margin: auto; }
.dm-msg { display: flex; gap: 8px; align-items: flex-end; }
.dm-msg-me { flex-direction: row-reverse; }
.dm-msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.dm-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-msg-bubble { max-width: 72%; }
.dm-msg-body { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.dm-msg-them .dm-msg-body { background: var(--surface); border-bottom-left-radius: 4px; }
.dm-msg-me .dm-msg-body { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.dm-msg-time { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 4px; }
.dm-msg-me .dm-msg-time { text-align: right; }

.dm-input-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--surface); flex-shrink: 0; }
.dm-input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 20px; font-size: 14px; outline: none; resize: none; line-height: 1.5; max-height: 120px; background: var(--bg); }
.dm-input:focus { border-color: var(--navy); }
.dm-send-btn { padding: 10px 20px; background: var(--navy); border: none; border-radius: 20px; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }

.dm-chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; }
.dm-chat-empty-inner { text-align: center; color: var(--muted); font-size: 14px; }

/* スマホ: サイドバー非表示でフルスクリーン */
@media (max-width: 599px) {
  .messages-wrap { flex-direction: column; height: auto; }
  .messages-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 240px; }
  .dm-chat { min-height: 60vh; }
}

/* ══ FOLLOWERS PAGE ══ */
.followers-wrap { padding-bottom: 80px; }
.followers-header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 54px; z-index: 10; }
.back-btn { font-size: 14px; color: var(--navy); display: block; margin-bottom: 10px; font-weight: 700; }
.followers-tabs { display: flex; gap: 4px; }
.followers-tab { flex: 1; padding: 8px; text-align: center; border-radius: var(--r); font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); transition: all 0.15s; }
.followers-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.followers-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.follower-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.follower-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.follower-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; text-transform: uppercase; }
.follower-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follower-info { min-width: 0; }
.follower-name { font-size: 14px; font-weight: 700; }
.follower-bio { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-btn-sm { padding: 7px 14px; border-radius: 16px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.follow-btn-sm.following { background: transparent; color: var(--navy); }

/* ══ FOLLOW & MESSAGE BUTTONS ══ */
.profile-actions { display: flex; gap: 8px; padding: 0 0 14px; }
.profile-action-btn {
  flex: 1; padding: 9px 14px; border-radius: var(--r);
  border: 1.5px solid rgba(255,255,255,0.25);
  background: none; color: #fff; font-size: 13px; font-weight: 700;
  text-align: center; transition: all 0.2s; letter-spacing: 0.5px;
}
.profile-action-btn:hover { background: rgba(255,255,255,0.1); }
.profile-action-btn.follow-btn { background: #fff; color: var(--navy); border-color: #fff; }
.profile-action-btn.follow-btn.following { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.profile-action-btn.msg-btn { background: rgba(255,255,255,0.1); }
.profile-bio { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 10px; }

/* ══ HEADER ICONS ══ */
.header-icon-btn {
  position: relative; font-size: 20px; color: #fff;
  display: flex; align-items: center;
}
.dm-badge {
  position: absolute; top: -4px; right: -6px;
  background: #fff; color: var(--red);
  font-size: 9px; font-weight: 900;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header-logout-btn { font-size: 18px; color: rgba(255,255,255,0.6); }
.header-logout-btn:hover { color: #fff; }

/* ══ MESSAGE LIST ══ */
.msg-list-page { padding: 16px; padding-bottom: 80px; }
.msg-list-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px;
  letter-spacing: 2px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.unread-badge {
  background: var(--red); color: #fff;
  font-size: 11px; font-family: 'DM Mono', monospace;
  padding: 2px 8px; border-radius: 10px; font-weight: 700;
}
.thread-list { display: flex; flex-direction: column; gap: 6px; }
.thread-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  transition: background 0.15s;
}
.thread-row:hover { background: var(--bg); }
.thread-unread { border-color: var(--navy); }
.thread-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  overflow: hidden; text-transform: uppercase;
}
.thread-avatar img { width: 100%; height: 100%; object-fit: cover; }
.thread-info { flex: 1; min-width: 0; }
.thread-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.thread-preview {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thread-unread .thread-preview { color: var(--text); font-weight: 500; }
.thread-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.thread-time { font-size: 10px; color: var(--muted); font-family: 'DM Mono', monospace; }
.thread-unread-dot {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ══ CHAT PAGE ══ */
.chat-page { display: flex; flex-direction: column; height: 100vh; }
.chat-header {
  background: var(--red); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--darkred); flex-shrink: 0;
  position: sticky; top: 54px; z-index: 10;
}
.chat-back {
  font-size: 28px; color: #fff; line-height: 1;
  padding: 0 4px; font-weight: 300;
}
.chat-partner-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--darkred); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  border: 2px solid rgba(255,255,255,0.3); overflow: hidden;
  text-transform: uppercase;
}
.chat-partner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-partner-name { flex: 1; font-size: 15px; font-weight: 700; color: #fff; }
.chat-profile-link {
  font-size: 11px; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px; border-radius: 12px;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  padding-bottom: 80px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 0; }
.chat-bubble-wrap { display: flex; flex-direction: column; max-width: 78%; }
.chat-bubble-wrap.me { align-self: flex-end; align-items: flex-end; }
.chat-bubble-wrap.them { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.55; word-break: break-word;
}
.chat-bubble-wrap.me .chat-bubble {
  background: var(--navy); color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble-wrap.them .chat-bubble {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble-time { font-size: 10px; color: var(--muted); margin-top: 3px; font-family: 'DM Mono', monospace; }
.chat-form {
  position: fixed; bottom: 60px; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 12px;
  background: var(--surface); border-top: 1px solid var(--border);
  z-index: 10;
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 20px; font-size: 14px; outline: none;
  background: var(--bg); resize: none; line-height: 1.5;
  max-height: 120px; overflow-y: auto;
}
.chat-input:focus { border-color: var(--navy); }
.chat-send {
  padding: 10px 18px; background: var(--navy); border: none;
  border-radius: 20px; color: #fff; font-size: 13px;
  font-weight: 700; flex-shrink: 0; align-self: flex-end;
}

/* ══ SLIDER 改善 ══ */
.image-slider { position: relative; overflow: hidden; background: #111; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; width: 44px; height: 44px;
  background: rgba(255,255,255,0.9); border: none; border-radius: 50%;
  font-size: 24px; font-weight: 300; color: #111;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-btn.disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.slider-btn-prev { left: 12px; }
.slider-btn-next { right: 12px; }

.slider-footer {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; gap: 12px;
  background: var(--bg);
}
.slider-dots { display: flex; gap: 6px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(13,31,60,0.2); cursor: pointer;
  transition: all 0.2s; border: 1.5px solid rgba(13,31,60,0.35);
}
.dot.active { background: var(--navy); border-color: var(--navy); transform: scale(1.2); }
.slider-counter {
  font-size: 12px; color: var(--navy);
  font-family: 'DM Mono', monospace; font-weight: 700;
}
.swipe-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(13,31,60,0.65); color: #fff;
  font-size: 12px; padding: 6px 14px; border-radius: 20px;
  pointer-events: none; transition: opacity 0.5s; white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ══ ゲスト用コメントプロンプト ══ */
.comment-login-prompt {
  display: block; text-align: center; padding: 14px;
  border: 1.5px dashed var(--border); border-radius: var(--r);
  color: var(--muted); font-size: 13px; margin-top: 10px;
  transition: all 0.2s;
}
.comment-login-prompt:hover { border-color: var(--navy); color: var(--navy); }

/* ══ SEARCH BAR ══ */
.search-bar-form { margin-bottom: 20px; }
.search-bar-wrap {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 40px; overflow: hidden;
  transition: border-color 0.2s;
  width: 90%; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.search-bar-wrap:focus-within { border-color: var(--navy); box-shadow: 0 2px 16px rgba(13,31,60,0.12); }
.search-bar-icon { padding: 0 8px 0 20px; font-size: 20px; flex-shrink: 0; }
.search-bar-input {
  flex: 1; padding: 16px 8px; border: none; outline: none;
  font-size: 16px; background: transparent; color: var(--text);
}
.search-bar-input::placeholder { color: var(--muted); }
.search-bar-clear {
  padding: 0 20px; font-size: 18px; color: var(--muted);
  flex-shrink: 0; transition: color 0.15s;
}
.search-bar-clear:hover { color: var(--text); }

/* ══ SEARCH RESULTS ══ */
.search-result-label {
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.search-count {
  background: var(--navy); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  font-family: 'DM Mono', monospace;
}

/* ══ EXPLORE section-sub ══ */
.section-sub {
  font-size: 10px; color: var(--muted);
  font-weight: 400; letter-spacing: 0; margin-left: 4px;
}

/* ══ COLLECTOR RANK ══ */
.collector-rank {
  width: 24px; text-align: center;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--muted); flex-shrink: 0;
}

/* ══ PLAYER RANK ROW LINK ══ */
a.player-rank-row { display: flex; text-decoration: none; color: inherit; }
a.player-rank-row:hover { background: var(--bg); }

/* ══ PC: ドット大きめ・検索バー最大幅 ══ */
@media (min-width: 600px) {
  .dot { width: 11px; height: 11px; }
  .dot.active { transform: scale(1.25); }
  .slider-dots { gap: 8px; }
  .slider-counter { font-size: 13px; }
  .search-bar-wrap { width: 70%; max-width: 600px; }
  .search-bar-input { font-size: 17px; padding: 18px 8px; }
  .search-bar-icon { font-size: 22px; }
}

/* ══ PROFILE ABOUT TAB ══ */
.about-section { display: flex; flex-direction: column; gap: 12px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.about-card-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.about-text { font-size: 14px; line-height: 1.8; color: var(--text); }
.about-empty { font-size: 13px; color: var(--muted); }
.about-empty a { color: var(--navy); text-decoration: underline; }
.about-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.about-item:last-child { border-bottom: none; }
.about-item-key { color: var(--muted); font-size: 12px; flex-shrink: 0; min-width: 100px; }

/* ══ BADGE PROGRESS ══ */
.profile-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.badge-progress-wrap {
  display: flex; justify-content: space-between;
  gap: 4px; margin-bottom: 12px;
}
.badge-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; opacity: 0.25; transition: opacity 0.2s;
}
.badge-step.earned { opacity: 1; }
.badge-step-icon { font-size: 22px; }
.badge-step-label { font-size: 9px; color: var(--muted); font-family: 'DM Mono', monospace; }
.badge-next { font-size: 12px; color: var(--muted); text-align: center; padding-top: 8px; border-top: 1px solid var(--border); }
.badge-next strong { color: var(--navy); }

/* ══ WANT LIST ══ */
.want-list { display: flex; flex-wrap: wrap; gap: 8px; }
.want-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(13,31,60,0.07); color: var(--navy);
  border: 1px solid rgba(13,31,60,0.15);
  font-size: 13px; font-weight: 500;
}
.want-chip-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.want-delete-btn {
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; padding: 2px 6px;
  transition: color 0.15s;
}
.want-delete-btn:hover { color: var(--red); }
.want-hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.want-add-form { margin-bottom: 4px; }
.want-input-row { display: flex; gap: 8px; }
.want-add-btn {
  padding: 10px 16px; background: var(--navy); border: none;
  border-radius: var(--r); color: #fff; font-size: 13px;
  font-weight: 700; flex-shrink: 0; cursor: pointer;
}

/* ══ PROFILE BIO INLINE ══ */
.profile-bio-inline {
  font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.7;
  padding: 0 0 14px; display: block;
}
.profile-bio-empty { color: rgba(255,255,255,0.35); font-size: 12px; }

/* ══ PROFILE BADGE ROW ══ */
.profile-badge-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.profile-badge-img { width: 40px; height: 40px; object-fit: contain; }
.profile-badge-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.profile-badge-sub  { font-size: 10px; opacity: 0.6; letter-spacing: 1px; color: rgba(255,255,255,0.7); }

/* ══ BADGE PROGRESS ══ */
.badge-progress-wrap {
  display: flex; justify-content: space-between; gap: 4px; margin-bottom: 12px;
}
.badge-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; opacity: 0.2; transition: opacity 0.3s; text-align: center;
}
.badge-step.earned { opacity: 1; }
.badge-step-img { width: 40px; height: 40px; object-fit: contain; }
.badge-step-label { font-size: 10px; font-weight: 700; color: var(--text); }
.badge-step-num   { font-size: 9px; color: var(--muted); font-family: 'DM Mono', monospace; }
.badge-next {
  font-size: 12px; color: var(--muted); text-align: center;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.badge-next strong { color: var(--navy); }

@media (min-width: 600px) {
  .badge-step-img  { width: 52px; height: 52px; }
  .badge-step-label { font-size: 11px; }
}

/* ══ FEED AVATAR LINK ══ */
a.feed-avatar {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
a.feed-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ══ FOLLOW LIST PAGE ══ */
.follow-list-page { padding-bottom: 80px; }
.follow-list-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.follow-list-back {
  font-size: 30px; color: var(--text); line-height: 1;
  font-weight: 300; padding: 0 4px; flex-shrink: 0;
}
.follow-list-title { font-size: 16px; font-weight: 700; }
.follow-list-count { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }

.follow-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.follow-tab {
  flex: 1; padding: 13px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.follow-tab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }

.follow-user-list { padding: 8px 12px; }
.follow-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.follow-user-row:last-child { border-bottom: none; }
.follow-user-link {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
}
.follow-user-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  overflow: hidden; text-transform: uppercase;
}
.follow-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow-user-info { flex: 1; min-width: 0; }
.follow-user-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.follow-user-bio { font-size: 12px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-user-count { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; }

.follow-action-btn {
  padding: 7px 14px; border-radius: var(--r); flex-shrink: 0;
  border: 1.5px solid var(--navy); background: var(--navy);
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.follow-action-btn.following {
  background: transparent; color: var(--navy);
}

/* ── フォロワー数リンク ── */
.profile-stat-link { cursor: pointer; transition: opacity 0.15s; }
.profile-stat-link:hover { opacity: 0.75; }

/* ══ CHAT IMAGE ══ */
.chat-form { align-items: flex-end; gap: 6px; }
.chat-img-btn {
  padding: 10px 8px; font-size: 22px; cursor: pointer;
  flex-shrink: 0; line-height: 1; align-self: flex-end;
  margin-bottom: 2px;
}
.chat-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.chat-img-preview {
  position: relative; display: inline-block;
  margin-bottom: 4px;
}
.chat-img-preview img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--border); display: block;
}
.chat-img-cancel {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); border: none; color: #fff;
  font-size: 10px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.chat-image {
  max-width: 220px; width: 100%; border-radius: 10px;
  display: block; cursor: zoom-in; margin-bottom: 4px;
}
.chat-bubble-text { margin-top: 6px; }

/* 画像拡大モーダル */
.chat-img-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.chat-img-modal img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain; border-radius: 6px;
}

/* ══ AVATAR GRID（フォロワー一覧）══ */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
}
.avatar-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.avatar-grid-img {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff;
  overflow: hidden; text-transform: uppercase;
  border: 2px solid var(--border); transition: border-color 0.15s;
}
.avatar-grid-item:hover .avatar-grid-img { border-color: var(--red); }
.avatar-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-grid-name {
  font-size: 11px; color: var(--text); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 72px;
}

@media (min-width: 600px) {
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
  .avatar-grid-img { width: 80px; height: 80px; }
}

/* ══ FOLLOW NAME LIST ══ */
.follow-name-list {
  padding: 12px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.follow-name-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background 0.15s;
}
.follow-name-item:hover { background: var(--bg); }
.follow-name-text { font-size: 15px; font-weight: 500; color: var(--text); }
.follow-name-arrow { font-size: 20px; color: var(--muted); }

/* ══ HERO SECTION ══ */
.hero-section { background: var(--navy); color: #fff; padding: 28px 20px 24px; text-align: center; }
.hero-title { font-family: 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.hero-title-en { font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); letter-spacing: 1px; margin-bottom: 12px; }
.hero-sub { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 18px; line-height: 1.7; }
.hero-sub-en { font-size: 11px; color: rgba(255,255,255,0.45); display: block; margin-top: 4px; }
.hero-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.hero-btn-primary { background: var(--red); color: #fff; padding: 10px 22px; border-radius: 24px; font-size: 13px; font-weight: 700; }
.hero-btn-secondary { background: rgba(255,255,255,0.15); color: #fff; padding: 10px 22px; border-radius: 24px; font-size: 13px; font-weight: 700; border: 1.5px solid rgba(255,255,255,0.3); }
