/* App 样式（二）：相册、地图、Ohana、漂流瓶、通缉令、回收站、设置、关于 */

/* ---------- 相册 ---------- */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; padding: 6px; }
.polaroid { padding: 8px 8px 4px; border: 0; background: #fffdf6; color: var(--ink); transform: rotate(var(--r)); box-shadow: 3px 4px 0 #0007; transition: transform .2s var(--pop); text-align: center; line-height: 18px; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) scale(1.06); z-index: 1; }
.polaroid p { margin-top: 6px; min-height: 36px; }
.polaroid__pic { height: 128px; display: grid; place-items: end center; overflow: hidden; }
.polaroid__pic .sticker { height: 112px; }
.scene--beach { background: linear-gradient(#7cc8f5 0 50%, #3cc4dc 50% 70%, #ffe7b3 70%); }
.scene--sunset { background: linear-gradient(#5e3483, #e06a6a 45%, #ffb35c 60%, #6b3f7a 60%); }
.scene--night { background: radial-gradient(circle at 75% 25%, #ffe7b3 0 6%, transparent 7%), linear-gradient(#060920, #2a2c72); }
.scene--lab { background: repeating-linear-gradient(0deg, #0f3a2a 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, #0f3a2a 0 1px, transparent 1px 14px), #0a2318; }
.scene--home { background: repeating-linear-gradient(90deg, #a8744a 0 18px, #9a6a42 18px 20px); }
.scene--garden { background: radial-gradient(circle at 20% 30%, #ff8fc8 0 5%, transparent 6%), radial-gradient(circle at 80% 20%, #ffd23f 0 4%, transparent 5%), linear-gradient(#bfe8fa 0 40%, #4cc38a 40%); }
.scene--rain { background: repeating-linear-gradient(110deg, #9cc0ff33 0 2px, transparent 2px 12px), linear-gradient(#4a5a7a, #2a3456); }
.scene--stage { background: radial-gradient(ellipse at 50% 0%, #ffe7b3cc 0 35%, transparent 60%), #2a0f3a; }
.lightbox { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: #060920e6; animation: pop .2s steps(3); }
.lightbox__fig { width: min(420px, 100%); padding: 12px 12px 10px; background: #fffdf6; color: var(--ink); box-shadow: 6px 6px 0 #000a; }
.lightbox__pic { height: 280px; display: grid; place-items: end center; overflow: hidden; }
.lightbox__pic .sticker { height: 250px; }
.lightbox__fig figcaption { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0; }
.lightbox__fig figcaption span { color: #6b7393; }
.lightbox__nav { display: flex; justify-content: space-between; gap: 10px; padding: 3px; }
.fridge { background: linear-gradient(#e8edf5, #cfd7e6); min-height: 220px; box-shadow: inset 0 0 0 3px var(--ink); padding: 18px; }
.fridge .empty { color: #5a6380; grid-column: 1 / -1; }
.magnet { justify-self: center; padding: 6px; background: #fff; transform: rotate(var(--r)); box-shadow: 2px 3px 0 #0005; position: relative; }
.magnet::before { content: ''; position: absolute; top: -6px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--hibiscus); box-shadow: 1px 2px 0 #0006; }
.magnet img { display: block; width: 128px; height: 128px; image-rendering: pixelated; }

/* ---------- 地图 ---------- */
.map { position: relative; box-shadow: 0 0 0 3px var(--ink); }
.map__cv { display: block; width: 100%; aspect-ratio: 150 / 86; image-rendering: pixelated; }
.pin { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -18px 0 0 -9px; padding: 0; border: 0; background: none; }
.pin::before { content: ''; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--hibiscus); box-shadow: 0 0 0 2px var(--ink); animation: hop 1.4s steps(2) infinite; }
.pin span { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 0 6px; white-space: nowrap; background: var(--ink); line-height: 18px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pin:hover span, .pin:focus-visible span, .pin.is-on span { opacity: 1; }
.pin.is-on::before { background: var(--sun); }
.map__card { display: flex; align-items: center; gap: 14px; min-height: 96px; margin-top: 14px; padding: 8px 12px; background: var(--panel-2); animation: rise .2s steps(2); }
.map__st { height: 84px; flex: none; }
.map__card b { color: var(--sun); font-weight: normal; }
.map__card p { line-height: 20px; }

/* ---------- Ohana ---------- */
.ohana { display: grid; gap: 12px; margin-top: 14px; }
.ohana li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.ohana i { width: 40px; height: 40px; display: grid; place-items: center; font: 24px/1 'Fusion Pixel', monospace; color: var(--ink); background: var(--c); box-shadow: 3px 3px 0 var(--ink); }
.ohana b { color: var(--c); font-weight: normal; }
.ohana p { line-height: 20px; }
.ohana__you .btn { margin-top: 8px; }

/* ---------- 漂流瓶 ---------- */
.sea { position: relative; height: 60px; margin: -16px -18px 14px; overflow: hidden; background: linear-gradient(#7cc8f5, #3cc4dc 60%, #25a0c6); }
.sea__waves { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: repeating-linear-gradient(90deg, #ffffff66 0 10px, transparent 10px 30px); animation: waves 3s linear infinite; }
@keyframes waves { to { background-position: 60px 0; } }
.sea__bottle { position: absolute; left: 10%; bottom: 10px; width: 14px; height: 26px; background: #9fd8ef; box-shadow: 0 0 0 2px var(--ink), inset 0 -10px 0 #ffe7b3; animation: throw 1.6s var(--ease) forwards; }
@keyframes throw { 0% { transform: translate(0, 0) rotate(0); } 40% { transform: translate(140px, -40px) rotate(200deg); } 100% { transform: translate(360px, 6px) rotate(380deg); opacity: 0; } }
.bottle__form { display: grid; gap: 10px; padding: 3px; }
.bottle__form label { display: grid; gap: 6px; color: var(--dim); }
.bottle__form .btn { justify-self: start; }
.bottle__pick { display: grid; gap: 10px; margin-top: 18px; padding: 3px; justify-items: start; }
.bottle__note { padding: 8px 12px; background: #fffdf6; color: var(--ink); line-height: 20px; box-shadow: 3px 3px 0 #0007; transform: rotate(-1deg); animation: pop .25s steps(3); }
.bottle__mine { display: grid; gap: 10px; }
.bottle__mine li { padding: 6px 10px; background: var(--panel-2); border-left: 3px solid var(--angel); }
.bottle__mine b { color: var(--angel); font-weight: normal; }
.bottle__mine p { line-height: 20px; overflow-wrap: anywhere; }

/* ---------- 通缉令 ---------- */
.wanted { position: relative; display: grid; justify-items: center; padding: 16px; background: #f1dfb4; color: #5a3a1a; box-shadow: inset 0 0 0 4px #c9a76a, inset 0 0 40px #a6804066; text-align: center; overflow: hidden; }
.wanted__org { letter-spacing: .3em; }
.wanted__title { font-size: 48px; line-height: 1.1; color: #8a2a1a; letter-spacing: .1em; }
.wanted__pic { margin: 8px 0; padding: 6px; background: #fffaf0; box-shadow: 0 0 0 3px #5a3a1a; }
.wanted__pic .sticker { height: 150px; filter: sepia(.35); }
.wanted__name { font-size: 24px; line-height: 1.4; }
.wanted__list li::before { content: '· '; }
.wanted__reward { margin-top: 8px; padding: 2px 10px; background: #8a2a1a; color: #f1dfb4; }
.wanted__stamp { position: absolute; top: 46%; left: 50%; display: grid; padding: 4px 16px; border: 4px solid var(--hibiscus); color: var(--hibiscus); font-size: 36px; line-height: 1.2; transform: translate(-50%, -50%) rotate(-16deg); background: #f1dfb4cc; }
.wanted__stamp small { font-size: 12px; }
.wanted__stamp.is-hit { animation: stamp .35s var(--pop); }
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-16deg) scale(2.2); opacity: 0; } }
.wanted__acts { display: flex; justify-content: center; margin-top: 14px; padding: 3px; }

/* ---------- 回收站 ---------- */
.trash { display: grid; gap: 6px; margin: 12px 0; transition: transform .6s var(--ease), opacity .6s; }
.trash li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 2px 8px; background: var(--panel-2); }
.trash__size { color: var(--dim); }
.trash.is-eaten { transform: scale(.2) translate(200px, 120px); opacity: 0; }
.trash__acts { display: flex; justify-content: flex-end; padding: 3px; }

/* ---------- 设置 / 关于 ---------- */
.set + .set { margin-top: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 10px; padding: 3px; }
.check, .range { display: flex; align-items: center; gap: 10px; }
.check input { width: 16px; height: 16px; accent-color: var(--sun); }
.range input { flex: 1; accent-color: var(--sun); }
.about { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.about__st { height: 120px; }

@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; }
  .lightbox__pic { height: 200px; }
  .lightbox__pic .sticker { height: 180px; }
}
