* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    width: 100%;
    height: 100%;
    background: #050308;
    color: #fff;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html[lang="ja"], html[lang="ja"] body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="ar"], html[lang="ar"] body {
    font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", sans-serif;
}

html[lang="ar"] .tagline,
html[lang="ar"] .subtagline,
html[lang="ar"] .age-note,
html[lang="ar"] .card-note {
    letter-spacing: 0;
}

html[dir="rtl"] .live-badge {
    left: auto;
    right: 8px;
}

html[dir="rtl"] .card-meta {
    left: 44px;
    right: 10px;
}

html[dir="rtl"] .cam-btn {
    right: auto;
    left: 10px;
}

#app {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    #app {
        box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 80px rgba(244, 63, 94, .18);
    }
}

.text-shadow { text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.glass-tag {
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes scroll-v {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -50%, 0); }
}
@keyframes pulse-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236,72,153,.55); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(236,72,153,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(236,72,153,0); }
}
@keyframes ping {
    75%, 100% { transform: scale(2.1); opacity: 0; }
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: calc(12px + env(safe-area-inset-top)) 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 42%, transparent 100%);
    pointer-events: none;
}
.brand-wrap, .online-badge { pointer-events: auto; }
.brand-wrap { display: flex; align-items: center; gap: 8px; }
.ping-wrap { position: relative; width: 10px; height: 10px; flex-shrink: 0; }
.ping-ring, .ping-dot {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #f43f5e;
}
.ping-ring { animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite; opacity: .7; }
.brand {
    font-weight: 900;
    font-size: 1.28rem;
    font-style: italic;
    letter-spacing: -0.04em;
    color: #f43f5e;
    line-height: 1;
}
.online-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 600;
    color: rgba(255,255,255,.82);
}
.online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: live-pulse 1.6s ease-in-out infinite;
}
.online-count { color: #4ade80; font-weight: 800; font-variant-numeric: tabular-nums; }

.feed {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-top: calc(58px + env(safe-area-inset-top));
}
.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
    align-items: flex-start;
}
.col { min-width: 0; }
.col-b { margin-top: -72px; }
.col-track {
    display: flex;
    flex-direction: column;
    animation: scroll-v 26s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}
.col-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}
.col-b .col-track {
    animation-duration: 34s;
    animation-delay: -8s;
}
.col-track:active { animation-play-state: paused; }

.card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: #1a0c12;
    border: 1px solid rgba(255,255,255,.08);
    cursor: pointer;
}
.card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    transform: scale(1.06);
    transition: transform .45s ease;
}
.card:active img { transform: scale(1.14); }
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 38%, transparent 58%);
    pointer-events: none;
}
.live-badge {
    position: absolute;
    top: 8px; left: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px;
    border-radius: 999px;
}
.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: live-pulse 1.4s ease-in-out infinite;
}
.live-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.card-meta {
    position: absolute;
    bottom: 10px; left: 10px; right: 44px;
}
.card-name { font-weight: 800; font-size: .95rem; color: #fff; line-height: 1.15; }
.card-note { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 2px; }
.cam-btn {
    position: absolute;
    bottom: 10px; right: 10px;
    background: #f43f5e;
    width: 30px; height: 30px;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(244,63,94,.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cam-btn svg { width: 14px; height: 14px; fill: #fff; }

.bottom-fade {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 210px;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,.82) 42%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.cta-wrap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cta-copy { text-align: center; margin-bottom: 12px; }
.tagline {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.subtagline {
    font-size: .8rem;
    color: #fb7185;
    font-weight: 500;
    margin-top: 4px;
}
.cta-btn {
    animation: pulse-btn 1.8s infinite;
    width: 100%;
    max-width: 360px;
    background: linear-gradient(90deg, #e11d48, #ec4899);
    color: #fff;
    padding: 14px 0;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.cta-btn:active { transform: scale(.96); animation: none; }
.cta-btn svg { width: 20px; height: 20px; fill: currentColor; }
.age-note {
    margin-top: 8px;
    opacity: .38;
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
}

@media (max-height: 700px) {
    .tagline { font-size: 1rem; }
    .subtagline { font-size: .75rem; }
    .cta-copy { margin-bottom: 8px; }
    .cta-btn { padding: 12px 0; font-size: 1rem; }
    .bottom-fade { height: 176px; }
    .col-b { margin-top: -48px; }
}

@media (prefers-reduced-motion: reduce) {
    .col-track, .cta-btn, .ping-ring, .live-dot, .online-dot { animation: none; }
}
