/* VNGRD// POCKET — shared by the app (index.html) and the installable Pocket app (pocket/) */
/* ══ POCKET — a translator in your pocket ══════════════════════════════════════ */
.ip-overlay { display: none; position: fixed; inset: 0; z-index: 100300; flex-direction: column; color: #f2f6fb; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #0d1622 0%, #05070c 60%); visibility: visible !important; }
.ip-overlay.show { display: flex; }
.ip-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ip-x { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 15px; cursor: pointer; }
.ip-pair { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.ip-side { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ip-tag { font: 800 8px Orbitron, sans-serif; letter-spacing: .2em; color: rgba(255,255,255,.45); }
.ip-lang { appearance: none; -webkit-appearance: none; max-width: 38vw; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(0,243,255,.35); background: rgba(0,243,255,.08); color: #fff; font: 600 15px -apple-system, system-ui, sans-serif; text-align: center; cursor: pointer; }
.ip-side:last-child .ip-lang { border-color: rgba(255,179,71,.45); background: rgba(255,179,71,.08); }
.ip-swap { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer; margin-top: 14px; }
.ip-tools { flex: 0 0 auto; display: flex; gap: 6px; }
.ip-chip { border: 0; border-radius: 999px; padding: 8px 11px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); font: 700 9px Orbitron, sans-serif; letter-spacing: .14em; cursor: pointer; }
.ip-chip.on { background: rgba(0,243,255,.14); color: #7ff9ff; }
.ip-feed { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px max(16px, 8vw); scrollbar-width: none; }
.ip-empty { margin: auto; max-width: 420px; text-align: center; color: rgba(255,255,255,.4); font-size: 15px; line-height: 1.5; }
.ip-b { max-width: 860px; width: 100%; align-self: center; opacity: .5; transition: opacity .3s; }
.ip-b.now { opacity: 1; }
.ip-meta { font: 800 9px Orbitron, sans-serif; letter-spacing: .2em; color: #00f3ff; margin-bottom: 6px; }
.ip-b-them .ip-meta { color: #ffb347; }
.ip-big { font-size: clamp(20px, 3.2vw, 30px); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.ip-b.now .ip-big { font-size: clamp(28px, 5vw, 52px); }
.ip-big.wait { opacity: .4; }
.ip-small { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.55); }
.ip-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.06); }
.ip-auto { width: 84px; height: 84px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #001a1c;
  background: linear-gradient(145deg, #2af6ff, #00b8d4); box-shadow: 0 10px 30px rgba(0,243,255,.25); transition: transform .15s; }
.ip-auto:active { transform: scale(.96); }
.ip-auto.on { background: linear-gradient(145deg, #ff4f86, #e8114d); color: #fff; box-shadow: 0 0 0 0 rgba(255,43,106,.5); animation: ipRing 1.6s ease-out infinite; }
.ip-auto.on[data-state="speaking"], .ip-auto.on[data-state="translating"] { animation: none; opacity: .75; }
@keyframes ipRing { 0% { box-shadow: 0 0 0 0 rgba(255,43,106,.45); } 100% { box-shadow: 0 0 0 22px rgba(255,43,106,0); } }
.ip-state { min-height: 20px; font-size: 14px; color: rgba(255,255,255,.7); text-align: center; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-holds { display: flex; gap: 8px; }
.ip-hold { border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 14px; background: transparent; color: rgba(255,255,255,.7); font: 600 12px -apple-system, system-ui, sans-serif; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.ip-hold.on { background: #ff2b6a; border-color: #ff2b6a; color: #fff; }
.ip-type { width: min(520px, 92vw); display: flex; }
.ip-type input { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 0; border-radius: 999px; color: #fff; padding: 11px 16px; font: 400 15px -apple-system, system-ui, sans-serif; outline: none; -webkit-user-select: text; user-select: text; }
@media (max-height: 520px) {
  .ip-top { padding: 6px 12px; } .ip-feed { padding: 8px 6vw; gap: 8px; } .ip-b.now .ip-big { font-size: clamp(20px, 4vw, 32px); }
  .ip-bottom { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 6px 12px 8px; }
  .ip-auto { width: 56px; height: 56px; } .ip-type { width: auto; flex: 1 1 200px; }
}

/* POCKET opened on a phone held upright (from the Interpreter): it shows over the rotate screen, it is made for it */
@media (orientation: portrait) {
    body.ip-open #portrait-lock { display: none !important; }
    body.ip-open > #ip-overlay { display: flex !important; visibility: visible !important; }
    body.ip-open > #ip-overlay * { visibility: visible !important; }
}
.ip-get { display: block; margin: 2px auto 0; min-height: 40px; padding: 10px 18px; border: 1px solid rgba(0,243,255,.35); border-radius: 999px; background: rgba(0,243,255,.06); color: rgba(0,243,255,.9); font: 700 11px -apple-system, system-ui, sans-serif; letter-spacing: .14em; cursor: pointer; }
/* no double-tap zoom anywhere in Pocket (an iPhone zoomed the page on a second tap) */
#ip-overlay, #ip-overlay * { touch-action: manipulation; }
