/* The Leonida phone: a handset with eight playable parody apps. */
.phone-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.phone-copy { display: grid; gap: 16px; align-content: start; }
.phone-copy h2 { font-size: clamp(32px, 4.6vw, 54px); }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-list button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 244, 230, 0.05); color: var(--cream); font: 600 15px/1.2 var(--body); text-align: left; cursor: pointer; }
.app-list button:hover, .app-list button[aria-current="true"] { border-color: var(--pink); background: rgba(255, 61, 139, 0.12); }
.app-list i { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 17px; background: var(--bg, #333); }
.app-list small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 500; }

.phone { position: relative; width: 100%; max-width: 380px; aspect-ratio: 9 / 18.5; justify-self: center; padding: 14px; border-radius: 48px;
  background: linear-gradient(145deg, #3a1450, #140726); border: 2px solid rgba(255, 244, 230, 0.18);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 6px #0c0418, 0 0 80px rgba(255, 61, 139, 0.25); }
.phone-notch { position: absolute; left: 50%; top: 22px; translate: -50% 0; width: 96px; height: 26px; border-radius: 999px; background: #050208; z-index: 3; }
.phone-status { position: absolute; left: 40px; right: 40px; top: 28px; display: flex; justify-content: space-between; font: 600 12px/1 var(--body); color: var(--cream); z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #ff3d8b 0%, #ff8a3d 55%, #19d3c5 100%); }
.phone-home-bar { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 110px; height: 5px; border-radius: 99px; background: rgba(255, 244, 230, 0.7); z-index: 3; }

.screen { position: absolute; inset: 0; padding: 54px 16px 36px; display: none; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.is-on { display: flex; animation: app-in 0.28s var(--ease); }
@keyframes app-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.screen:not([data-screen="home"]) { background: #1a0b2e; }

/* home */
.home-hi { font: 900 22px/1.1 var(--display); text-align: center; margin-top: 8px; text-shadow: 0 3px 0 rgba(20, 7, 38, 0.4); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; margin-top: 10px; }
.app-icon { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: var(--cream); cursor: pointer; font: 600 11.5px/1.15 var(--body); text-align: center; padding: 0; }
.app-icon i { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-style: normal; font-size: 28px;
  background: var(--bg); box-shadow: 0 6px 0 rgba(20, 7, 38, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35); transition: transform 0.15s var(--ease); }
.app-icon:hover i { transform: translateY(-3px) rotate(-3deg); }
.app-icon:active i { transform: scale(0.92); }
.dock { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 22px; background: rgba(20, 7, 38, 0.45); font: 900 14px/1 var(--display); }
.dock b { font-weight: 400; color: var(--yellow); }

/* app chrome */
.app-bar { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; font: 900 16px/1.1 var(--display); }
.back { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 244, 230, 0.08); color: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; }
.app-label { font-size: 12.5px; font-weight: 700; color: var(--faint); margin-top: 2px; }
.screen .btn { width: 100%; }
.screen .segs button { flex: 1 1 auto; min-height: 40px; font-size: 13.5px; padding: 0 10px; }
.screen .fine { font-size: 12px; }
.screen input:not([type="range"]), .screen select { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--cream); font: 500 14.5px/1 var(--body); }
.screen input:focus, .screen select:focus { outline: none; border-color: var(--pink); }

/* Buck Me */
.buck-card { display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #19d3c5, #0b7f8a); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.25); }
.buck-card > span { font-weight: 700; font-size: 13px; }
.buck-card b { font: 900 30px/1 var(--display); }
.buck-card small { font-size: 12px; font-weight: 600; }
.buck-card.is-hit { animation: hit 0.5s var(--ease); }
@keyframes hit { 30% { transform: scale(0.96) rotate(-1deg); } }
.contacts { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.contacts button { flex: none; display: grid; justify-items: center; gap: 4px; width: 64px; border: 0; background: none; color: var(--cream); font: 600 11.5px/1.1 var(--body); cursor: pointer; }
.contacts i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px; background: var(--bg); border: 3px solid transparent; }
.contacts button[aria-pressed="true"] i { border-color: var(--yellow); }
.buck-send { display: grid; gap: 8px; }
.amounts { display: flex; gap: 6px; }
.amounts button { flex: 1; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: 900 15px/1 var(--display); cursor: pointer; }
.amounts button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 244, 230, 0.06); font-size: 13px; }
.feed li b { font-weight: 700; }
.feed li .neg { color: var(--pink-hi); font-weight: 800; }
.feed li .pos { color: var(--teal); font-weight: 800; }
.feed li small { grid-column: 1 / -1; color: var(--faint); }
.feed li.is-new { animation: app-in 0.4s var(--ease); }

/* RydeMe */
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map svg { width: 100%; height: auto; }
.ryde-status { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }

/* What-Up */
.app-what { padding-bottom: 92px; }
.chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chat li { max-width: 84%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; background: rgba(255, 244, 230, 0.1); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat li b { display: block; font-size: 11.5px; color: var(--teal); margin-bottom: 2px; }
.chat li.me { align-self: flex-end; background: var(--pink); color: var(--ink); border-radius: 16px 16px 4px 16px; }
.chat li.typing { color: var(--faint); font-style: italic; }
.chat-form { position: absolute; left: 12px; right: 12px; bottom: 28px; display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.chat-form .btn { width: auto; flex: none; }

/* Wink */
.wink-cond input { width: 100%; accent-color: var(--pink); min-height: 32px; }
.wink-cond b { color: var(--yellow); }
.wink-result { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--ink); border: 2px solid var(--yellow); text-align: center; }
.wink-result span { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.wink-result b { font: 900 32px/1 var(--display); color: var(--yellow); }
.wink-result small { color: var(--muted); font-size: 13px; }

/* Peekhole */
.live-tag { font: 700 11px/1 var(--body); color: #fff; background: #e0204f; padding: 4px 8px; border-radius: 6px; }
.peek-stream { position: relative; height: 210px; flex: none; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #6a1b5e, #ff3d8b 60%, #ffb35c); }
.peek-plane { position: absolute; left: 50%; top: 50%; width: 170px; translate: -50% -50%; animation: barrel 3s ease-in-out infinite; }
@keyframes barrel { 0%, 100% { transform: rotate(-6deg) translateY(6px); } 50% { transform: rotate(8deg) translateY(-8px); } }
.peek-viewers { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 8px; background: rgba(20, 7, 38, 0.6); font-size: 12px; font-weight: 700; }
.peek-hearts { position: absolute; inset: 0; pointer-events: none; }
.peek-hearts span { position: absolute; bottom: 8px; font-size: 22px; animation: rise 1.6s ease-out forwards; }
@keyframes rise { to { transform: translateY(-180px) scale(1.4); opacity: 0; } }
.peek-title { font-weight: 700; font-size: 14px; }
.peek-actions .btn { width: auto; flex: 1; }
.peek-note { min-height: 3em; }

/* FizzAzz */
.app-fizz { align-items: center; text-align: center; }
.fizz-tag { font: 900 18px/1.1 var(--display); color: var(--yellow); }
.fizz-can { position: relative; width: 110px; height: 190px; margin-top: 6px; border: 0; border-radius: 26px 26px 18px 18px; cursor: pointer; overflow: hidden;
  background: linear-gradient(90deg, #b8155f, #ff3d8b 40%, #ff8fc0 55%, #ff3d8b 70%, #b8155f); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.3), inset 0 10px 0 #ccc, inset 0 -10px 0 #aaa; }
.can-label { position: relative; z-index: 1; font: 900 30px/0.9 var(--display); color: var(--cream); text-shadow: 0 3px 0 var(--ink); }
.fizz-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(255, 244, 230, 0.35); transition: height 0.15s; }
.fizz-can.is-shake { animation: shake 0.18s linear; }
@keyframes shake { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.meter { width: 100%; height: 12px; border-radius: 99px; background: rgba(255, 244, 230, 0.12); overflow: hidden; }
.meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), var(--yellow), var(--pink)); transition: width 0.15s; }
.fizz-msg { font-weight: 700; min-height: 2.6em; }
.fizz-spray { position: absolute; inset: 0; pointer-events: none; }
.fizz-spray span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 244, 230, 0.85); }

/* Macca */
.macca-pond { height: 200px; flex: none; border-radius: 18px; display: grid; place-items: end center; overflow: hidden; background: linear-gradient(180deg, #2a5c3a 0%, #3f7d4c 50%, #19d3c5 100%); }
.macca { width: 92%; }
.macca .jaw { transform-origin: 152px 100px; transition: transform 0.15s; }
.macca.is-chomp .jaw { animation: chomp 0.5s ease 2; }
@keyframes chomp { 50% { transform: rotate(18deg); } }
.macca.is-mad { animation: shake 0.18s linear 3; }
.macca-line { font-weight: 700; font-size: 14px; min-height: 2.6em; }
.app-macca .row .btn { width: auto; flex: 1; }

/* browser */
.url-bar { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.url-bar select { border: 0; min-height: 38px; padding: 0 6px; background: transparent; }
.site { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #fff4e6; color: var(--ink); text-align: center; }
.site[hidden] { display: none; }
.site h3 { font-size: 20px; line-height: 1.1; }
.site p { font-size: 13.5px; }
.site .field span { color: #6a4a6e; }
.site select { background: #fff; color: var(--ink); border-color: #e2cbd8; }
.corndog { position: relative; justify-self: center; width: 130px; height: 130px; border-radius: 50%; border: 0; background: #ffe14d; font-size: 70px; cursor: pointer; transition: transform 0.1s; }
.corndog:active { transform: scale(0.92); }
.dog-eyes { position: absolute; left: 50%; top: 22%; translate: -50% 0; font-size: 22px; opacity: 0; transition: opacity 0.2s; }
.dog-level { font-weight: 800; }
.site-skin { background: linear-gradient(180deg, #fffbe0, #ffe9a8); }
.skin-out, .law-out { font-weight: 800; min-height: 2.6em; }
.site-law { background: #fff; border-top: 6px solid #1d4ed8; }
.site-law h3 { color: #1d4ed8; font-family: Georgia, serif; font-weight: 700; }
.law-tag { font-style: italic; }
.site-law .field { text-align: left; }

@media (max-width: 1020px) {
  .phone-layout { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 360px; }
}
@media (max-width: 420px) {
  .phone { padding: 10px; border-radius: 40px; aspect-ratio: auto; height: 720px; }
  .phone-screen { border-radius: 30px; }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-icon i { width: 56px; height: 56px; }
}

/* ---------- upgrade: poster type, line icons, device detail ---------- */
.phone { border-radius: 52px; background: linear-gradient(150deg, #2a0f3f, #0b0414 60%); box-shadow: 0 50px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 6px #06020c, 0 0 0 1px rgba(255, 244, 230, 0.12), 0 0 120px rgba(255, 61, 139, 0.22); }
.phone-screen { background: radial-gradient(120% 70% at 50% 0%, #c8245f 0%, #b21d6e 38%, #3b1056 70%, #0d0518 100%); }
.home-hi { font: 400 64px/0.9 var(--neon); text-transform: none; text-align: left; color: #ffe3f0; text-shadow: 0 0 10px #ff3d8b, 0 0 30px #ff3d8b; margin: 6px 0 0 2px; }
.home-sub { font: 800 14px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 244, 230, 0.75); margin-left: 4px; }
.app-icon { font: 700 12px/1.15 var(--body); }
.app-icon i, .app-list i { color: #0b0414; }
.app-icon i { border-radius: 16px; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.app-icon i svg { width: 30px; height: 30px; }
.app-list i svg { width: 19px; height: 19px; }
.app-list button { border-radius: 3px; background: rgba(0, 0, 0, 0.3); font-weight: 700; transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease); }
.app-list button:hover { transform: translateX(4px); }
.app-list i { border-radius: 8px; }
.dock { border-radius: 20px; background: rgba(0, 0, 0, 0.45); font: 800 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.dock b { color: var(--cash); font-size: 22px; letter-spacing: 0; }
.app-bar { font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.app-label { font: 800 13px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
.buck-card { border-radius: 16px; background: linear-gradient(135deg, #8dffa9, #19d3c5 70%, #14b3a7); box-shadow: 0 18px 30px -12px rgba(25, 211, 197, 0.6); }
.buck-card b { font: 900 46px/0.9 var(--display); letter-spacing: 0; }
.contacts i { font: 900 18px/1 var(--display); color: #0b0414; font-style: normal; }
.amounts button { border-radius: 3px; font-size: 18px; }
.feed li { border-radius: 3px; }
.chat li { border-radius: 14px 14px 14px 3px; }
.chat li.me { border-radius: 14px 14px 3px 14px; }
.peek-hearts span { width: 24px; height: 24px; }
.peek-hearts svg { width: 100%; height: 100%; fill: currentColor; }
.ico-heart { width: 16px; height: 16px; fill: var(--pink); }
.live-tag { border-radius: 3px; text-transform: uppercase; letter-spacing: 0.08em; }
.corndog { display: grid; place-items: center; background: radial-gradient(circle, #ffe14d 60%, #ffb35c); font-size: 0; }
.corndog svg { width: 96px; height: 96px; }
.dog-eyes { opacity: 0; transition: opacity 0.3s; position: static; translate: none; }
.site { border-radius: 4px; }
.site h3 { font: 900 26px/0.95 var(--display); }
.can-label { font: 900 34px/0.85 var(--display); text-transform: uppercase; color: #0b0414; text-shadow: 0 2px 0 rgba(255, 244, 230, 0.6); }
.url-bar svg { width: 16px; height: 16px; flex: none; color: rgba(255, 244, 230, 0.7); }

/* ---------- mobile fixes from the audit ---------- */
.phone, .phone * { touch-action: manipulation; }
#fizz-can, #corndog, #peek-heart, .macca-pond button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.app-what { padding-bottom: 20px; }
.app-what .chat-form { position: sticky; left: auto; right: auto; bottom: 0; margin-top: auto; padding-top: 10px; background: linear-gradient(transparent, #1a0b2c 30%); }
.back { width: 44px; height: 44px; }
.peek-actions .btn { white-space: nowrap; padding-inline: 12px; font-size: 14px; }
.url-bar select { flex: 1; min-width: 0; text-overflow: ellipsis; min-height: 44px; }
@media (max-width: 1020px) {
  .phone { width: min(100%, 380px, max(300px, calc((100svh - 96px) * 9 / 18.5))); }
  .screen input:not([type="range"]), .screen select { font-size: 16px; }
}
