/* ═════════════ 高級感レイヤー（ラベル・銅版画・金の細線） ═════════════ */
:root {
  --gold-a: rgba(246, 200, 115, .55);
  --gold-b: rgba(246, 200, 115, .06);
  --gold-edge: linear-gradient(135deg, var(--gold-a), var(--gold-b) 38%, var(--gold-b) 62%, rgba(246, 200, 115, .38));
  --art-bg: #17120F;
}
/* 紙の粒子 */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 金の細い縁（padding-box と border-box の二重背景） */
.summary, .card, .rc, .cat-tile, .zc, .ach, .dsec, .home-set { border: 1px solid transparent; }
.summary { background: linear-gradient(180deg, #221C17, #1A1512) padding-box, var(--gold-edge) border-box; }
.card { background: linear-gradient(180deg, #211B16, #1B1612) padding-box, var(--gold-edge) border-box; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.rc, .zc, .ach, .dsec, .home-set { background: linear-gradient(180deg, #2A221B, #211B16) padding-box, var(--gold-edge) border-box; }

/* ヘッダー */
.brand { align-items: center; gap: 10px; }
.crest { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--gold-a), 0 0 18px rgba(227,169,72,.25); }
.crest img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-en {
  font-size: 27px; background: linear-gradient(100deg, #B9832E 0%, #F6C873 35%, #FFF1CC 50%, #E3A948 70%, #9E6E22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 9.5px; letter-spacing: .45em; margin-top: 4px; color: #8E8172; }
.book-btn { border: 1px solid transparent; background: radial-gradient(circle at 35% 30%, #3A2E22, #1E1915) padding-box, var(--gold-edge) border-box; }

/* 週ストリップ */
.day.sel { background: radial-gradient(circle at 50% 0%, rgba(227,169,72,.16), transparent 70%), #211B16; box-shadow: inset 0 0 0 1px rgba(246,200,115,.35); }
.day .dn { font-size: 21px; }

/* サマリー：ラベル風の四隅飾り */
.summary { position: relative; padding: 14px 18px; }
.summary::before, .summary::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(246,200,115,.55); pointer-events: none; }
.summary::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.summary::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.sum-date { font-size: 16px; letter-spacing: .06em; }
.sum-tag { display: flex; align-items: center; gap: 6px; }
.sum-tag::before, .sum-tag::after { content: '◆'; font-size: 6px; opacity: .7; }
.sum-cups b {
  font-style: italic; font-size: 52px;
  background: linear-gradient(180deg, #FFF1CC, #E3A948 70%, #A87526); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sum-alc b { font-size: 22px; }
.sum-bar { height: 4px; }

/* 一杯カード */
.card { grid-template-columns: 84px 1fr; padding: 11px 12px 11px 14px; }
.card::before { top: 14px; bottom: 14px; width: 2px; box-shadow: 0 0 10px var(--c); }
.thumb { width: 84px; height: 84px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(246,200,115,.18), 0 4px 12px rgba(0,0,0,.4); }
.thumb.art { background: var(--art-bg); }
.thumb.art img { transform: scale(1.12); }
.c-top { gap: 7px; }
.c-en { letter-spacing: .28em; font-size: 9.5px; }
.c-n { font-family: var(--serif); font-size: 11px; color: var(--sub); letter-spacing: .1em; }
.c-name { font-size: 18px; letter-spacing: .02em; margin: 3px 0 5px; }
.tag { background: transparent; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; font-size: 10.5px; padding: 0 6px; line-height: 18px; }
.tag.place { border-color: rgba(246,200,115,.25); color: #D9C7A6; }
.c-time { font-style: italic; }

/* 真鍮のボタン */
.fab {
  background: linear-gradient(135deg, #A8782C 0%, #E3A948 30%, #F9DB98 50%, #E3A948 70%, #B4842F 100%);
  background-size: 220% 100%; animation: sheen 6s ease-in-out infinite; letter-spacing: .12em;
  box-shadow: 0 12px 32px rgba(227,169,72,.32), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(90,60,15,.35);
}
@keyframes sheen { 0%, 70%, 100% { background-position: 100% 0; } 85% { background-position: 0 0; } }
.btn-main { background: linear-gradient(135deg, #A8782C, #E3A948 30%, #F9DB98 50%, #E3A948 70%, #B4842F); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(90,60,15,.3); }

/* シート */
.sheet { background: linear-gradient(180deg, #221B16, #1C1713 30%); }
.sheet::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-a), transparent); }
.sh-foot { background: #1C1713; }
.sh-title { letter-spacing: .06em; }
.sh-head, .sh-body, .tabs, .sh-foot, .grip { position: relative; z-index: 1; }
.sh-banner { position: absolute; top: 0; right: 0; width: 180px; height: 180px; pointer-events: none; opacity: .45; z-index: 0;
  -webkit-mask-image: radial-gradient(circle at 70% 35%, #000 18%, transparent 66%); mask-image: radial-gradient(circle at 70% 35%, #000 18%, transparent 66%); }
.sh-banner img { width: 100%; height: 100%; object-fit: cover; }
.fld-l { font-family: var(--serif); font-size: 12.5px; color: #C9B99F; letter-spacing: .12em; align-items: center; }
.fld-l::before { content: '◆'; font-size: 6px; color: var(--amber); }
.sec-h { font-family: var(--serif); letter-spacing: .25em; color: #C9B99F; }
.sec-h::after { background: linear-gradient(90deg, rgba(246,200,115,.35), transparent); }
.chip.on { box-shadow: 0 0 12px color-mix(in srgb, var(--c) 25%, transparent); }

/* なにを飲む？：カテゴリタイル（イラスト） */
.cat-tile {
  height: auto; aspect-ratio: .82; padding: 0; overflow: hidden; gap: 0; justify-content: flex-end; position: relative;
  background: var(--art-bg) padding-box, linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, transparent), rgba(246,200,115,.05) 45%, color-mix(in srgb, var(--c) 40%, transparent)) border-box;
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1) translateY(-7%); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(16,12,9,.94) 88%); }
.cat-tile .lbl { position: relative; z-index: 1; padding: 0 0 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cat-tile .lbl b { font-family: var(--serif); font-weight: 800; font-size: 15px; letter-spacing: .12em; }
.cat-tile .lbl small { font-family: var(--num); font-size: 10px; letter-spacing: .35em; color: var(--c); }
.rc { display: flex; gap: 10px; align-items: center; width: 200px; padding: 8px 12px 8px 8px; }
.rc .art { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; flex: none; background: var(--art-bg); }
.rc .art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.rc > div:last-child { min-width: 0; }

/* コレクション */
.zc .thumb { box-shadow: none; border-radius: 0; }
.ach { grid-template-columns: 48px 1fr; }
.medal.img { border: 0; background: none; box-shadow: none; }
.medal.img img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.medal.img.max img { box-shadow: 0 0 16px rgba(227,169,72,.55); }
.tabs { background: #140F0C; box-shadow: inset 0 0 0 1px rgba(246,200,115,.12); }
.tabs button { font-family: var(--serif); letter-spacing: .2em; }
.tabs button.on { background: linear-gradient(180deg, #30261D, #241D17); color: var(--amber2); box-shadow: inset 0 0 0 1px rgba(246,200,115,.35); }

/* 10カテゴリ：最後の「その他」は横長 */
.cat-tile.wide { grid-column: 1 / -1; aspect-ratio: auto; height: 68px; flex-direction: row; justify-content: flex-start; align-items: center; }
.cat-tile.wide img { position: relative; inset: auto; width: 68px; height: 68px; transform: scale(1.15); flex: none; }
.cat-tile.wide::after { background: linear-gradient(90deg, transparent 0, rgba(16,12,9,.6) 70px, rgba(16,12,9,.9)); }
.cat-tile.wide .lbl { flex-direction: row; gap: 12px; padding: 0 0 0 14px; align-items: baseline; }
.ttl-art { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--art-bg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); flex: none; }
.ttl-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.tag.origin { color: var(--text); border-color: color-mix(in srgb, var(--c) 45%, transparent); }

/* 入力シートだけ、カテゴリ色の灯りをさりげなく（ボタンは琥珀のまま） */
.sheet::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 280px; pointer-events: none; z-index: 0;
  border-radius: 22px 22px 0 0; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(90% 100% at 50% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 72%);
}
.sheet.tinted::after { opacity: 1; }
.sheet.tinted::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 70%, transparent), transparent); }
.sheet.tinted .fld-l::before { color: var(--c); }
.sheet.tinted .more-tg svg { color: var(--c); }
.sheet.tinted .sh-head { border-bottom-color: color-mix(in srgb, var(--c) 14%, transparent); }

/* 名前（任意） */
.name-in { border-color: var(--line); background: #1A1512; font-family: var(--serif); font-weight: 600; }
.name-in:focus { border-color: var(--c); }
.name-in::placeholder { font-family: var(--sans); font-weight: 400; color: var(--faint); font-size: 14px; }

/* 図鑑・地図の一覧：写真と情報で押せる場所を分ける */
.zc .thumb, .brow .thumb, .zc .info, .brow .info { cursor: pointer; }
.zc .info:active, .brow .info:active { background: rgba(246,200,115,.06); }
.brow .info { flex: 1; min-width: 0; padding: 4px 0; }

/* 入力のチップを一回り大きく（指で押しやすく） */
.sh-body .chip { min-height: 46px; padding: 0 16px; font-size: 15px; border-radius: 13px; gap: 6px; }
.sh-body .chips { gap: 8px; }
.sh-body .steps { gap: 5px; }
.sh-body .steps .chip { font-size: 13px; padding: 0 2px; }
.sh-body .chip-input { min-height: 46px; border-radius: 13px; }
.sh-body .abv .chip { width: 50px; font-size: 20px; padding: 0; }
.sh-body .abv-in { height: 46px; }
.sh-body .photo-row .chip, .sh-body .photo-prev .chip { min-height: 48px; }
.sh-body .comp .chip { min-height: 28px; font-size: 11px; padding: 0 8px; border-radius: 8px; }
.sh-body .seg .chip { min-height: 36px; font-size: 13px; padding: 0 13px; }
.sh-body .fld { margin-bottom: 20px; }

/* 写真（3枚まで） */
.photo-row { position: relative; }
.photo-note { position: absolute; right: 2px; bottom: -17px; font-size: 10.5px; color: var(--faint); }
.sh-body .photo-row { margin-bottom: 22px; }
.photo-strip { display: flex; gap: 8px; margin-top: 8px; }
.ps-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; position: relative; padding: 0; border: 1px solid var(--line); background: #1A1512; flex: none; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumb.on { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 12px color-mix(in srgb, var(--c) 30%, transparent); }
.ps-thumb.empty { border-style: dashed; opacity: .5; }
.ps-cover { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; text-align: center; padding: 2px 0; background: rgba(16,12,9,.75); color: var(--amber2); font-family: var(--serif); letter-spacing: .2em; }
.photo-prev .acts { margin-top: 10px; }
.photo-prev .photo-row { margin-top: 10px; margin-bottom: 0; }
.thumb { position: relative; }
.ph-count { position: absolute; right: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(16,12,9,.78); color: var(--text); font-size: 10.5px; font-family: var(--num); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(246,200,115,.35); }
.v-dots { position: absolute; bottom: calc(24px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.v-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); }
.v-dots i.on { background: var(--amber2); }

/* 詳しく書く：1項目1行の折りたたみ */
.acc-h { margin-top: 6px; }
.acc-list { display: flex; flex-direction: column; gap: 6px; }
.acc { border-radius: 14px; border: 1px solid rgba(255,255,255,.05); background: #1E1814; transition: border-color .2s; }
.acc.open { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: #211A15; }
.acc-row { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; }
.acc-row:active { transform: none; background: rgba(255,255,255,.03); }
.acc-l { font-family: var(--serif); font-size: 13.5px; color: #C9B99F; letter-spacing: .1em; flex: none; }
.acc-l::before { content: '◆'; font-size: 6px; color: var(--c); margin-right: 8px; vertical-align: 2px; }
.acc-v { flex: 1; text-align: right; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.acc-v.empty { color: var(--faint); font-size: 12.5px; }
.acc-v.auto::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 2px; }
.acc-row svg { flex: none; color: var(--faint); font-size: 16px; transition: transform .2s; }
.acc.open .acc-row svg { transform: rotate(180deg); color: var(--c); }
.acc-body { padding: 2px 12px 14px; }
.acc-body > .fld { margin-bottom: 0; }
.acc-body > .fld > .fld-l { font-size: 0; margin-bottom: 0; }
.acc-body > .fld > .fld-l::before { display: none; }
.acc-body > .fld > .fld-l small { font-size: 11px; margin-bottom: 8px; display: block; }

/* チップのアイコン：国旗・液色の丸 */
.chip .ci { display: inline-flex; align-items: center; flex: none; }
.chip .flag { width: 21px; height: 14px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); display: block; }
.chip .sw { display: block; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sw) 55%, #fff), var(--sw) 60%); box-shadow: 0 0 0 1px rgba(255,255,255,.22), inset 0 -2px 3px rgba(0,0,0,.25); }
.chip:not(.on) .flag, .chip:not(.on) .sw { opacity: .85; }
.tile { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; }
.tile-flag .flag { width: 22px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.tile:not(.l1):not(.l2):not(.l3) .tile-flag { opacity: .45; filter: grayscale(.6); }

/* 利用規約 */
.terms { font-size: 13.5px; line-height: 1.85; color: #CFC3B0; }
.terms h3 { font-family: var(--serif); font-size: 15px; color: var(--text); margin: 20px 0 6px; letter-spacing: .05em; }
.terms h3:first-of-type { margin-top: 8px; }
.terms p { margin: 0 0 8px; }
.terms ul { margin: 0 0 8px; padding-left: 1.2em; }
.terms li { margin-bottom: 4px; }
.terms .tm-lead { color: var(--sub); font-size: 13px; padding: 10px 12px; border-radius: 12px; background: #1A1512; border: 1px solid rgba(246,200,115,.15); }
.terms .tm-strong { color: var(--text); }
.terms h3.tm-strong { color: var(--amber2); }
.terms b { color: var(--amber2); font-weight: 700; }
.terms .tm-date { margin-top: 22px; color: var(--faint); font-size: 12px; text-align: right; }
.terms-foot { flex-direction: column; gap: 10px; }
.tm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); line-height: 1.5; cursor: pointer; }
.tm-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--amber); }
.btn-main:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; animation: none; }

/* 帯が増えても一杯リストだけが伸び縮みするように */
#app { display: flex; flex-direction: column; }
#app > .list { flex: 1; min-height: 0; }

/* iPhone の Safari 向けの注意 */
.ios-warn { margin: 0 16px 8px; padding: 10px 14px; border-radius: 12px; text-align: left; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(135deg, rgba(194,65,90,.28), rgba(194,65,90,.14)); border: 1px solid rgba(229,138,155,.55); }
.ios-warn b { font-size: 13px; color: #FFE3E8; }
.ios-warn span { font-size: 12px; color: #F2B8C3; }
.ios-box { margin-top: 4px; }
.ios-alert { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.75; color: #FFE3E8;
  background: rgba(194,65,90,.2); border: 1px solid rgba(229,138,155,.55); }
.ios-alert b, .ios-note b, .ios-steps b { color: var(--amber2); }
.ios-alert b { color: #fff; }
.ios-steps { margin: 0 0 10px; padding-left: 1.4em; font-size: 14px; line-height: 1.9; color: var(--text); }
.ios-note { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--sub); }
.terms .tm-ios { padding: 12px 14px; border-radius: 12px; background: rgba(194,65,90,.18); border: 1px solid rgba(229,138,155,.5); color: #FFE3E8; }
.terms .tm-ios b { color: #fff; }
.rc .art.photo img { transform: none; }

/* 好み */
.tabs button { letter-spacing: .12em; }
.tp { display: flex; flex-direction: column; gap: 14px; }
.tp-head { display: flex; align-items: center; gap: 12px; }
.tp-art { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--art-bg); flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.tp-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.tp-head b { display: block; font-family: var(--serif); font-size: 18px; }
.tp-head small { color: var(--sub); font-size: 12px; }
.tp-summary { padding: 14px 16px; border-radius: 14px; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), #1E1814; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.tp-summary p { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.9; color: var(--text); }
.tp-summary p::before { content: '◆'; color: var(--c); font-size: 7px; margin-right: 8px; vertical-align: 3px; }
.tp-sec { padding: 12px 14px; border-radius: 14px; background: #1E1814; border: 1px solid rgba(255,255,255,.05); }
.tp-l { font-family: var(--serif); font-size: 13px; color: #C9B99F; letter-spacing: .1em; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.tp-l span { font-family: var(--sans); font-size: 11.5px; color: var(--sub); letter-spacing: 0; }
.tp-row, .tp-best { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.tp-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.tp-bar { height: 8px; border-radius: 4px; background: #14100D; overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000), var(--c)); }
.tp-n { font-family: var(--num); font-size: 14px; color: var(--sub); white-space: nowrap; }
.tp-n em { font-style: normal; color: var(--amber); margin-left: 6px; font-size: 12.5px; }
.tp-n small { font-size: 11px; color: var(--faint); margin-left: 2px; }
.tp-best { grid-template-columns: 22px 1fr auto; }
.tp-rank { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 12px; color: #2A1D0A; background: linear-gradient(135deg, #B9832E, #F6C873); }
.tp-scale { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 11.5px; color: var(--sub); }
.tp-track { position: relative; height: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.tp-track i { border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, #14100D); }
.tp-track b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c)); box-shadow: 0 0 0 2px #1E1814, 0 0 12px var(--c); }
.tp-nums { display: flex; gap: 18px; flex-wrap: wrap; }
.tp-nums small { display: block; font-size: 11px; color: var(--sub); }
.tp-nums b { font-family: var(--num); font-size: 24px; font-weight: 600; color: var(--text); }
.tp-note { margin: 0; font-size: 11.5px; color: var(--faint); text-align: center; }

/* 実績アイコン：中央に実績ごとの絵、縁の色で段階、右下に小さなメダル */
.ach { grid-template-columns: 58px 1fr; }
.badge { position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none; }
.badge-ic { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1); background: var(--art-bg); display: block;
  box-shadow: 0 0 0 2px #2A221B, 0 0 0 3px rgba(255,255,255,.08); }
.badge.locked .badge-ic { filter: grayscale(1) brightness(.5); opacity: .55; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.badge.t1 .badge-ic { box-shadow: 0 0 0 2px #1E1814, 0 0 0 4px #B8794A; }
.badge.t2 .badge-ic { box-shadow: 0 0 0 2px #1E1814, 0 0 0 4px #C9CED4; }
.badge.t3 .badge-ic, .badge.max .badge-ic { box-shadow: 0 0 0 2px #1E1814, 0 0 0 4px #E3A948, 0 0 18px rgba(227,169,72,.45); }
.badge .pip { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #241D17, 0 2px 6px rgba(0,0,0,.5); }

/* 実績解除の帯：アイコンつき */
.toast.gold { padding: 8px 18px 8px 8px; gap: 12px; max-width: calc(100vw - 32px); white-space: normal; animation: goldIn .5s var(--ease-spring); }
.toast-ic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px #FFF1CC, 0 0 0 3px rgba(90,60,15,.5), 0 4px 12px rgba(90,60,15,.4); }
@keyframes goldIn { from { transform: translate(-50%, 14px) scale(.92); } }

/* ことば帖（「？」と説明シート） */
.q-btn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; flex: none;
  font-size: 11px; font-family: var(--serif); font-weight: 800; color: var(--c); letter-spacing: 0;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); vertical-align: 1px; }
.q-btn:active { transform: scale(.9); }
.fld-l .q-btn { margin-left: 2px; }
.acc-l { display: inline-flex; align-items: center; }
.acc-body .fld-l .q-btn { display: none; }
.comp-r .fld-l { align-items: center; }
.comp button.chip { cursor: pointer; }
.gl-sheet { max-height: 78dvh; }
.gl-mark { font-family: var(--serif); color: var(--amber2); margin-right: 2px; }
.gl-intro { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #1A1512; border: 1px solid rgba(246,200,115,.15); font-size: 13.5px; line-height: 1.85; color: #D9CDB8; }
.gl-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gl-item { padding: 12px 14px; border-radius: 12px; background: #1E1814; border: 1px solid rgba(255,255,255,.05); }
.gl-item.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 9%, #1E1814); }
.gl-item dt { font-family: var(--serif); font-weight: 800; font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.gl-item dt small { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--c); padding: 1px 7px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.gl-item dd { margin: 4px 0 0; font-size: 13px; line-height: 1.8; color: #C7BBA8; }

/* SNS のアプリ内ブラウザで開かれたときの案内 */
.inapp { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(227,169,72,.16), transparent 70%), rgba(14,11,9,.97); }
.ia-card { width: 100%; max-width: 400px; padding: 26px 22px 18px; border-radius: 20px; text-align: left;
  background: linear-gradient(180deg, #241D17, #1C1713) padding-box, var(--gold-edge) border-box; border: 1px solid transparent; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ia-brand { font-family: var(--num); font-style: italic; font-weight: 600; font-size: 30px; text-align: center;
  background: linear-gradient(100deg, #B9832E, #F6C873 40%, #FFF1CC 55%, #E3A948); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ia-card h2 { margin: 10px 0 12px; text-align: center; font-family: var(--serif); font-size: 20px; color: var(--text); letter-spacing: .04em; }
.ia-lead { margin: 0 0 12px; font-size: 13.5px; line-height: 1.8; color: #CFC3B0; }
.ia-lead b, .ia-steps b { color: var(--amber2); }
.ia-steps { margin: 0 0 16px; padding: 12px 14px 12px 32px; border-radius: 12px; background: #17120F; border: 1px solid rgba(246,200,115,.15); font-size: 14px; line-height: 1.9; color: var(--text); }
.ia-btns { display: flex; flex-direction: column; gap: 8px; }
.ia-btns .btn-main, .ia-btns .btn-sub { width: 100%; justify-content: center; flex: none; }
.ia-url { margin: 10px 0 0; font-size: 11px; color: var(--faint); text-align: center; word-break: break-all; }
.ia-skip { display: block; margin: 14px auto 0; font-size: 11.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }

/* コレクション：メニューにアイコン */
.tabs-ic button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; }
.tabs-ic button svg { font-size: 18px; opacity: .75; flex: none; }
.tabs-ic button.on svg { opacity: 1; color: var(--amber2); filter: drop-shadow(0 0 6px rgba(246,200,115,.35)); }
.seg .chip { gap: 7px; padding-left: 8px; }
.seg .chip:not(:has(.seg-ic)) { padding-left: 13px; }
.seg-ic { display: inline-flex; align-items: center; flex: none; }
.seg-ic svg { font-size: 15px; color: var(--c); }
.seg-ic .flag { width: 20px; height: 13px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.seg-art { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: block; flex: none; background: var(--art-bg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent); }
.seg-art img { width: 100%; height: 100%; object-fit: cover; }
img.seg-art { object-fit: cover; }
.seg-art img { transform: scale(1.3); }
.seg .chip:not(.on) .seg-art { filter: saturate(.7) brightness(.85); }
