/* Full-bleed layout; artwork is exported at 2x for a 375px mobile canvas. */
:root { color-scheme: dark; --page-width: 750px; --gold: #ff9818; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; background: #030303; }
body { overflow-x: hidden; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-wrapper { position: relative; width: min(100%, var(--page-width)); margin: 0 auto; padding-bottom: 120px; background: #030303; isolation: isolate; }
.landing-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; aspect-ratio: 750 / 104; min-height: 46px; padding: 0 3.333% 0 4.667%; background: radial-gradient(ellipse at 80% 0, #251421 0, transparent 55%), linear-gradient(90deg, #1a111c, #100c13); }
.landing-brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.landing-brand img { display: block; flex: none; width: clamp(33px, 10vw, 43px); height: auto; border-radius: 6px; }
.brand-copy { min-width: 0; white-space: nowrap; }
.brand-copy h1 { color: #fff8ef; font-size: clamp(13px, 4vw, 17px); line-height: 1.15; font-weight: 760; text-shadow: 0 1px 3px #000; }
.brand-copy p { margin-top: 4px; color: #bd9e83; font-size: clamp(8px, 2.6vw, 11px); line-height: 1.2; }
.showcase > img, .latest-heading { display: block; width: 100%; height: auto; }
.design-nav { position: relative; z-index: 10; display: flex; align-items: center; flex: none; }
.design-service { display: flex; align-items: center; justify-content: center; gap: 5px; flex: none; width: clamp(80px, 24.667vw, 106px); height: clamp(30px, 8.667vw, 37px); border: 1px solid #e6982d; border-radius: 24px; background: #20160f; color: #f6b15b; box-shadow: 0 0 12px #ff971c88, inset 0 0 8px #f1881738; font-size: clamp(11px, 3.4vw, 14px); white-space: nowrap; }
.design-service svg { flex: none; }
.business-link { position: absolute; right: 0; top: calc(100% + 4px); width: max-content; padding: 5px 9px; border: 1px solid #ff9b165c; border-radius: 20px; background: #080706eb; color: #ffae48; font-size: 10px; }
.business-link[hidden] { display: none; }
.latest-heading { aspect-ratio: 750 / 159; }
.drama-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 1.4%; padding: 0 3.333%; list-style: none; }
.drama-card { display: block; width: 100%; padding: 0; border: 0; border-radius: 6px; background: #070707; cursor: pointer; overflow: hidden; }
.drama-card img { display: block; width: 100%; height: auto; aspect-ratio: 345 / 216; }
.drama-card:active { filter: brightness(1.16); transform: scale(.985); }

.download-area { position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(100%, var(--page-width)); padding: 18px 25px calc(15px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, #030303 27%, #030303 100%); transform: translateX(-50%); }
.download-section { display: flex; align-items: center; justify-content: center; gap: 12.5px; }
.download-btn { position: relative; display: block; flex: 1 1 0; min-width: 0; max-width: 160px; height: 47px; border-radius: 24px; }
.download-btn:active { filter: brightness(1.16); transform: scale(.985); }
.download-button-art { display: block; width: 100%; height: 100%; object-fit: fill; }
.download-btn.loading { pointer-events: none; }
.download-btn.loading .download-button-art, .download-btn.loading .android-icon { visibility: hidden; }
.android-icon { position: absolute; top: 50%; left: 17px; width: 24px; height: 24px; fill: #ff9818; pointer-events: none; transform: translateY(-50%); filter: drop-shadow(0 0 3px #ff981866); }
.btn-loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid var(--gold); border-radius: inherit; background: #0b0906; color: var(--gold); font-size: 11px; }
.download-btn.loading .btn-loading { display: flex; }
.btn-spinner, .downloading-hint .spinner { width: 16px; height: 16px; border: 2px solid #ff9a1342; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.browser-watch { display: block; width: fit-content; margin: 8px auto 0; color: #ffad32; font-size: 11px; }
.browser-watch[hidden] { display: none !important; }
.downloading-hint { position: fixed; z-index: 1000; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 11px 17px; border: 1px solid #ff9a135e; border-radius: 24px; background: #080706ed; color: #fff; font-size: 12px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s, visibility .2s; }
.downloading-hint.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.downloading-hint a { color: #ffad32; text-decoration: underline; white-space: nowrap; }
.downloading-hint a[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 374px) { .page-wrapper { padding-bottom: 32vw; } .download-area { padding-inline: 18px; } .download-section { gap: 8px; } }
/* Match ldy-black: center a phone-sized frame on desktop, keep viewport height fixed. */
@media (min-width: 600px) {
    html, body { height: 100%; }
    body { display: flex; align-items: center; justify-content: center; overflow: hidden; }
    body::before { content: ''; position: fixed; inset: -30px; z-index: 0; pointer-events: none; background: url('../imags/landing-black/hero.webp') center / cover no-repeat; filter: blur(30px) brightness(.35); }
    .page-wrapper { z-index: 1; width: min(100%, 430px); height: min(100dvh, 924px); margin: 0; padding-bottom: 120px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; box-shadow: 0 24px 70px #0008; }
    .page-wrapper::-webkit-scrollbar { display: none; }
    .download-area { width: min(100%, 430px); bottom: max(0px, calc((100dvh - 924px) / 2)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
