:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #17111b;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; background: #17111b; color: #fff; overflow: hidden; }

.app-shell { width: min(100%, 400px); min-height: 100dvh; margin: 0 auto; position: relative; isolation: isolate; overflow: hidden; }

.moving-backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #24152b; }

.moving-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 7, 16, .28), rgba(12, 7, 16, .55)); }
.moving-backdrop.has-image::after { background: linear-gradient(180deg, rgba(12, 7, 16, .06), rgba(12, 7, 16, .18)); }

.backdrop-grid { width: 100%; min-height: 200%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: #1a1220; animation: scroll-background 30s linear infinite; }

.backdrop-grid--repeat { position: absolute; top: 100%; left: 0; }

.backdrop-grid::before, .backdrop-grid::after { content: ""; min-height: 100%; background:
  radial-gradient(circle at 40% 25%, rgba(255, 220, 238, .92) 0 4%, transparent 4.5%),
  radial-gradient(ellipse at 50% 46%, rgba(243, 130, 166, .88) 0 16%, transparent 16.5%),
  linear-gradient(155deg, #824f86, #2e294e 44%, #e294ae 45%, #30233f 100%); background-size: 100% 25%; }

.backdrop-grid::after { filter: hue-rotate(54deg) saturate(.75); }

.moving-backdrop.has-image .backdrop-grid { background-position: center; background-repeat: no-repeat; background-size: cover; }
.moving-backdrop.has-image .backdrop-grid::before, .moving-backdrop.has-image .backdrop-grid::after { display: none; }

@keyframes scroll-background { to { transform: translateY(-50%); } }

.intro { position: fixed; top: 20px; left: 50%; width: min(100%, 400px); transform: translateX(-50%); z-index: 2; padding: 0 20px; }

h1 { margin: 0 0 15px; color: #fe4e60; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(2.55rem, 11vw, 3rem); font-style: italic; font-weight: 900; letter-spacing: 2px; text-align: center; text-shadow: 0 4px 8px rgba(0, 0, 0, .72); }

.intro-copy { display: flex; align-items: center; gap: 15px; }
.intro-copy p { margin: 0; flex: 1; font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: clamp(.82rem, 3.4vw, 1rem); font-style: italic; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 4px rgba(0,0,0,.72); }

.app-icon { flex: 0 0 60px; width: 60px; height: 60px; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 5px 18px rgba(0,0,0,.38); }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }

.profile-rail { position: fixed; z-index: 2; bottom: 125px; left: 50%; width: min(100%, 400px); transform: translateX(-50%); overflow: hidden; }
.profile-track { display: flex; gap: 5px; width: max-content; padding: 0 4px; animation: scroll-cards 10s linear infinite; }
@keyframes scroll-cards { to { transform: translateX(-50%); } }

.profile-card { position: relative; flex: 0 0 120px; height: 200px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.55); transition: transform .3s ease; }
.profile-card.has-image { background: #241d2b; }
.profile-card-media { position: absolute; inset: 0; overflow: hidden; }
.profile-card-image-backdrop { position: absolute; inset: -12px; background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(12px) brightness(.62) saturate(1.08); transform: scale(1.08); }
.profile-card-image-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 10, 24, .05), rgba(19, 10, 24, .35)); }
.profile-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.profile-card:hover { transform: scale(1.05); }
.profile-card span { position: absolute; top: 7px; left: 7px; z-index: 1; padding: 2px 5px; border-radius: 5px; color: #fff; background: #ff5a64; font-size: .62rem; font-weight: 900; letter-spacing: .03em; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.profile-card.is-hot span { display: flex; align-items: center; gap: 2px; padding: 4px 7px 4px 5px; border: 1px solid rgba(255, 234, 176, .92); border-radius: 999px; background: linear-gradient(135deg, #ffde40 0%, #ff8c19 38%, #ff3f2e 70%, #d5003b 100%); color: #fffaf0; font-size: .66rem; font-style: italic; letter-spacing: .07em; text-shadow: 0 1px 1px rgba(110, 15, 0, .65); box-shadow: 0 3px 10px rgba(255, 41, 0, .78), inset 0 1px 0 rgba(255,255,255,.58); animation: hot-pulse 1.25s ease-in-out infinite; }
.profile-card.is-hot span::before { content: '🔥'; font-size: .76rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(102, 0, 0, .45)); }
@keyframes hot-pulse { 0%, 100% { transform: translateY(0) scale(1); filter: saturate(1); } 50% { transform: translateY(-2px) scale(1.08); filter: saturate(1.28) brightness(1.12); } }
.profile-card strong { position: relative; z-index: 1; padding-top: 72px; color: rgba(255,255,255,.92); font-size: 1.15rem; letter-spacing: .22em; text-shadow: 0 2px 5px rgba(0,0,0,.62); }
.profile-card--one { background: radial-gradient(circle at 46% 30%, #f4d1c0 0 14%, transparent 14.5%), linear-gradient(132deg, #9d7b65 0 30%, #e3ad87 30% 66%, #253b55 66%); }
.profile-card--two { background: radial-gradient(circle at 54% 29%, #f0c3ad 0 14%, transparent 14.5%), linear-gradient(155deg, #252e4b 0 28%, #c27c67 28% 65%, #b9b2ad 66%); }
.profile-card--three { background: radial-gradient(circle at 49% 30%, #f7d4c2 0 14%, transparent 14.5%), linear-gradient(30deg, #753e48, #e0a686 48%, #5b2741 49%); }
.profile-card--four { background: radial-gradient(circle at 48% 29%, #efc5ad 0 14%, transparent 14.5%), linear-gradient(130deg, #a63d4a 0 33%, #e3bd9a 34% 70%, #3b6e77 70%); }
.profile-card--five { background: radial-gradient(circle at 49% 29%, #efd0b9 0 14%, transparent 14.5%), linear-gradient(145deg, #ce8e5b, #f0c6ac 52%, #a64e86 53%); }
.profile-card--six { background: radial-gradient(circle at 53% 30%, #f0cdb9 0 14%, transparent 14.5%), linear-gradient(150deg, #344a71 0 33%, #dc9e8e 34% 70%, #b48d53 71%); }

.download-button { position: fixed; z-index: 3; bottom: 40px; left: 50%; width: min(87.5vw, 350px); height: 75px; transform: translateX(-50%); border: 0; border-radius: 50px; background: linear-gradient(145deg, #ff5a70, #fe2f50); color: #fff; cursor: pointer; box-shadow: 0 8px 30px rgba(254,78,96,.7), 0 0 40px rgba(255,60,80,.8), 0 0 60px rgba(255,100,120,.6), inset 0 -4px 10px rgba(0,0,0,.2), inset 0 4px 10px rgba(255,255,255,.2); transition: transform .35s cubic-bezier(.175,.885,.32,1.275); animation: glow 2.2s infinite ease-in-out; }
.download-button span { font-size: clamp(1.75rem, 7vw, 2.25rem); font-weight: 900; letter-spacing: 1.5px; text-shadow: 0 3px 8px rgba(0,0,0,.4); }
.download-button:hover { transform: translateX(-50%) scale(1.08); }
.download-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes glow { 50% { box-shadow: 0 10px 35px rgba(254,78,96,.9), 0 0 50px rgba(255,60,80,1), 0 0 75px rgba(255,100,120,.8), inset 0 -4px 10px rgba(0,0,0,.2), inset 0 4px 10px rgba(255,255,255,.2); } }

.notice { position: fixed; z-index: 4; left: 50%; bottom: 11px; width: 92%; margin: 0; transform: translateX(-50%) translateY(8px); text-align: center; color: rgba(255,255,255,.93); font-size: .72rem; opacity: 0; transition: opacity .2s, transform .2s; text-shadow: 0 1px 2px #000; }
.notice.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 768px) { .profile-rail { bottom: 80px; } .download-button { height: 80px; } .app-icon { width: 70px; height: 70px; flex-basis: 70px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
