/* FUT Snatcher phone app — mobile-first, same graphite / lime / cyan look as the desktop app and website; safe areas for notched phones */
.appbody { background: var(--bg); min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
.apptop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(13, 16, 21, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.applogo { height: 22px; width: auto; }
.appmain { max-width: 560px; margin: 0 auto; padding: 14px 14px 20px; }
.apane > * + * { margin-top: 12px; }
.ah { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 2px 8px; font-weight: 700; }
.ah0 { font-size: 15px; margin: 0 0 10px; }
.center { text-align: center; }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.acard .btn { margin: 8px 8px 0 0; }

/* live */
.acard.live { padding: 16px; }
.lvrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lvdev { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--dim); flex: 0 0 auto; }
.dot.on { background: var(--cyan); }
.dot.run { background: var(--lime); box-shadow: 0 0 0 0 rgba(183, 243, 74, .6); animation: lvpulse 1.6s infinite; }
@keyframes lvpulse { 0% { box-shadow: 0 0 0 0 rgba(183, 243, 74, .55); } 70% { box-shadow: 0 0 0 9px rgba(183, 243, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(183, 243, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.run { animation: none; } }
.lvnow { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin: 14px 0 4px; }
.lvnow .aart { grid-row: span 2; }
.lvnow b { font-size: 18px; }
.lvgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.lvgrid div { background: var(--card2); border-radius: 10px; padding: 8px; text-align: center; }
.lvgrid small { display: block; color: var(--muted); font-size: 11px; }
.lvgrid b { font-size: 16px; }
.lvfoot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.pos { color: var(--lime); } .neg { color: var(--red); }
.abig { width: 100%; border: 0; border-radius: 12px; padding: 15px; font: 700 16px var(--font); background: var(--lime); color: var(--lime-ink); cursor: pointer; }
.abig.danger { background: var(--red); color: #fff; }
.abig:disabled { opacity: .6; cursor: default; }
.anote { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* tiles */
.atiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.atile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.atile small { display: block; color: var(--muted); font-size: 12px; }
.atile b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.atile.pos b { color: var(--lime); } .atile.neg b { color: var(--red); }

/* rows */
.alist { display: flex; flex-direction: column; gap: 8px; }
.arow { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.aart { width: 44px; height: 44px; border-radius: 9px; object-fit: contain; background: var(--card2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: var(--muted); }
.aart.k-sbc { color: var(--cyan); } .aart.k-session { color: var(--lime); } .aart.k-alert { color: var(--red); }
.atxt { min-width: 0; display: flex; flex-direction: column; }
.atxt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atxt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aamt { font-weight: 800; white-space: nowrap; }

/* chips + segments */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 1px solid var(--line2); background: transparent; color: var(--text); border-radius: 999px; padding: 7px 14px; font: 600 13px var(--font); cursor: pointer; }
.chips button.on { border-color: var(--lime); color: var(--lime); background: rgba(183, 243, 74, .08); }
.seg.full { display: grid; grid-template-columns: repeat(4, 1fr); }
.seg.full button { width: 100%; }

/* notification settings */
.prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.prow:last-child { border-bottom: 0; }
input.sw { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line2); position: relative; flex: 0 0 auto; cursor: pointer; transition: background .15s; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
input.sw:checked { background: var(--lime); }
input.sw:checked::after { transform: translateX(18px); }
.devrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.devrow:last-child { border-bottom: 0; }

/* bottom tab bar */
.atabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(17, 21, 27, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.atabs button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 11px var(--font); padding: 6px 0; cursor: pointer; position: relative; }
.atabs svg { width: 22px; height: 22px; }
.atabs button.on { color: var(--lime); }
.atabs button.on::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime); }
.install b { display: block; margin-bottom: 4px; }
@media (min-width: 700px) { .atiles { grid-template-columns: repeat(4, 1fr); } }

/* the website's section spacing doesn't apply inside the phone app */
.appbody section.apane { padding: 0; }
.lvrow .lvdev { flex-basis: 100%; margin-left: 18px; margin-top: -2px; }
