/* RDE // KONTRAKT — the phone. A big-screen Android flagship: brushed-metal frame, glossy black glass with a thin bezel, the Infinity-style screen with
 * curved edges, status bar, three-button navigation bar, widgets and a dock on the home screen, dark apps with a toolbar. Everything is scaled by --ps
 * (set from the window's height) so the whole phone fits any screen. The apps' own markup (ui/menus.js, ui/bankui.js, client/phone.js) is unchanged:
 * .ph-h / .card / .btn / .pill / .stat / .skill / .mpp-* are restyled here, scoped to #phone, so the same classes in the panels stay as they were. */
#phone { position: fixed; right: 40px; bottom: 16px; z-index: 20; transform-origin: 100% 100%; transform: scale(var(--ps, 1)); animation: phoneUp .38s cubic-bezier(.2, .9, .3, 1.15); font-family: Inter, 'Segoe UI', system-ui, sans-serif; }
@keyframes phoneUp { from { transform: translateY(110%) rotate(5deg) scale(var(--ps, 1)); } }
.ph-dev { position: relative; width: 338px; height: 738px; padding: 6px; border-radius: 47px; perspective: 900px;
  background: linear-gradient(140deg, #6a6e76 0%, #23252a 18%, #4b4f57 36%, #17181c 56%, #3c3f46 78%, #1b1c20 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 2px 1px rgba(255, 255, 255, .28), inset 0 -2px 2px rgba(0, 0, 0, .6),
    0 50px 90px rgba(0, 0, 0, .82), 0 14px 30px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 42, 60, .07); }
