/* UNISTORE (js/appstore.js, 2026-11-25): the App Store look inside the game phone. Light + dark (html.dark). */
.phone .asx { --as-bg: #fff; --as-ink: #111214; --as-mute: #8a8a8e; --as-line: rgba(60, 60, 67, .16); --as-card: #f2f2f7; --as-btn: #eef0f4; --as-blue: #0a7cff; --as-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--as-bg); color: var(--as-ink); }
html.dark .phone .asx { --as-bg: var(--surface, #111); --as-ink: #f2f2f7; --as-mute: #98989f; --as-line: rgba(140, 140, 150, .28); --as-card: #1c1c1e; --as-btn: #2c2c2e; --as-blue: #3b9bff; --as-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.phone .asx .asscroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 22px; }
.phone .ashd { display: inline-flex; align-items: center; min-height: 28px; }
.phone .asx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* the icons (always the flat tile of the studio look) */
.phone .asi { flex: 0 0 auto; display: grid; place-items: center; border-radius: 22.5%; color: #fff; position: relative; overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); width: 48px; height: 48px; }
.phone .asi svg.ico { width: 55%; height: 55%; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.phone .asi b { font-size: 26px; line-height: 1; font-weight: 400; }
.phone .asi.xs { width: 28px; height: 28px; border-radius: 7px; } .phone .asi.xs b { font-size: 16px; }
.phone .asi.s { width: 54px; height: 54px; } .phone .asi.m { width: 52px; height: 52px; }
.phone .asi.l { width: 46px; height: 46px; } .phone .asi.xl { width: 96px; height: 96px; } .phone .asi.xl b { font-size: 50px; }

/* the GET / OPEN button and the ring while it downloads */
.phone .asx .asbtn { flex: 0 0 auto; min-width: 72px; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--as-btn); color: var(--as-blue); font-weight: 800; font-size: 14px; letter-spacing: .02em; display: inline-grid; place-items: center; }
.phone .asx .asbtn.big { background: var(--as-blue); color: #fff; min-width: 80px; }
.phone .asx .asbtn.cloud { min-width: 40px; width: 40px; padding: 0; background: none; color: var(--as-blue); }
.phone .asx .asbtn.ring { min-width: 30px; width: 30px; padding: 0; border-radius: 50%; background: conic-gradient(var(--as-blue) var(--p, 0%), var(--as-line) 0); position: relative; }
.phone .asx .asbtn.ring::before { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--as-bg); }
.phone .asx .asbtn.ring i { position: relative; width: 9px; height: 9px; border-radius: 2px; background: var(--as-blue); }
.phone .asx .asbtn.big.ring { width: 36px; min-width: 36px; height: 36px; }
.phone .asx .asbtn:active { opacity: .6; }

/* the big titles */
.phone .ashead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 4px 0 10px; border-bottom: .5px solid var(--as-line); margin-bottom: 14px; }
.phone .ashead.sub { border: 0; margin-bottom: 4px; }
.phone .ashead h1 { margin: 0; font-size: 32px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.phone .askick { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--as-mute); }
.phone .askick.light { color: rgba(255, 255, 255, .82); }
.phone .asacct { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #8e9aaf, #5b6577) !important; color: #fff !important; display: grid; place-items: center; position: relative; font-weight: 800; flex: 0 0 auto; }
.phone .asacct i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b30; color: #fff; font: 700 11px/18px var(--font, sans-serif); font-style: normal; text-align: center; padding: 0 5px; }
.phone .assec { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 8px; padding-top: 14px; border-top: .5px solid var(--as-line); }
.phone .assec h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.phone .assec button { color: var(--as-blue) !important; font-size: 15px; }
.phone .asmute { color: var(--as-mute); font-size: 13px; }

/* story cards on Today */
.phone .asstory { position: relative; border-radius: 18px; padding: 16px; margin: 0 0 18px; box-shadow: var(--as-shadow); overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, var(--c, #3a72d1), color-mix(in srgb, var(--c, #3a72d1) 55%, #000)); }
.phone .asstory.list { background: var(--as-card); color: var(--as-ink); box-shadow: none; }
.phone .asstory h2 { margin: 4px 0 4px; font-size: 25px; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; }
.phone .asstory p { margin: 0; font-size: 14px; opacity: .88; }
.phone .asstoryhit { position: absolute; inset: 0; z-index: 0; }
.phone .asstory .asbtn, .phone .asstory .asrow { position: relative; z-index: 1; }
.phone .asstory.aotd { min-height: 280px; display: flex; flex-direction: column; }
.phone .asaotdi { flex: 1; display: grid; place-items: center; padding: 18px 0; pointer-events: none; }
.phone .asaotdi .asi { box-shadow: 0 14px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.phone .asaotdf { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .24); margin: 0 -16px -16px; padding: 12px 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.phone .asaotdf .asrt { pointer-events: none; }
.phone .asaotdf .asrt span { color: rgba(255, 255, 255, .78) !important; }
.phone .asstory .asaotdf .asbtn { background: rgba(255, 255, 255, .92); color: var(--as-blue); }
.phone .asstory.feat { min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; } .phone .asstory.feat p { margin-bottom: 12px; }
.phone .asstory.coll { min-height: 190px; display: flex; flex-direction: column; }
.phone .asstory.coll.big { min-height: 150px; }
.phone .ascollic { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; pointer-events: none; }
.phone .ascollic .asi { box-shadow: 0 6px 14px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.phone .aslink { display: block; margin: 8px 0 0; color: var(--as-blue) !important; font-weight: 700; }
.phone .asfine { text-align: center; font-size: 12px; color: var(--as-mute); margin: 8px 0 0; }

/* rows of apps */
.phone .asrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.phone .asrowh { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.phone .asrt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.phone .asrt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .asrt span { font-size: 13px; color: var(--as-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .asn { width: 18px; flex: 0 0 18px; font-weight: 800; font-size: 15px; text-align: center; }
.phone .aslist .asrow, .phone .ascol .asrow, .phone .asstory.list .asrow { border-bottom: .5px solid var(--as-line); }
.phone .aslist .asrow:last-child, .phone .ascol .asrow:last-child, .phone .asstory.list .asrow:last-of-type { border-bottom: 0; }
.phone .asgrid3 { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.phone .asgrid3::-webkit-scrollbar, .phone .asshots::-webkit-scrollbar, .phone .asinfo::-webkit-scrollbar { display: none; }
.phone .ascol { scroll-snap-align: start; min-width: 0; }
.phone .asnote { margin: -4px 0 6px 66px; font-size: 13px; color: var(--as-mute); }
.phone .asx button.asrm { width: 36px; height: 36px; border-radius: 50%; background: var(--as-btn); color: #ff3b30; display: grid; place-items: center; flex: 0 0 auto; }
.phone .asx button.asrm svg.ico { width: 18px; height: 18px; }
.phone .ascats { display: flex; flex-direction: column; }
.phone .ascats button { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: .5px solid var(--as-line) !important; font-size: 16px; text-align: left; }
.phone .ascats button span { width: 30px; font-size: 20px; text-align: center; }
.phone .ascats button i { margin-left: auto; font-style: normal; color: var(--as-mute); font-size: 20px; }

/* search */
.phone .assearch { display: flex; align-items: center; gap: 8px; background: var(--as-card); border-radius: 11px; padding: 0 10px; height: 40px; color: var(--as-mute); }
.phone .assearch svg.ico { width: 18px; height: 18px; flex: 0 0 auto; }
.phone .assearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--as-ink); font: inherit; font-size: 16px; height: 100%; -webkit-appearance: none; appearance: none; }
.phone .aschips { display: flex; flex-wrap: wrap; gap: 8px; }
.phone .aschips button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 18px; background: var(--as-card) !important; color: var(--as-blue) !important; font-size: 15px; text-transform: capitalize; }
.phone .aschips svg.ico { width: 15px; height: 15px; }
.phone .asempty { text-align: center; padding: 48px 10px; display: flex; flex-direction: column; gap: 6px; } .phone .asempty b { font-size: 20px; } .phone .asempty span { color: var(--as-mute); }

/* the app page */
.phone .asphead { display: flex; gap: 14px; align-items: stretch; padding: 4px 0 14px; }
.phone .asptxt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone .asptxt h1 { margin: 2px 0 2px; font-size: 22px; line-height: 1.15; font-weight: 800; }
.phone .asptxt > span { color: var(--as-mute); font-size: 14px; }
.phone .aspbtns { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.phone .aspbtns small { font-size: 10px; color: var(--as-mute); line-height: 1.2; max-width: 70px; }
.phone .asinfo { display: flex; overflow-x: auto; margin: 0 -16px; padding: 10px 16px; border-top: .5px solid var(--as-line); border-bottom: .5px solid var(--as-line); scrollbar-width: none; }
.phone .asinfo > div { flex: 0 0 auto; min-width: 92px; padding: 0 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; color: var(--as-mute); }
.phone .asinfo > div + div { border-left: .5px solid var(--as-line); }
.phone .asinfo span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.phone .asinfo b { font-size: 19px; font-weight: 800; color: var(--as-mute); line-height: 1.25; }
.phone .asinfo em { font-style: normal; font-size: 11px; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .asinfo .asdev svg.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.phone .asstars { display: inline-flex; gap: 1px; } .phone .asstars i { width: 11px; height: 11px; background: linear-gradient(90deg, var(--as-mute) var(--f), var(--as-line) 0); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.phone .asx { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E"); }
.phone .aswn { padding: 0 0 4px; } .phone .aswnh { display: flex; justify-content: space-between; color: var(--as-mute); font-size: 13px; } .phone .aswn p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.phone .asshots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.phone .asshot { flex: 0 0 62%; max-width: 230px; aspect-ratio: 9 / 15.5; scroll-snap-align: start; border-radius: 16px; padding: 14px 12px 0; color: #fff; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  background: radial-gradient(100% 60% at 80% 0%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 60%), linear-gradient(170deg, var(--c), color-mix(in srgb, var(--c) 50%, #000)); }
.phone .asshot > b { font-size: 17px; line-height: 1.2; font-weight: 800; text-align: center; }
.phone .asshotph { flex: 1; margin: 0 8px; border-radius: 18px 18px 0 0; background: rgba(255, 255, 255, .92); border: 4px solid rgba(0, 0, 0, .7); border-bottom: 0; padding: 22px 12px 0; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; }
.phone .asshotph > i { position: absolute; top: 6px; left: 50%; width: 34%; height: 8px; border-radius: 6px; background: rgba(0, 0, 0, .75); transform: translateX(-50%); }
.phone .asshotph .ln { display: block; width: 86%; height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--c) 30%, #e8e8ee); }
.phone .asshotph .ln.s { width: 58%; } .phone .asshotph .ln.l1 { width: 70%; } .phone .asshotph .ln.l2 { width: 94%; height: 34px; border-radius: 10px; }
html.dark .phone .asshotph { background: rgba(28, 28, 30, .94); } html.dark .phone .asshotph .ln { background: color-mix(in srgb, var(--c) 40%, #3a3a3c); }
.phone .asdesc { font-size: 15px; line-height: 1.45; margin: 16px 0 0; position: relative; }
.phone .asdesc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-right: 0; }
.phone .asdesc button { position: absolute; right: 0; bottom: 0; background: var(--as-bg) !important; color: var(--as-blue) !important; padding-left: 18px !important; box-shadow: -14px 0 12px var(--as-bg); }
.phone .asrate { display: flex; gap: 18px; align-items: center; }
.phone .asravg { display: flex; flex-direction: column; align-items: center; } .phone .asravg b { font-size: 52px; line-height: 1; font-weight: 800; } .phone .asravg span { font-size: 13px; color: var(--as-mute); font-weight: 700; }
.phone .asrbars { flex: 1; display: flex; flex-direction: column; gap: 2px; } .phone .asrbars div { display: flex; align-items: center; gap: 6px; }
.phone .asrbars span { width: 44px; text-align: right; font-size: 8px; letter-spacing: -1px; color: var(--as-mute); }
.phone .asrbars i { flex: 1; height: 4px; border-radius: 2px; background: var(--as-line); overflow: hidden; } .phone .asrbars em { display: block; height: 100%; background: var(--as-mute); border-radius: 2px; }
.phone .asrbars small { align-self: flex-end; color: var(--as-mute); font-size: 13px; margin-top: 4px; }
.phone .asrnone { color: var(--as-mute); font-size: 14px; padding: 4px 0; }
.phone .astap { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 0; border-top: .5px solid var(--as-line); font-size: 15px; flex-wrap: wrap; }
.phone .astapst { display: inline-flex; gap: 4px; } .phone .astapst button { font-size: 26px; line-height: 1; color: var(--as-line) !important; width: 32px; height: 32px; }
.phone .astapst button.on { color: var(--as-blue) !important; } .phone .astap em { font-style: normal; color: var(--as-mute); font-size: 13px; }
.phone .asinf { margin: 0; } .phone .asinf div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: .5px solid var(--as-line); font-size: 15px; }
.phone .asinf dt { color: var(--as-mute); } .phone .asinf dd { margin: 0; text-align: right; }
.phone .asdel { width: 100%; margin-top: 16px; height: 46px; border-radius: 12px; background: var(--as-card) !important; color: #ff3b30 !important; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.phone .asdel svg.ico { width: 18px; height: 18px; }

/* the tab bar */
.phone .astabs { flex: 0 0 auto; display: flex; justify-content: space-around; border-top: .5px solid var(--as-line); background: color-mix(in srgb, var(--as-bg) 92%, transparent); padding: 6px 0 calc(6px + var(--safe-b, 0px)); }
.phone .astabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--as-mute) !important; font-size: 10.5px; font-weight: 600; min-height: 44px; justify-content: center; }
.phone .astabs button svg.ico { width: 24px; height: 24px; }
.phone .astabs button.on { color: var(--as-blue) !important; }

/* the home screen: a download in progress, the blue new-dot, press and hold */
.phone .app.asdl .ic { filter: grayscale(.4) brightness(.62); }
.phone .app.asdl .aspie { position: absolute; top: 14px; left: calc(50% - 17px); width: 34px; height: 34px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: conic-gradient(rgba(255, 255, 255, 0) var(--p, 0%), rgba(255, 255, 255, .92) 0); -webkit-mask: radial-gradient(circle, #000 13px, transparent 13.5px, transparent 15px, #000 15.5px); mask: radial-gradient(circle, #000 13px, transparent 13.5px, transparent 15px, #000 15.5px); }
.phone .app .al .asnew { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #0a84ff; margin-right: 4px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
body.frosted .phone .pface .app, .phone .pface .app { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.phone .aspop { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: asfade .16s ease-out; }
.phone .aspop .aspopic { position: absolute; margin: 0; pointer-events: none; transform: scale(1.06); transition: none; }
.phone .aspopm { position: absolute; width: 230px; border-radius: 14px; overflow: hidden; background: rgba(245, 245, 247, .96); color: #111; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); animation: aspop .18s cubic-bezier(.2, .9, .3, 1.2); }
.phone .aspopm button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; font-size: 16px; background: none; border: 0; color: inherit; font-family: inherit; text-align: left; }
.phone .aspopm button + button { border-top: .5px solid rgba(60, 60, 67, .22); }
.phone .aspopm button.red { color: #ff3b30; }
.phone .aspopm svg.ico { width: 19px; height: 19px; flex: 0 0 auto; }
html.dark .phone .aspopm { background: rgba(44, 44, 46, .97); color: #f2f2f7; } html.dark .phone .aspopm button + button { border-color: rgba(140, 140, 150, .3); }
.phone .asalert { position: absolute; inset: 0; z-index: 41; display: grid; place-items: center; background: rgba(0, 0, 0, .38); animation: asfade .16s ease-out; }
.phone .asalbox { width: 270px; max-width: calc(100% - 40px); border-radius: 14px; overflow: hidden; background: rgba(245, 245, 247, .98); color: #111; text-align: center; animation: aspop .2s cubic-bezier(.2, .9, .3, 1.2); }
.phone .asalbox > b { display: block; padding: 18px 16px 4px; font-size: 17px; }
.phone .asalbox p { margin: 0; padding: 0 16px 16px; font-size: 13px; line-height: 1.35; color: #3c3c43; }
.phone .asalbox button { display: block; width: 100%; padding: 12px; border: 0; border-top: .5px solid rgba(60, 60, 67, .25); background: none; color: #0a7cff; font: 600 17px var(--font, sans-serif); }
.phone .asalbox button.red { color: #ff3b30; font-weight: 600; }
html.dark .phone .asalbox { background: rgba(44, 44, 46, .98); color: #f2f2f7; } html.dark .phone .asalbox p { color: #c7c7cc; } html.dark .phone .asalbox button { border-color: rgba(140, 140, 150, .35); color: #3b9bff; } html.dark .phone .asalbox button.red { color: #ff453a; }
@keyframes asfade { from { opacity: 0; } }
@keyframes aspop { from { opacity: 0; transform: scale(.86); } }
@media (prefers-reduced-motion: reduce) { .phone .aspop, .phone .aspopm, .phone .asalert, .phone .asalbox { animation: none; } }
