/* ==========================================================================
   PANPALS · PHONE PROTOTYPE (app'in simulator ekranlarına göre)
   Telefonun boyu: .phone içindeki height. Ekrana sığması için ekran yüksekliğine göre küçülür.
   ========================================================================== */

.phone { --wine: #481D24; --mauve: #8e5a63; --lav: #e6e1e6; --g: #ececec;
  height: min(600px, calc(100vh - 150px)); min-height: 480px; aspect-ratio: 9 / 19.3; max-width: 84vw;
  border-radius: 44px; padding: 9px; background: #1c1012; position: relative; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(43, 18, 21, .6), 0 0 0 1px rgba(0,0,0,.2); user-select: none; -webkit-user-select: none; }
.app { text-align: left; position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-family: "Roboto", system-ui, sans-serif; font-size: 12px; line-height: 1.3; color: #1b1b1b; }
:where(.app button) { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 23px; border-radius: 20px; background: #1c1012; z-index: 30; }
.a-status { height: 38px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 0 28px; font-size: 12.5px; font-weight: 600; position: relative; z-index: 2; }
.a-status svg { height: 10px; width: auto; }
.a-status .sig { display: flex; }
.a-body { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; cursor: grab; }
.a-body.dragging { cursor: grabbing; }
.a-body::-webkit-scrollbar { display: none; }
.a-view { display: none; }
.a-view.on { display: block; animation: aIn .22s ease-out; }
@keyframes aIn { from { opacity: 0; } to { opacity: 1; } }
.a-spacer { height: 70px; }

/* Splash */
.a-splash { position: absolute; inset: 0; z-index: 25; background: linear-gradient(160deg, #722e3b, #5a2530 55%, #3e1a20); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; transition: opacity .5s ease, visibility .5s; }
.a-splash.gone { opacity: 0; visibility: hidden; }
.a-splash h5 { margin: 0; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.a-splash img { width: 86%; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.a-splash .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .8s linear infinite; margin-top: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Feed */
.a-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 10px; position: sticky; top: 0; background: #fff; z-index: 3; }
.a-brand { font-size: 21px; font-weight: 700; color: var(--wine); letter-spacing: -0.01em; }
.a-brand.big { display: block; text-align: center; font-size: 22px; margin: 6px 0 10px; }
.a-ic { width: 26px; height: 26px; display: grid; place-items: center; color: #222; flex-shrink: 0; position: relative; }
.a-ic svg { width: 18px; height: 18px; }
.a-bell::after { content: ""; position: absolute; top: 1px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; }
.a-post-head { display: flex; align-items: center; gap: 8px; padding: 2px 10px 8px; min-width: 0; }
.a-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.a-name { flex: 1; min-width: 0; text-align: left; font-size: 12.5px; color: var(--wine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-name b { font-weight: 700; }
.a-more { width: 18px; color: #222; flex-shrink: 0; }
.a-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--g); cursor: pointer; }
.a-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.a-pop { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%) scale(0); color: var(--wine); pointer-events: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.a-pop.go { animation: aPop .75s ease-out forwards; }
@keyframes aPop { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.12); opacity: 1; } 45% { transform: translate(-50%,-50%) scale(.96); } 75% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.a-meta { padding: 8px 10px 14px; }
.a-acts { display: flex; align-items: center; gap: 10px; }
.a-like { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #222; }
.a-like svg { width: 18px; height: 18px; color: var(--wine); }
.a-like.on svg { fill: var(--wine); animation: aTap .3s ease-out; }
@keyframes aTap { 50% { transform: scale(1.3); } }
.a-cm { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #222; }
.a-cm svg { width: 17px; height: 17px; }
.a-cap { font-size: 13.5px; font-weight: 700; color: var(--wine); margin: 5px 0 3px; }
.a-ago { font-size: 11px; color: var(--wine); opacity: .85; }

/* Floating glass tab bar */
.a-tabs { --tab-bg: #f4f1f1; position: absolute; left: 10px; right: 10px; bottom: 14px; height: 50px; z-index: 12; display: flex; justify-content: space-around; align-items: center; padding: 3px;
  background: rgba(250, 248, 248, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.7), 0 0 0 1px rgba(0,0,0,.05); transition: transform .3s, opacity .3s; }
.a-tab { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #111; font-size: 10px; font-weight: 500; border-radius: 999px; transition: background .25s, color .25s; }
.a-tab svg { width: 19px; height: 19px; }
.a-tab.on { --tab-bg: #c9c4c4; background: rgba(0, 0, 0, .1); color: #fff; }
.a-tab.on svg { color: rgba(255,255,255,.95); }
.app.no-tabs .a-tabs { transform: translateY(80px); opacity: 0; pointer-events: none; }

/* Post: pick */
.a-title { text-align: center; font-size: 19px; font-weight: 700; color: var(--wine); margin: 4px 0 2px; }
.a-next { text-align: right; padding: 0 12px 6px; }
.a-next button { color: var(--wine); font-size: 13.5px; font-weight: 500; }
.a-crop { position: relative; aspect-ratio: 1 / 1.33; overflow: hidden; }
.a-crop img { width: 100%; height: 100%; object-fit: cover; }
.a-crop i { position: absolute; background: rgba(255,255,255,.55); }
.a-crop .g1, .a-crop .g2 { top: 0; bottom: 0; width: 1px; }
.a-crop .g1 { left: 33.3%; } .a-crop .g2 { left: 66.6%; }
.a-crop .g3, .a-crop .g4 { left: 0; right: 0; height: 1px; }
.a-crop .g3 { top: 33.3%; } .a-crop .g4 { top: 66.6%; }
.a-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 5px; }
.a-gallery .tile { aspect-ratio: 1 / 1.05; border-radius: 10px; background: #dcdcdc; color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.a-gallery .tile svg { width: 30%; height: 30%; }
.a-gallery .tile.light { background: #e4e4e4; color: #f6f6f6; }
.a-gallery .tile.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-gallery .tile.sel { box-shadow: inset 0 0 0 2px #1d8cff; }
.a-gallery .tick { position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; background: #1d8cff; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #fff; }
.a-gallery .tick svg { width: 11px; height: 11px; }

/* Post: compose */
.a-backrow { display: flex; align-items: center; gap: 10px; padding: 2px 12px 8px; }
.a-backrow button { color: var(--wine); font-size: 12.5px; }
.a-backrow span { font-size: 19px; font-weight: 700; color: var(--wine); }
.a-cimg { margin: 0 12px; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1.33; }
.a-cimg img { width: 100%; height: 100%; object-fit: cover; }
.a-music { display: flex; align-items: center; gap: 4px; margin: 12px 18px 8px; width: calc(100% - 36px); background: var(--wine); color: #fff; border-radius: 10px; padding: 9px 10px; font-size: 12px; text-align: left; }
.a-music svg { width: 16px; height: 16px; flex-shrink: 0; }
.a-music svg + svg { width: 11px; height: 11px; margin-right: 4px; }
.a-music span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-captionbox { display: block; margin: 0 12px; width: calc(100% - 24px); height: 46px; border: 0; border-radius: 10px; background: #e8e8e8; padding: 9px 10px; font: inherit; font-size: 13px; resize: none; outline: none; }
.a-share { display: block; margin: 16px 14px 22px; width: calc(100% - 28px); background: var(--wine); color: #fff; border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 6px rgba(0,0,0,.25); }

/* PalStats */
.a-lb { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--wine); font-weight: 700; font-size: 14.5px; letter-spacing: .06em; padding-bottom: 10px; margin: 0 12px 10px; box-shadow: 0 1px 0 #d4d0d0; }
.a-lb svg { width: 18px; height: 18px; flex-shrink: 0; }
.a-h { color: var(--wine); font-weight: 500; font-size: 13.5px; letter-spacing: .08em; padding: 4px 12px 8px; }
.a-h.c { font-weight: 700; padding: 14px 12px 6px 46px; }
.a-h small { display: block; font-weight: 400; font-size: 10px; letter-spacing: .14em; margin-top: 2px; }
.a-fame { display: flex; align-items: center; gap: 10px; padding: 6px 12px; font-size: 11.5px; color: var(--wine); }
.a-fame .fi { width: 24px; height: 24px; flex-shrink: 0; }
.a-fame .fi svg { width: 100%; height: 100%; }
.a-fame b { font-weight: 700; }
.a-card { margin: 0 10px; background: #ededed; border-radius: 16px; padding: 6px 12px; }
.a-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--wine); }
.a-row .m { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.a-row .m svg { width: 100%; height: 100%; }
.a-row .m em { position: absolute; top: 2px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 7px; font-weight: 600; }
.a-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-quote { text-align: center; color: #333; font-size: 11px; margin: 14px 16px 0; }

/* Profile */
.a-ptop { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; padding: 4px 12px 8px; }
.a-ptop > span:nth-child(2) { text-align: center; font-size: 20px; font-weight: 700; color: var(--wine); }
.a-ptop .a-ic { color: var(--wine); }
.a-pback { color: var(--wine); font-size: 16px; }
.a-phead { display: flex; gap: 14px; padding: 4px 14px 14px; align-items: flex-start; }
.a-pleft { width: 76px; flex-shrink: 0; }
.a-pleft img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 8px; }
.a-pleft b { display: block; font-weight: 400; color: var(--wine); font-size: 12.5px; white-space: nowrap; }
.a-pleft small { color: var(--wine); font-size: 10.5px; }
.a-pright { flex: 1; min-width: 0; padding-top: 6px; }
.a-pname { font-size: 21px; font-weight: 700; color: #3a1a20; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pnums { display: flex; justify-content: space-between; margin-top: 6px; text-align: center; }
.a-pnums span { font-size: 10.5px; color: #3a1a20; display: flex; flex-direction: column; }
.a-pnums b { font-size: 13px; font-weight: 600; }
.a-followbtn { margin-top: 8px; background: var(--wine); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 11.5px; }
.a-followbtn.on { background: #fff; color: var(--wine); box-shadow: inset 0 0 0 1.5px var(--wine); }
.a-ptabs { display: flex; box-shadow: 0 1px 0 #e8e5e5; margin-bottom: 12px; }
.a-ptabs button { flex: 1; padding: 6px 0 8px; color: #c9c4c4; display: grid; place-items: center; position: relative; }
.a-ptabs button svg { width: 20px; height: 20px; }
.a-ptabs button.on { color: var(--wine); }
.a-ptabs button.on::after { content: ""; position: absolute; bottom: 0; left: 35%; right: 35%; height: 2px; background: var(--wine); }
.a-pills { padding: 0 14px; display: flex; flex-direction: column; gap: 7px; }
.a-spill { display: flex; align-items: center; height: 32px; border-radius: 999px; background: var(--mauve); overflow: hidden; font-size: 11px; width: 100%; border: 0; padding: 0; text-align: left; }
.a-spill .i { position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.a-spill .i svg { width: 15px; height: 15px; }
.a-spill .l { position: relative; z-index: 1; flex: 0 0 auto; width: calc(48% - 16px); height: 100%; margin-left: -16px; padding-left: 24px; display: flex; align-items: center; background: var(--lav); border-radius: 0 999px 999px 0; color: var(--wine); white-space: nowrap; overflow: hidden; font-size: 11px; }
.a-spill .v { flex: 1; text-align: right; padding: 0 12px 0 6px; font-size: 10.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-week { margin: 14px 4px 0; background: linear-gradient(#ecebeb, #d9cbcd); border-radius: 18px 18px 0 0; padding: 14px 12px 10px; }
.a-week b { display: block; color: var(--wine); font-size: 14px; }
.a-week span { font-size: 11.5px; color: #333; }
.a-gridchart { margin-top: 10px; }
.a-gridchart svg { width: 100%; height: 120px; display: block; }
.a-gridchart i { position: relative; height: 1px; background: rgba(0,0,0,.5); }
.a-gridchart i::before { content: attr(data-n); position: absolute; left: -2px; top: -12px; font-size: 9px; font-style: normal; color: #333; }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.a-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.a-toast { position: absolute; left: 12px; right: 12px; bottom: 76px; background: rgba(28, 16, 18, .92); color: #fff; border-radius: 12px; padding: 9px 12px; font-size: 12px; text-align: center; transform: translateY(14px); opacity: 0; transition: .25s ease-out; pointer-events: none; z-index: 20; }
.a-toast.show { opacity: 1; transform: none; }
.a-home { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 96px; height: 4px; border-radius: 4px; background: #111; z-index: 13; }

/* Change goal */
.app.wine .a-status { background: #fff; }
.a-ghead { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; padding: 2px 10px 10px; background: #fff; }
.a-ghead span:nth-child(2) { text-align: center; font-size: 14px; font-weight: 600; color: #111; }
.a-gback { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.15); color: var(--wine); display: grid; place-items: center; }
.a-gback svg { width: 15px; height: 15px; }
.a-gbody { background: #481D24; color: #fff; text-align: center; padding: 20px 14px 10px; min-height: 520px; }
.a-gbody h5 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.a-gbody p { margin: 0 0 16px; font-size: 11.5px; opacity: .95; }
.a-ggrp { font-size: 14px; margin: 6px 0 8px; }
.a-gopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.a-gopt { background: #fff; color: #111; border-radius: 12px; padding: 10px 6px; display: flex; align-items: center; gap: 5px; text-align: center; font-size: 10.5px; transition: transform .15s, box-shadow .2s; }
.a-gopt .gi { width: 18px; height: 18px; color: var(--wine); flex-shrink: 0; }
.a-gopt .gi svg { width: 100%; height: 100%; }
.a-gopt b { display: block; font-size: 12.5px; font-weight: 600; }
.a-gopt.sel { box-shadow: 0 0 0 3px #c79aa2; transform: scale(1.03); }
.a-gsave { display: block; margin: 18px auto 0; width: 62%; background: #fff; color: #111; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; }
.a-spill.tap { width: 100%; padding: 0; cursor: pointer; }
.a-spill.tap .v::after { content: " ›"; }

/* First-visit tap hint */
.a-hint { position: absolute; z-index: 15; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; transition: opacity .4s; }
.a-hint i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: tapPulse 1.6s ease-out infinite; }
.a-hint span { background: rgba(28,16,18,.85); color: #fff; font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.a-hint.gone { opacity: 0; }
@keyframes tapPulse { 0% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { transform: scale(1); box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { transform: scale(.8); } }

.a-pph { width: 76px; height: 76px; border-radius: 50%; background: #e6e1e3; color: #b9adb0; display: grid; place-items: center; margin-bottom: 8px; --tab-bg: #e6e1e3; }
.a-pph svg { width: 76px; height: 76px; }
.a-avph { display: grid; place-items: center; background: #e6e1e3; color: #b9adb0; --tab-bg: #e6e1e3; }
.a-avph svg { width: 100%; height: 100%; }
/* Pan of Fame: one line each */
.a-fame { gap: 7px; padding: 5px 10px; font-size: 10.2px; white-space: nowrap; }
.a-fame .fi { width: 15px; height: 15px; }
.a-fame > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Feed photos keep their own shape (portrait, square or landscape), like in the app */
.a-photo { aspect-ratio: auto; }
.a-photo img { height: auto; display: block; }

.a-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin: 2px 0 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 10.5px; }
.a-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.a-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.a-tag b { font-weight: 500; opacity: 1; }
.a-cap { font-weight: 500; color: #222; }
.a-spill.tap { text-align: left; font: inherit; font-size: 11px; color: inherit; }

.a-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a-who .a-name { flex: none; }
.a-listen { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--wine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-listen svg { width: 12px; height: 12px; flex-shrink: 0; }
.a-spill.tap .v::after { content: ""; }
