/* Vitrine BBTEK Apps : page, appareil virtuel, écran d'accueil, applications, fiche APK. */
:root { --bg: #08131c; --fg: #e8f0f5; --muted: #8aa1b1; --acc: #2ec4b6; --acc2: #7fd1b9; --card: #10202d; color-scheme: dark; }
:root[data-theme="light"] { --bg: #eef3f7; --fg: #14202b; --muted: #55697a; --card: #fff; color-scheme: light; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(1200px 700px at 50% -10%, #12384a 0%, var(--bg) 62%) fixed; color: var(--fg); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--acc2); }
.gi { display: block; pointer-events: none; }

/* ---- page ---- */
#stage { display: flex; flex-direction: column; align-items: center; height: 100vh; height: 100dvh; }
#bar { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: .04em; }
.brand b { color: var(--acc); }
.bar-actions { display: flex; gap: 8px; }
.bar-actions button { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 7px 14px; font-size: 13px; transition: background .2s; }
.bar-actions button:hover { background: rgba(255, 255, 255, .14); }
.bar-actions button:focus-visible, .ic:focus-visible, .rc-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#devwrap { flex: 0 0 auto; position: relative; margin: auto 0; }
#hint { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; text-align: center; }
.nojs { max-width: 640px; margin: 40px auto; padding: 0 20px; color: var(--fg); }

/* ---- appareil ---- */
#device { position: absolute; left: 0; top: 0; }
.bezel { position: absolute; inset: 0; padding: var(--bz, 12px); background: linear-gradient(145deg, #2b3640, #0a0e12 60%, #1b232b); border-radius: 56px; box-shadow: 0 0 0 2px #3a4651, 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 6px rgba(255, 255, 255, .15); }
.tablet .bezel { border-radius: 34px; }
.phone:not(.full) .bezel::before { content: ""; position: absolute; right: -4px; top: 190px; width: 4px; height: 76px; background: #3a4651; border-radius: 0 3px 3px 0; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: #000; color: #fff; isolation: isolate; user-select: none; -webkit-user-select: none; }
.tablet .screen { border-radius: 22px; }
#device.full { width: 100vw !important; height: 100vh !important; height: 100dvh !important; transform: none !important; }
#device.full .bezel { padding: 0; border-radius: 0; background: #000; box-shadow: none; }
#device.full .screen { border-radius: 0; }
#stage.full #bar, #stage.full #hint { display: none; }
#stage.full #devwrap { margin: 0; width: 100vw !important; height: 100vh !important; height: 100dvh !important; }
.cam { position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05080b; box-shadow: 0 0 0 2px #10171d; z-index: 70; }
.tablet .cam { top: 8px; width: 9px; height: 9px; margin-left: -4px; }
.sb { position: absolute; top: 0; left: 0; right: 0; height: 32px; padding: 8px 26px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; z-index: 60; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.sb-r { display: flex; align-items: center; gap: 5px; }
.sb-net { font-size: 10.5px; letter-spacing: .02em; }
.sb-bat { position: relative; display: inline-flex; align-items: center; width: 27px; height: 13px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 4px; padding: 1px; margin-left: 2px; }
.sb-bat i { display: block; height: 100%; width: 87%; background: #fff; border-radius: 2px; }
.sb-bat b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 8.5px; color: #000; mix-blend-mode: difference; }
.sb-bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 5px; background: rgba(255, 255, 255, .85); border-radius: 0 1px 1px 0; }
.screen.in-app .sb { background: transparent; }

/* ---- navigation Android ---- */
.nav { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #000; display: flex; justify-content: center; gap: 56px; align-items: center; z-index: 80; touch-action: none; }
.nav button { width: 52px; height: 40px; background: none; border: 0; display: grid; place-items: center; color: #dfe7ec; border-radius: 20px; }
.nav button:hover { background: rgba(255, 255, 255, .1); }
.homei { width: 17px; height: 17px; border: 2px solid #dfe7ec; border-radius: 50%; display: block; }

/* ---- accueil ---- */
.home, .wins, .recents, .sheet-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 46px; }
.home { overflow: hidden; }
.wall { position: absolute; inset: 0; background: radial-gradient(420px 360px at 20% 12%, rgba(46, 196, 182, .55), transparent 70%), radial-gradient(520px 420px at 90% 80%, rgba(114, 9, 183, .5), transparent 70%), linear-gradient(165deg, #0d3b66 0%, #0a1f33 55%, #07131f 100%); }
.wall::after { content: "BBTEK"; position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); font-weight: 800; font-size: 74px; letter-spacing: .14em; color: rgba(255, 255, 255, .05); }
.pages { position: absolute; left: 0; right: 0; top: 0; bottom: 128px; display: flex; transition: transform .32s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
.page { flex: 0 0 100%; padding: 46px 14px 0; overflow: hidden; }
.widget { padding: 14px 18px; border-radius: 24px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); display: flex; flex-direction: column; margin-bottom: 18px; }
.widget .w-time { font-size: 44px; font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.widget .w-date { text-transform: capitalize; font-size: 14px; opacity: .9; }
.widget small { opacity: .7; margin-top: 4px; }
.widget.slim { padding: 10px 18px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 4px; }
.tablet .grid { grid-template-columns: repeat(6, 1fr); gap: 28px 8px; }
.ic { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; min-width: 0; touch-action: pan-y; }
.ic-img { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s; }
.ic:active .ic-img { transform: scale(.9); }
.tablet .ic-img { width: 68px; height: 68px; border-radius: 20px; }
.ic-lbl { font-size: 11.5px; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.dots { position: absolute; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; gap: 8px; }
.dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); transition: all .2s; }
.dot.on { background: #fff; width: 18px; border-radius: 4px; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 92px; border-radius: 30px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); display: flex; justify-content: space-around; align-items: center; padding: 0 8px; }
.dock .ic-lbl { display: none; }
.dock .ic-img { width: 60px; height: 60px; }

/* ---- fenêtres d'applications ---- */
.wins { pointer-events: none; }
.appwin { position: absolute; overflow: hidden; background: #0b1620; pointer-events: auto; will-change: left, top, width, height; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.appwin[hidden] { display: none; }
.splash { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; transition: opacity .25s; }
.splash.out { opacity: 0; }
.sp-ic { width: 104px; height: 104px; border-radius: 30px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.splash strong { font-size: 21px; font-weight: 600; }
.splash small { position: absolute; bottom: 26px; letter-spacing: .3em; opacity: .7; font-size: 11px; }
.sp-bar { width: 140px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.sp-bar i { display: block; width: 0; height: 100%; background: #fff; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.content { position: absolute; inset: 0; animation: fadein .3s both; }
.content[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ibtn { position: absolute; top: 36px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; z-index: 8; padding: 0; transition: transform .15s, background .2s; }
.ibtn:hover { background: rgba(0, 0, 0, .45); }
.ibtn:active { transform: scale(.9); }

/* ---- démos ---- */
.dm { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f3f6f9; color: #14202b; }
.dm-head { padding: 34px 10px 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; display: flex; align-items: center; gap: 4px; min-height: 84px; }
.dm-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; text-align: center; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb, .hb-gap { width: 40px; height: 40px; flex: 0 0 auto; }
.hb { background: none; border: 0; color: #fff; display: grid; place-items: center; border-radius: 20px; }
.hb:hover { background: rgba(255, 255, 255, .18); }
.dm-body { flex: 1; overflow-y: auto; padding: 12px 12px 18px; -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.dm-ribbon { text-align: center; font-size: 10px; letter-spacing: .12em; padding: 3px; background: #e5ebf0; color: #5d6f7d; }
.dm-tabs { display: flex; background: #fff; border-top: 1px solid #dfe6ec; touch-action: none; }
.dm-tabs button { flex: 1; background: none; border: 0; padding: 7px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: #6b7c8a; }
.dm-tabs button.on { color: var(--c1); font-weight: 600; }
.dm-tabs button.on svg { transform: translateY(-1px) scale(1.08); }
.blk { margin-bottom: 14px; }
.blk h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #5d6f7d; }
.b-hero { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.b-hero h3 { margin: 0 0 4px; font-size: 17px; }
.b-hero p { margin: 0; opacity: .9; font-size: 13px; }
.pill { background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.b-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 3px rgba(20, 32, 43, .08); display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 11.5px; color: #5d6f7d; }
.stat strong { font-size: 17px; }
.stat em { font-style: normal; font-size: 12px; }
.pos { color: #1b8a4b; } .neg { color: #c0392b; }
.b-text { margin: 0; font-size: 13px; color: #45596a; }
.b-hint { font-size: 12px; color: #6b7c8a; text-align: center; margin: 8px 0 0; }
.b-kv { margin: 0; background: #fff; border-radius: 14px; padding: 4px 14px; }
.b-kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f4; }
.b-kv div:last-child { border: 0; }
.b-kv dt { color: #5d6f7d; font-size: 13px; } .b-kv dd { margin: 0; font-weight: 600; font-size: 13px; text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; background: #fff; border-radius: 14px; padding: 12px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: #5d6f7d; }
.bar i { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--c1), var(--c2)); animation: grow .6s both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.b-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.b-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #edf1f4; }
.b-list li:last-child { border: 0; }
.b-list li.tap { cursor: pointer; } .b-list li.tap:hover { background: #f6f9fb; } .b-list li.tap:active { background: #edf2f6; }
.li-main { min-width: 0; display: flex; flex-direction: column; } .li-main strong { font-size: 14px; } .li-main small { color: #6b7c8a; font-size: 12px; }
.li-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; font-size: 13px; }
.empty { text-align: center; color: #6b7c8a; justify-content: center !important; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #e6edf2; color: #3d5160; font-weight: 600; }
.tag.ok { background: #d9f3e3; color: #14663a; } .tag.warn { background: #fdecc8; color: #8a5a00; } .tag.bad { background: #fbd9d5; color: #a02b1f; } .tag.info { background: #dbeafc; color: #1f5a99; }
.b-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dbe3ea; border-radius: 12px; padding: 0 12px; margin-bottom: 8px; color: #6b7c8a; }
.b-search input { flex: 1; border: 0; background: none; padding: 11px 0; font: inherit; color: #14202b; outline: none; min-width: 0; }
.b-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.chip { flex: 0 0 auto; background: #fff; border: 1px solid #dbe3ea; color: #3d5160; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; }
.chip.on { background: var(--c1); border-color: var(--c1); color: #fff; }
.b-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .b-actions.col { flex-direction: column; }
.btn-d { flex: 1; min-width: 120px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; transition: transform .1s, opacity .2s; }
.btn-d:active { transform: scale(.97); } .btn-d[disabled] { opacity: .45; cursor: default; }
.btn-d.ghost { background: #fff; color: var(--c1); border: 1px solid var(--c1); }
.mini { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #dbe3ea; background: #fff; line-height: 1; padding: 0; }
.sw { position: relative; width: 46px; height: 26px; border-radius: 13px; border: 0; background: #c7d1d9; padding: 0; transition: background .2s; flex: 0 0 auto; }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.sw.on { background: var(--c1); } .sw.on i { transform: translateX(20px); }
.b-form { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.b-form h4 { margin: 0; }
.b-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #5d6f7d; }
.b-form input, .b-form select { border: 1px solid #cfd9e1; border-radius: 10px; padding: 10px 11px; font: inherit; font-size: 15px; background: #fff; color: #14202b; min-width: 0; }
.b-form input:focus, .b-form select:focus { outline: 2px solid var(--c1); outline-offset: 0; border-color: transparent; }
.b-form .bad { border-color: #d64545; background: #fff6f5; }
.b-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod { background: #fff; border: 1px solid #e3eaf0; border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .1s, box-shadow .2s; color: #14202b; }
.prod:active { transform: scale(.96); } .prod:hover { box-shadow: 0 3px 10px rgba(20, 32, 43, .12); }
.pe { font-size: 28px; } .prod em { font-style: normal; color: var(--c1); font-weight: 600; font-size: 13px; } .prod strong { font-size: 13px; }
.b-total { display: flex; justify-content: space-between; padding: 12px 4px; font-size: 16px; }
.b-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.room { border: 0; border-radius: 14px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; color: #fff; transition: transform .1s, background .25s; }
.room:active { transform: scale(.95); } .room small { opacity: .9; }
.s-libre { background: #2f9e61; } .s-occupee { background: #d35f4a; } .s-menage { background: #d69a1e; }
.b-queue, .b-screen { background: #fff; border-radius: 18px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.b-screen { background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff; }
.big { font-size: 64px; line-height: 1.05; font-weight: 700; letter-spacing: .02em; } .b-queue .big { color: var(--c1); }
.next { display: flex; gap: 8px; margin-top: 12px; } .next i { font-style: normal; background: rgba(255, 255, 255, .2); border-radius: 8px; padding: 4px 9px; font-weight: 600; }
.b-kiosk { background: #fff; border-radius: 18px; padding: 16px; }
.ticket { margin-top: 14px; border: 2px dashed #b9c6d0; border-radius: 12px; padding: 12px; text-align: center; display: flex; flex-direction: column; animation: pop .4s both; } .ticket strong { font-size: 40px; color: var(--c1); } .ticket em { font-style: normal; color: #5d6f7d; font-size: 13px; }
.b-map { position: relative; height: 290px; border-radius: 16px; overflow: hidden; background: #dfe9e4; }
.b-map .r { position: absolute; background: #fff; } .r1 { left: 0; right: 0; top: 40%; height: 14px; } .r2 { top: 0; bottom: 0; left: 55%; width: 12px; } .r3 { left: 0; right: 0; top: 78%; height: 8px; transform: rotate(-4deg); } .r4 { top: 0; bottom: 0; left: 20%; width: 8px; transform: rotate(6deg); }
.park { position: absolute; left: 62%; top: 52%; width: 30%; height: 20%; border-radius: 14px; background: #c3dfc8; }
.pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; animation: drop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
.pin b { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; background: var(--c1); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.pin b svg { transform: rotate(45deg); }
.pin em { font-style: normal; font-size: 10.5px; background: #fff; border-radius: 6px; padding: 1px 6px; margin-top: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); color: #14202b; }
.pin.warn b { background: #d69a1e; } .pin.info b { background: #2f6fb0; } .pin.ok b { background: #2f9e61; }
@keyframes drop { from { transform: translate(-50%, -160%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }
.b-alarm { background: #fff; border-radius: 18px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: background .3s; }
.halo { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: #6b7c8a; background: #edf1f4; transition: all .3s; }
.b-alarm.armed .halo { color: #fff; background: #2f9e61; box-shadow: 0 0 0 10px rgba(47, 158, 97, .18); }
.b-alarm.ring { background: #fdeceb; } .b-alarm.ring .halo { color: #fff; background: #d64545; animation: siren .6s infinite alternate; }
@keyframes siren { from { box-shadow: 0 0 0 4px rgba(214, 69, 69, .4); } to { box-shadow: 0 0 0 20px rgba(214, 69, 69, 0); } }
.b-scan { background: #fff; border-radius: 18px; padding: 18px; } .prog { height: 10px; border-radius: 5px; background: #e5ebf0; overflow: hidden; } .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .2s; }
.b-score { background: #fff; border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--c1) calc(var(--p) * 1%), #e5ebf0 0); position: relative; } .ring::before { content: ""; position: absolute; inset: 12px; background: #fff; border-radius: 50%; } .ring strong, .ring small { position: relative; } .ring strong { font-size: 36px; line-height: 1; }
.b-pass .pc { background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.b-pass .pc small { letter-spacing: .12em; opacity: .85; } .b-pass .pc strong { font-size: 19px; } .b-pass .pc em { font-style: normal; font-size: 12px; opacity: .85; }
.qrf { width: 170px; height: 170px; background: #fff; border-radius: 12px; padding: 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 10px 0; }
.qrf i { background: #e9eef2; border-radius: 1px; } .qrf i.on { background: #111; }

/* ---- couches : récents, fiche, menu contextuel, toast ---- */
.recents { z-index: 40; background: rgba(8, 19, 28, .94); backdrop-filter: blur(16px); display: flex; flex-direction: column; padding-top: 40px; }
.recents[hidden], .ctx[hidden], .sheet-wrap[hidden] { display: none; }
.rc-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; } .rc-top button { background: rgba(255, 255, 255, .1); border: 0; border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.rc-row { flex: 1; display: flex; gap: 16px; overflow-x: auto; padding: 14px 16px 24px; scroll-snap-type: x mandatory; align-items: center; }
.rc-card { flex: 0 0 66%; scroll-snap-align: center; max-height: 100%; transition: transform .25s, opacity .25s; touch-action: pan-x; } .tablet .rc-card { flex-basis: 40%; }
.rc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .rc-h span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; } .rc-h b { font-weight: 600; font-size: 14px; }
.rc-p { border-radius: 22px; aspect-ratio: 9 / 15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); } .rc-p small { opacity: .7; font-size: 11px; }
.rc-empty { flex: 1; display: grid; place-items: center; color: var(--muted); margin: 0; }
.sheet-wrap { z-index: 50; } .sheet-wrap .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .24s; } .sheet-wrap.on .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: #0f1b26; color: #e8f0f5; border-radius: 26px 26px 0 0; padding: 8px 18px 24px; transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; user-select: text; -webkit-user-select: text; }
.sheet-wrap.on .sheet { transform: none; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 6px auto 12px; }
.sh-h { display: flex; gap: 12px; align-items: center; } .sh-h > div { flex: 1; min-width: 0; } .sh-h h2 { margin: 0; font-size: 19px; } .sh-h p { margin: 0; color: var(--muted); font-size: 13px; }
.sh-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.sh-x { background: rgba(255, 255, 255, .1); border: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.sheet h3 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--acc2); }
.sheet .desc { margin: 14px 0 0; color: #c9d6de; }
.feat { margin: 0; padding-left: 20px; color: #c9d6de; } .feat li { margin: 3px 0; }
.shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .shots figure { margin: 0; flex: 0 0 62%; scroll-snap-align: start; } .shots img { width: 100%; border-radius: 14px; display: block; background: #16293a; aspect-ratio: 9 / 16; object-fit: cover; } .shots figcaption { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-align: center; }
.apk { background: #16293a; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.apk header { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .ver { background: rgba(46, 196, 182, .18); color: var(--acc2); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.apk dl { display: flex; gap: 14px; margin: 10px 0; flex-wrap: wrap; } .apk dl div { min-width: 0; } .apk dt { font-size: 11px; color: var(--muted); } .apk dd { margin: 0; font-weight: 600; font-size: 13.5px; }
.sha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; } .sha span { font-size: 11px; color: var(--muted); width: 66px; } .sha code { flex: 1; min-width: 0; word-break: break-all; font: 11px/1.35 ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 6px 8px; color: #cfe3ee; }
.cp { background: rgba(255, 255, 255, .1); border: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; }
.apk-act { display: flex; gap: 8px; margin-top: 10px; } .btn-dl { flex: 1; background: linear-gradient(135deg, #2ec4b6, #1b8a7f); color: #04201d; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px; display: flex; gap: 8px; justify-content: center; align-items: center; } .btn-dl:active { transform: scale(.98); }
.btn-qr { background: rgba(255, 255, 255, .1); border: 0; border-radius: 12px; padding: 0 16px; font-weight: 600; }
.qr { text-align: center; margin-top: 12px; } .qr svg { width: 180px; height: 180px; border-radius: 12px; background: #fff; display: block; margin: 0 auto 6px; } .qr small { color: var(--muted); }
.how { margin: 14px 0 6px; background: #16293a; border-radius: 14px; padding: 10px 14px; } .how summary { cursor: pointer; font-weight: 600; }
.guide { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; } .guide b { display: block; } .guide span { color: #b9c9d3; font-size: 13.5px; }
.site { margin: 12px 0 0; } .muted { color: var(--muted); }
.ctx { position: absolute; z-index: 55; background: rgba(28, 38, 48, .96); backdrop-filter: blur(12px); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: pop .18s both; }
.ctx button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 14px; border-radius: 10px; font-size: 14px; } .ctx button:hover { background: rgba(255, 255, 255, .1); }
.toast { position: absolute; left: 50%; bottom: 62px; transform: translate(-50%, 20px); background: rgba(20, 28, 36, .94); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; max-width: 86%; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
.tp-code { font: 700 22px ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--c1); }
.tp-bar { display: block; width: 64px; height: 4px; border-radius: 2px; background: #e5ebf0; overflow: hidden; margin-top: 4px; } .tp-bar i { display: block; height: 100%; background: var(--c1); transition: width 1s linear; } .tp-bar.low i { background: #d64545; }