/* the side keys (a volume rocker and the Bixby key on the left, the power key on the right — the power key is the "screen off") */
.ph-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #5b5f67, #202227 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); border: 0; padding: 0; }
.ph-vol1 { left: -3px; top: 140px; height: 50px; } .ph-vol2 { left: -3px; top: 198px; height: 50px; } .ph-bixby { left: -3px; top: 268px; height: 34px; }
.ph-power { right: -3px; top: 196px; height: 74px; cursor: pointer; background: linear-gradient(270deg, #5b5f67, #202227 70%); transition: transform .1s; }
.ph-power:hover { filter: brightness(1.5); } .ph-power:active { transform: translateX(-1.5px); }
.ph-glass { position: relative; width: 100%; height: 100%; border-radius: 41px; background: #040405; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 14px rgba(0, 0, 0, .9); }
/* the bezel: earpiece, front camera, iris scanner, notification LED, sensors */
.ph-bt { position: absolute; left: 0; right: 0; top: 0; height: 44px; }
.ph-ear { position: absolute; left: 50%; top: 21px; width: 66px; height: 6px; margin-left: -33px; border-radius: 4px; background: linear-gradient(180deg, #000, #15161a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 0 rgba(255, 255, 255, .06); }
.ph-ear::after { content: ''; position: absolute; inset: 2px 6px; background: repeating-linear-gradient(90deg, #2b2d33 0 2px, transparent 2px 5px); opacity: .55; border-radius: 2px; }
.ph-cam { position: absolute; left: calc(50% + 50px); top: 17px; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #5560a8 0, #1a1f3d 32%, #05060d 62%); box-shadow: 0 0 0 2px #0b0c10, 0 0 0 3px rgba(255, 255, 255, .07), inset 0 0 3px rgba(120, 140, 255, .5); }
.ph-iris { position: absolute; left: calc(50% + 74px); top: 20px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #35161d, #0a0405 70%); box-shadow: 0 0 0 1.5px #0b0c10; }
.ph-sens { position: absolute; left: calc(50% - 66px); top: 22px; width: 5px; height: 5px; border-radius: 50%; background: #0d0f14; box-shadow: 0 0 0 1.5px #08090c, -13px 0 0 -1px #0d0f14; }
.ph-led { position: absolute; left: calc(50% - 90px); top: 22px; width: 4px; height: 4px; border-radius: 50%; background: #11141a; }
.ph-led.on { background: #ffd54a; box-shadow: 0 0 8px 2px rgba(255, 200, 60, .8); animation: phLed 1.4s infinite; }
@keyframes phLed { 50% { opacity: .25; } }
.ph-screen { position: absolute; left: 3px; right: 3px; top: 44px; bottom: 44px; border-radius: 30px / 34px; overflow: hidden; color: #fff; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 0 38px rgba(110, 120, 255, .16); animation: phOn .5s ease-out; }
@keyframes phOn { from { filter: brightness(.2) saturate(.4); } }
/* the curved Infinity edges: the picture rolls off over the sides */
.ph-screen::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 4.5%, transparent 95.5%, rgba(0, 0, 0, .55)), linear-gradient(90deg, rgba(255, 255, 255, .1), transparent 1.2%, transparent 98.8%, rgba(255, 255, 255, .1)); }
.ph-wp { position: absolute; inset: 0; background:
    radial-gradient(52% 30% at 86% 6%, #f23a42 0, rgba(242, 58, 66, .9) 38%, transparent 72%), radial-gradient(48% 28% at 5% 26%, #2a8bf2 0, rgba(42, 139, 242, .85) 40%, transparent 74%),
    radial-gradient(44% 22% at 70% 42%, #2fbf5d 0, rgba(47, 191, 93, .7) 40%, transparent 74%), radial-gradient(50% 24% at 38% 70%, #6a35d9 0, rgba(106, 53, 217, .75) 42%, transparent 76%),
    radial-gradient(40% 20% at 96% 78%, #ff8a2b 0, rgba(255, 138, 43, .6) 40%, transparent 76%), #05050a;
  filter: saturate(1.05); }
.ph-wp::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 100%, rgba(0, 0, 0, .55), transparent 60%), linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%); }
/* the glass: a soft reflection that follows the pointer, and the dust of a real surface */
.ph-sheen { position: absolute; inset: 0; z-index: 12; pointer-events: none; border-radius: inherit; mix-blend-mode: screen;
  background: linear-gradient(113deg, transparent 0 24%, rgba(255, 255, 255, .075) 33%, rgba(255, 255, 255, .02) 41%, transparent 48%), linear-gradient(113deg, transparent 0 56%, rgba(255, 255, 255, .035) 62%, transparent 68%);
  background-size: 260% 100%; background-position: calc(var(--sx, 50) * 1%) 0; }
.ph-bb { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; }
.ph-bb::after { content: ''; position: absolute; left: 50%; bottom: 15px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle, #0d0e12 30%, transparent 32%); opacity: .0; }

/* ---------------------------------------------------------------- status bar and navigation bar */
.ph-sb { position: absolute; z-index: 8; left: 0; right: 0; top: 0; height: 25px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 0 14px; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .1px; pointer-events: auto; cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); }
.ph-sb .l, .ph-sb .r { display: flex; align-items: center; gap: 5px; }
.ph-sb .pi { width: 13px; height: 13px; opacity: .95; }
.ph-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; } .ph-sig u { width: 2.6px; background: #fff; border-radius: .5px; } .ph-sig u:nth-child(1) { height: 3px; } .ph-sig u:nth-child(2) { height: 5px; } .ph-sig u:nth-child(3) { height: 7.5px; } .ph-sig u:nth-child(4) { height: 10px; }
.ph-sig.off u { opacity: .3; }
.ph-batt { display: inline-flex; align-items: center; gap: 3px; } .ph-batt i { position: relative; width: 17px; height: 8.5px; border: 1.2px solid rgba(255, 255, 255, .9); border-radius: 2px; }
.ph-batt i::before { content: ''; position: absolute; inset: 1px; width: calc(var(--b, 80) * 1% - 2px); background: #fff; border-radius: 1px; } .ph-batt i::after { content: ''; position: absolute; right: -3px; top: 1.5px; width: 1.5px; height: 4px; background: rgba(255, 255, 255, .9); border-radius: 0 1px 1px 0; }
.ph-batt.low i::before { background: #ff5a5f; } .ph-batt.chg i::before { background: #7dff9c; }
.ph-nav { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 42px; display: flex; align-items: center; justify-content: space-around; padding: 0 22px; background: linear-gradient(0deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .55)); }
.ph-nav button { position: relative; width: 56px; height: 34px; border: 0; background: none; cursor: pointer; border-radius: 17px; display: grid; place-items: center; }
.ph-nav button:hover { background: rgba(255, 255, 255, .08); } .ph-nav button:active { background: rgba(255, 255, 255, .16); }
.ph-nav button::before { content: ''; display: block; box-sizing: border-box; }
#ph-recbtn::before { width: 15px; height: 15px; border-left: 2px solid #fff; border-right: 2px solid #fff; border-radius: 1px; box-shadow: inset 4.5px 0 0 -2.5px #fff; opacity: .9; }   /* ‖ */
#ph-homebtn::before { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 6px; opacity: .92; }
#ph-back::before { width: 11px; height: 11px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(2px, -2px); opacity: .9; }
.ph-nav.in-app { background: rgba(10, 10, 12, .96); }

/* ---------------------------------------------------------------- the home screen */
#ph-body { position: absolute; z-index: 2; inset: 0 0 42px 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 0; }
#ph-body::-webkit-scrollbar { display: none; }
#ph-body.in-app { background: #131418; padding: 25px 14px 18px; animation: appIn .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes appIn { from { opacity: 0; transform: scale(.92); } }
#ph-body.home { overflow: hidden; padding: 0; background: none; }
.hs { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 25px; }
.hs-pages { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; cursor: grab; }
.hs-pages.drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.hs-page { flex: 0 0 100%; scroll-snap-align: start; padding: 8px 10px 0; display: flex; flex-direction: column; min-width: 0; }
.hs-wid { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 8px 0; min-height: 118px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hs-wx { display: grid; grid-template-columns: auto; gap: 1px; justify-items: start; cursor: default; }
.hs-t { font: 200 58px/1 Inter, system-ui, sans-serif; letter-spacing: -2px; } .hs-t sup { font-size: 30px; vertical-align: top; position: relative; top: 4px; letter-spacing: 0; margin-left: 1px; font-weight: 300; }
.hs-wi { height: 30px; margin: 5px 0 3px 3px; } .hs-wi .pi { width: 28px; height: 28px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .3)); }
.hs-c { font: 600 12px Inter, system-ui, sans-serif; letter-spacing: .2px; } .hs-u { font: 400 9.5px Inter, system-ui, sans-serif; opacity: .8; margin-top: 2px; }
.hs-ck { text-align: right; padding-right: 2px; } .hs-ck b { display: block; font: 200 40px/1 Inter, system-ui, sans-serif; letter-spacing: -1px; } .hs-ck span { display: block; margin-top: 5px; font: 500 11px Inter, system-ui, sans-serif; opacity: .9; letter-spacing: .3px; }
.hs-ck small { display: block; margin-top: 2px; font-size: 9.5px; opacity: .7; letter-spacing: 1.4px; text-transform: uppercase; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; margin-top: 12px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; font: 500 10.5px/1.15 Inter, system-ui, sans-serif; color: #fff; position: relative; text-shadow: 0 1px 4px rgba(0, 0, 0, .75); cursor: pointer; }
.app span.l { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app i { position: relative; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; font-style: normal; overflow: hidden; transition: transform .12s;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .4), inset 0 0 0 .5px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -8px 12px rgba(0, 0, 0, .16); }
.app i::before { content: ''; position: absolute; left: -10%; right: -10%; top: -2%; height: 52%; border-radius: 0 0 50% 50% / 0 0 40% 40%; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .03)); pointer-events: none; }   /* the gloss */
.app i .pi { position: relative; width: 27px; height: 27px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.app:hover i { transform: scale(1.06); } .app:active i { transform: scale(.92); }
.app.dk i .pi { fill: #1b1b1b; }
.app .badge { position: absolute; top: -3px; right: 12px; z-index: 2; background: #ff3b30; color: #fff; font: 700 10px/16px Inter, system-ui, sans-serif; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; text-shadow: none; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .45), 0 1px 4px rgba(0, 0, 0, .4); text-align: center; }
.hs-ct { margin: 14px 4px 0; padding: 11px 13px; border-radius: 16px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25); cursor: pointer; text-shadow: none; }
.hs-ct small { display: block; font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .75; } .hs-ct b { display: block; font: 600 14px Inter, system-ui, sans-serif; margin: 2px 0; } .hs-ct span { font-size: 11px; opacity: .85; } .hs-ct em { float: right; font-style: normal; font: 700 13px Inter, system-ui, sans-serif; color: #9ff0b8; }
.hs-dots { display: flex; justify-content: center; gap: 6px; padding: 7px 0 7px; } .hs-dots u { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .4); cursor: pointer; transition: all .2s; } .hs-dots u.on { background: #fff; transform: scale(1.15); }
.hs-search { margin: 0 12px 8px; height: 40px; border-radius: 21px; background: rgba(255, 255, 255, .95); display: flex; align-items: center; gap: 8px; padding: 0 13px; color: #6a6e76; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.hs-search .pi { width: 19px; height: 19px; fill: #5f6368; flex: none; } .hs-search .pi.mic { fill: #4285f4; }
.hs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 13.5px Inter, system-ui, sans-serif; color: #202124; user-select: text; -webkit-user-select: text; } .hs-search input::placeholder { color: #80868b; }
.hs-dock { display: flex; justify-content: space-around; padding: 6px 6px 7px; background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); }
.hs-res { position: absolute; inset: 25px 0 136px 0; z-index: 3; padding: 14px 12px; background: rgba(8, 8, 12, .86); backdrop-filter: blur(16px); overflow-y: auto; display: none; }
.hs-res.on { display: block; } .hs-res .apps { margin-top: 4px; } .hs-res p { text-align: center; color: rgba(255, 255, 255, .55); font-size: 12px; margin-top: 30px; }
.hs.searching .hs-pages, .hs.searching .hs-dots { filter: blur(4px) brightness(.6); }

/* ---------------------------------------------------------------- apps: toolbar, cards, buttons — a dark app */
#phone #ph-body.in-app > .ph-h:first-child { position: sticky; top: -25px; z-index: 4; margin: -25px -14px 10px; padding: 36px 16px 11px; display: block; font: 500 17px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.1px; text-transform: none; color: #fff;
  background: rgba(19, 20, 24, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
#phone .ph-h { font: 600 11px Inter, system-ui, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #8ab4ff; margin: 16px 0 8px !important; }
#phone #ph-body.in-app > .ph-h:first-child small { float: right; font-size: 11px; color: #8d929c; margin-top: 3px; letter-spacing: .5px; }
#phone .card { background: #1f2127; border: 0; border-radius: 18px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
#phone .card.active { background: #231c1f; box-shadow: inset 3px 0 0 #ff4d5a; }
#phone .card h4 { font: 600 15px Inter, system-ui, sans-serif; letter-spacing: 0; margin: 0 0 1px; }
#phone .card .sub { font: 500 10px Inter, system-ui, sans-serif; color: #8d929c; letter-spacing: .8px; }
#phone .card p { font-size: 12px; color: #c4c7cf; line-height: 1.5; }
#phone .card .meta b { color: #7be5a0; font: 700 15px Inter, system-ui, sans-serif; }
#phone .card canvas { border-radius: 12px; background: #2a2c33; }
#phone .btn { background: #3e91ff; color: #fff; border: 0; padding: 8px 15px; border-radius: 18px; font: 600 12px Inter, system-ui, sans-serif; letter-spacing: .2px; text-transform: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer; transition: filter .12s, transform .08s; }
#phone .btn:hover { background: #5aa3ff; } #phone .btn:active { transform: scale(.96); }
#phone .btn.red { background: #e8434f; } #phone .btn.red:hover { background: #ff5a66; }
#phone .btn.ghost { background: rgba(255, 255, 255, .09); color: #d9dbe1; box-shadow: none; } #phone .btn.ghost:hover { background: rgba(255, 255, 255, .16); }
#phone .btn:disabled { opacity: .38; cursor: default; box-shadow: none; }
#phone .btns { gap: 7px; }
#phone .pill { background: rgba(255, 255, 255, .08); color: #d0d3da; border-radius: 12px; padding: 3px 9px; font-size: 10.5px; letter-spacing: .2px; } #phone .pill.red { background: rgba(232, 67, 79, .22); color: #ffb3b9; }
#phone .stat { border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 9px 2px; font-size: 13px; } #phone .stat b { font: 600 13px Inter, system-ui, sans-serif; }
#phone .skill { border-bottom: 1px solid rgba(255, 255, 255, .07); padding: 9px 0; } #phone .skill button { background: #3e91ff; color: #fff; } #phone .skill button:disabled { background: #2b2d34; color: #6b6f78; }
#phone .pips u.on { background: #3e91ff; }
#phone .xpbar { background: rgba(255, 255, 255, .1); } #phone .xpbar i { background: linear-gradient(90deg, #3e91ff, #8ac1ff); }
#phone .msg { background: #1f2127; border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; }
#phone input[type="text"], #phone input[type="number"], #phone input:not([type]) { background: #23252c; color: #fff; border: 0; border-radius: 12px; padding: 9px 12px; outline: 0; box-shadow: inset 0 -2px 0 rgba(62, 145, 255, .0); user-select: text; -webkit-user-select: text; } #phone input:focus { box-shadow: inset 0 -2px 0 #3e91ff; }
#phone select { background: #23252c; color: #fff; border: 0; border-radius: 10px; padding: 8px 10px; }
/* the phone between players (client/phone.js) */
#phone .mpp-tabs button { background: #23252c; border-radius: 16px; color: #aab0ba; } #phone .mpp-tabs button.on { background: rgba(62, 145, 255, .22); color: #8ac1ff; }
#phone .mpp-row { background: #1f2127; border-radius: 16px; } #phone .mpp-row.th:hover { background: #272a32; }
#phone .mpp-back { background: none; border: 0; color: #8ac1ff; font-size: 22px; cursor: pointer; padding: 0 6px 0 0; }

/* ---------------------------------------------------------------- notification shade and recent apps */
.ph-shade, .ph-recents { position: absolute; z-index: 7; left: 0; right: 0; top: 0; bottom: 42px; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.ph-shade { padding: 32px 12px 12px; background: linear-gradient(180deg, #14151a, #0e0f13); backdrop-filter: blur(22px); transform: translateY(-104%); overflow-y: auto; border-radius: 0 0 22px 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.ph-shade.open { transform: none; }
.sh-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; } .sh-top b { font: 300 34px/1 Inter, system-ui, sans-serif; letter-spacing: -1px; } .sh-top span { font-size: 11px; color: #9ba0aa; display: block; margin-top: 4px; } .sh-top em { font-style: normal; font-size: 10px; color: #9ba0aa; letter-spacing: 1.5px; text-transform: uppercase; }
.sh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.sh-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; border: 0; border-radius: 16px; background: #23252c; color: #aeb3bd; font: 500 10px Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s; }
.sh-tile .pi { width: 22px; height: 22px; fill: #8b909b; } .sh-tile.on { background: rgba(62, 145, 255, .24); color: #cfe3ff; } .sh-tile.on .pi { fill: #6eb0ff; }
.sh-bright { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0 4px; } .sh-bright .pi { width: 18px; height: 18px; fill: #aeb3bd; }
.sh-bright input { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: #3a3d46; outline: 0; }
.sh-bright input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #3e91ff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.sh-h { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 8px; font: 600 11px Inter, system-ui, sans-serif; color: #8ab4ff; letter-spacing: 1px; text-transform: uppercase; } .sh-h button { background: none; border: 0; color: #9ba0aa; font-size: 11px; cursor: pointer; }
.sh-n { display: flex; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: #1f2127; border-radius: 16px; font-size: 12px; line-height: 1.35; color: #e4e6eb; } .sh-n .pi { width: 16px; height: 16px; fill: #8b909b; flex: none; margin-top: 1px; } .sh-n small { display: block; color: #8d929c; font-size: 10px; margin-bottom: 1px; }
.sh-n.warn .pi { fill: #ff7a85; } .sh-none { text-align: center; color: #6f7480; font-size: 12px; padding: 14px 0; }
.sh-grab { position: absolute; left: 50%; bottom: 6px; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.ph-recents { background: rgba(6, 6, 10, .8); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transform: scale(1.04); padding: 38px 0 12px; display: flex; flex-direction: column; }
.ph-recents.open { opacity: 1; pointer-events: auto; transform: none; }
.rc-row { flex: 1; display: flex; align-items: center; gap: 14px; overflow-x: auto; padding: 0 40px; scroll-snap-type: x mandatory; }
.rc-card { flex: 0 0 196px; height: 300px; scroll-snap-align: center; border-radius: 20px; background: #1d1f25; box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 .5px rgba(255, 255, 255, .1); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; transition: transform .15s; }
.rc-card:hover { transform: translateY(-4px); } .rc-card .app i { width: 74px; height: 74px; border-radius: 24px; } .rc-card .app i .pi { width: 38px; height: 38px; } .rc-card b { font: 500 14px Inter, system-ui, sans-serif; }
.rc-card u { position: absolute; top: 8px; right: 10px; text-decoration: none; width: 24px; height: 24px; line-height: 22px; text-align: center; color: #aeb3bd; font-size: 17px; border-radius: 50%; } .rc-card u:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.rc-none { margin: auto; color: #8d929c; font-size: 13px; }
.rc-all { align-self: center; border: 0; border-radius: 20px; padding: 9px 22px; background: rgba(255, 255, 255, .12); color: #fff; font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; } .rc-all:hover { background: rgba(255, 255, 255, .2); }
.ph-dim { position: absolute; inset: 0; z-index: 10; background: #000; opacity: var(--dim, 0); pointer-events: none; }

@media (max-width: 760px) { #phone { right: 50%; margin-right: -169px; bottom: 6px; } }

/* the search field lives in a white pill: no field of its own */
#phone .hs-search input { background: none; box-shadow: none; padding: 0; border-radius: 0; color: #202124; font: 400 13.5px Inter, system-ui, sans-serif; }
#phone .hs-search input:focus { box-shadow: none; }

/* ---------------------------------------------------------------- the page left of home: "Today" */
.hs-page.td { padding: 14px 14px 0; gap: 9px; text-shadow: none; overflow-y: auto; }
.td-hi { font: 300 26px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.5px; margin: 6px 4px 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.td-c { padding: 12px 14px; border-radius: 18px; background: rgba(14, 15, 20, .62); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; }
.td-c small { display: block; font: 600 9.5px Inter, system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 3px; }
.td-c b { display: block; font: 600 16px/1.25 Inter, system-ui, sans-serif; } .td-c span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .72); margin-top: 2px; } .td-c em { float: right; margin-top: -34px; font-style: normal; font: 700 15px Inter, system-ui, sans-serif; color: #8df0b0; }
.td-c.act { box-shadow: inset 3px 0 0 #ff4d5a, inset 0 0 0 .5px rgba(255, 255, 255, .16), 0 6px 16px rgba(0, 0, 0, .25); }
.td-c.hot { background: rgba(120, 12, 24, .6); } .td-c.hot b { color: #ffd54a; letter-spacing: 3px; font-size: 18px; }
.td-r { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; } .td-r .td-c { margin: 0; }
.td-c .xpbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); margin-top: 9px; overflow: hidden; } .td-c .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #3e91ff, #8ac1ff); border-radius: 3px; }

/* ---------------------------------------------------------------- the phone between players (client/phone.js): calls, contacts, keypad, messages */
#phone .mpp-me { color: #8d929c; font-size: 11px; letter-spacing: 1px; margin-left: 6px; font-weight: 400; }
#phone .mpp-tabs { display: flex; gap: 0; margin: 0 -14px 12px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
#phone .mpp-tabs button { flex: 1; border: 0; border-radius: 0; background: none; padding: 10px 0 9px; color: #8d929c; font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; border-bottom: 2px solid transparent; }
#phone .mpp-tabs button.on { background: none; color: #6eb0ff; border-bottom-color: #3e91ff; }
#phone .mpp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 11px; margin-bottom: 6px; border: 0; border-radius: 16px; background: #1f2127; color: #fff; text-align: left; font: inherit; }
#phone .mpp-row > i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; font-weight: 600; font-size: 15px; color: #fff; }
#phone .mpp-row > i .pi { width: 18px; height: 18px; } #phone .mpp-row > i.ic { background: #2f3239; } #phone .mpp-row > i.ic.in { background: #1e6bd6; } #phone .mpp-row > i.ic.out { background: #1f9d57; } #phone .mpp-row > i.ic.miss { background: #c93a45; }
#phone .mpp-row.miss b { color: #ff8b95; }
#phone .mpp-row > div { flex: 1; min-width: 0; } #phone .mpp-row b, #phone .mpp-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#phone .mpp-row b { font-size: 13.5px; font-weight: 600; } #phone .mpp-row small { color: #8d929c; font-size: 11px; margin-top: 1px; }
#phone .mpp-row > button { display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .07); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; transition: background .12s; }
#phone .mpp-row > button:hover { background: rgba(62, 145, 255, .3); } #phone .mpp-row > button .pi { width: 16px; height: 16px; fill: #cfd4dd; }
#phone .mpp-ago { color: #8d929c; font-size: 10.5px; } #phone .mpp-ago em { background: #3e91ff; color: #fff; }
#phone .mpp-add, #phone .mpp-send { display: flex; gap: 7px; margin-bottom: 12px; align-items: center; }
#phone .mpp-add input, #phone .mpp-send input, #phone .mpp-pad input { flex: 1; min-width: 0; border-radius: 20px; padding: 9px 14px; font: 13px Inter, system-ui, sans-serif; }
#phone .mpp-pad { display: flex; flex-direction: column; gap: 10px; }
#phone .mpp-pad input { text-align: center; font-size: 26px; letter-spacing: 3px; font-weight: 300; background: none; border-radius: 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .15); padding: 10px 0; }
#phone .mpp-pad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; padding: 4px 6px; }
#phone .mpp-pad .keys button { height: 52px; border: 0; border-radius: 26px; background: #23252c; color: #fff; font: 300 22px Inter, system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; transition: background .1s; }
#phone .mpp-pad .keys button:hover { background: #2e313a; } #phone .mpp-pad .keys button:active { background: #3a3e48; } #phone .mpp-pad .keys .pi { width: 22px; height: 22px; fill: #cfd4dd; }
#phone .btn.green { background: #1fa65c; } #phone .btn.green:hover { background: #29c06f; } #phone .btn .pi { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
#phone .mpp-pad > .btn { padding: 12px; font-size: 13px; border-radius: 26px; }
#phone .mpp-back, #phone .mpp-save { display: inline-flex; align-items: center; border: 0; background: rgba(255, 255, 255, .08); color: #fff; border-radius: 14px; padding: 4px 10px; cursor: pointer; font: 500 11px Inter, system-ui, sans-serif; margin-left: 6px; }
#phone .mpp-back { background: none; padding: 0 4px 0 0; margin: 0 2px 0 -6px; } #phone .mpp-back .pi, #phone .mpp-save .pi { width: 16px; height: 16px; fill: #cfd4dd; } #phone .mpp-back .pi { width: 24px; height: 24px; }
#phone .mpp-thread { display: flex; flex-direction: column; gap: 5px; max-height: 410px; overflow-y: auto; scrollbar-width: none; margin-bottom: 10px; padding: 4px 0; }
#phone .mpp-msg { align-self: flex-start; max-width: 78%; padding: 8px 12px; border-radius: 18px 18px 18px 5px; background: #272a31; font-size: 12.5px; line-height: 1.4; }
#phone .mpp-msg.out { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: linear-gradient(160deg, #3e91ff, #2a6fdc); color: #fff; }
#phone .mpp-msg small { display: block; margin-top: 3px; font-size: 9.5px; opacity: .6; }
#phone .mpp-send .btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; } #phone .mpp-send .btn .pi { width: 17px; height: 17px; margin: 0; vertical-align: 0; }
#phone .mpp-empty { color: #8d929c; text-align: center; font-size: 12px; margin: 22px 0; }
