/* ==========================================================
   Old2Play — home page
   ========================================================== */

html:has(.landing) { overflow-x: clip; }
.landing {
    overflow-x: clip;
    background: #fbf4e6;
}
.landing::before { display: none; }

.h-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ---------- moving sky behind everything ---------- */

.h-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.h-blob {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.32;
    animation: h-drift 22s ease-in-out infinite alternate;
}
.h-blob-1 { background: #ff6a3d; left: -12vmax; top: -16vmax; }
.h-blob-2 { background: #ffc233; right: -14vmax; top: -10vmax; animation-duration: 26s; animation-delay: -6s; }
.h-blob-3 { background: #2fd1c0; left: 30%; top: 55%; opacity: 0.18; animation-duration: 30s; animation-delay: -12s; }
.h-blob-4 { background: #9b7bff; right: -10vmax; bottom: -18vmax; opacity: 0.16; animation-duration: 28s; animation-delay: -3s; }
.h-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(70, 48, 18, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(70, 48, 18, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes h-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vmax, 4vmax) scale(1.12); }
    100% { transform: translate(-4vmax, 7vmax) scale(0.94); }
}

/* ---------- navigation ---------- */

.h-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.25s, box-shadow 0.25s;
}
.h-nav.is-stuck {
    background: rgba(251, 244, 230, 0.84);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(70, 48, 18, 0.08);
}
.h-nav-row { display: flex; align-items: center; gap: 26px; height: 70px; }
.h-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--stencil);
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--text);
}
.h-coin {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3b0, #ffb000 45%, #c47a00);
    box-shadow: inset 0 0 0 3px rgba(140, 80, 0, 0.35), 0 3px 0 #8a5300;
    display: grid;
    place-items: center;
    animation: h-coin 3.2s ease-in-out infinite;
}
.h-coin i { width: 4px; height: 12px; border-radius: 2px; background: rgba(120, 66, 0, 0.6); }
@keyframes h-coin {
    0%, 60%, 100% { transform: rotateY(0); }
    80% { transform: rotateY(180deg); }
}
.h-links { display: flex; gap: 22px; }
.h-links a {
    position: relative;
    font-family: var(--ui);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.92rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 0;
}
.h-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--slug);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}
.h-links a:hover { color: var(--text); }
.h-links a:hover::after { transform: scaleX(1); }
.h-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    font-family: var(--ui);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.88rem;
    white-space: nowrap;
}
.h-live strong { color: var(--glow-text); }
.h-live i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #36c25a;
    box-shadow: 0 0 0 0 rgba(54, 194, 90, 0.6);
    animation: h-ping 1.8s ease-out infinite;
}
.h-live i.is-off { background: var(--danger); animation: none; }
@keyframes h-ping {
    0% { box-shadow: 0 0 0 0 rgba(54, 194, 90, 0.55); }
    100% { box-shadow: 0 0 0 10px rgba(54, 194, 90, 0); }
}
.h-account {
    padding: 10px 18px 9px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.15s, background 0.2s;
}
.h-account:hover { transform: translateY(-1px); background: var(--slug); }
.h-account.is-in { background: var(--amber); color: var(--ink); }

/* ---------- hero ---------- */

.h-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 40px;
    align-items: center;
    min-height: min(820px, calc(100vh - 70px));
    padding: 30px 0 70px;
}
.h-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(70, 48, 18, 0.08);
    font-size: 0.92rem;
    color: var(--text-dim);
}
.h-chip b {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--slug);
    color: #fff;
    font-family: var(--ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.h-title {
    margin: 0;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: clamp(3rem, 7.2vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--text);
}
.h-line { display: block; }
.h-ch, .h-gap { display: inline-block; white-space: pre; }
.h-ch { animation: h-drop 0.75s cubic-bezier(0.2, 1.5, 0.45, 1) calc(0.2s + var(--i) * 0.05s) both; }
.h-line-big { font-size: 1.32em; filter: drop-shadow(0 7px 0 rgba(22, 18, 12, 0.12)); }
.h-line-big .h-ch {
    color: transparent;
    background-image: linear-gradient(90deg, #e23b22, #ff7a1a, #ffb000, #1fb5a8, #3d8bfd, #7a5af5, #e23b22);
    background-size: 700% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation:
        h-drop 0.75s cubic-bezier(0.2, 1.5, 0.45, 1) calc(0.2s + var(--i) * 0.05s) both,
        h-flow 6s linear calc(var(--i) * -0.3s) infinite;
}
.h-line-rot { font-size: 0.42em; margin-top: 0.35em; letter-spacing: 0.04em; color: var(--text-dim); }
.h-rot {
    display: inline-grid;
    vertical-align: bottom;
    height: 1.15em;
    overflow: hidden;
    padding: 0 0.1em;
}
.h-rot b { grid-area: 1 / 1; font-weight: 400; animation: h-rot-in 0.55s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.h-rot b.is-out { animation: h-rot-out 0.5s ease-in both; }
@keyframes h-drop {
    0% { opacity: 0; transform: translateY(-0.9em) rotate(-8deg) scale(0.8); }
    100% { opacity: 1; transform: none; }
}
@keyframes h-flow {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}
@keyframes h-rot-in {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@keyframes h-rot-out {
    from { transform: none; opacity: 1; }
    to { transform: translateY(-110%); opacity: 0; }
}
.h-in { animation: h-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both; }
@keyframes h-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.h-lede { margin: 22px 0 0; max-width: 34rem; font-size: 1.15rem; line-height: 1.55; color: var(--text-dim); }

.h-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.h-actions-center { justify-content: center; }
.h-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px 13px;
    border: 0;
    border-radius: 14px;
    font-family: var(--stencil);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.h-btn span { font-family: var(--body); font-size: 0.9em; }
.h-btn-icon { width: 1.1em; height: 1.1em; flex: none; }
.h-btn-main {
    color: #fff;
    background: linear-gradient(180deg, #f2502f, #cf2f18);
    box-shadow: 0 6px 0 #8d1d12, 0 16px 32px rgba(226, 59, 34, 0.32);
}
.h-btn-main::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: h-sweep 3.6s ease-in-out 2s infinite;
}
@keyframes h-sweep {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn-main:active { transform: translateY(4px); box-shadow: 0 2px 0 #8d1d12, 0 8px 18px rgba(226, 59, 34, 0.3); }
.h-btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 20px rgba(70, 48, 18, 0.06); }
.h-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text), 0 10px 24px rgba(70, 48, 18, 0.1); }
.h-btn-light { color: var(--ink); background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); }
.h-btn-dark { color: #f3ead7; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(243, 234, 215, 0.4); }
.h-btn-dark:hover { box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); }
.h-btn.is-disabled { pointer-events: none; opacity: 0.55; }

.h-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    max-width: 520px;
    padding: 6px 6px 6px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(70, 48, 18, 0.08);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.h-search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.22), 0 10px 26px rgba(70, 48, 18, 0.08); }
.h-search-icon {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--text-dim);
    border-radius: 50%;
    margin-right: 4px;
}
.h-search-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 2.5px;
    right: -6px;
    bottom: -3px;
    background: var(--text-dim);
    transform: rotate(45deg);
}
.h-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    padding: 10px 4px;
}
.h-search button {
    border: 0;
    border-radius: 11px;
    padding: 11px 18px 10px;
    background: var(--ink);
    color: #fff;
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.h-search button:hover { background: var(--slug); }

.h-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 34px; margin: 34px 0 0; }
.h-stats div { position: relative; padding-left: 14px; }
.h-stats div::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: linear-gradient(var(--amber), var(--slug)); }
.h-stats dt b { font-family: var(--stencil); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--text); }
.h-stats dd { margin: 4px 0 0; font-family: var(--ui); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--text-dim); }

/* the screen on the right */
.h-stage {
    position: relative;
    aspect-ratio: 1 / 0.92;
    min-height: 420px;
    animation: h-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
.h-poster {
    position: absolute;
    margin: 0;
    width: 40%;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 26px 50px rgba(40, 28, 12, 0.28);
    translate: var(--px, 0) var(--py, 0);
    transition: translate 0.4s ease-out;
}
.h-poster img { width: 100%; height: 100%; object-fit: cover; }
.h-poster-l { left: -2%; top: 4%; animation: h-bob-l 7s ease-in-out infinite; }
.h-poster-r { right: -2%; top: 18%; animation: h-bob-r 8s ease-in-out infinite; }
@keyframes h-bob-l {
    0%, 100% { transform: rotate(-11deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-14px); }
}
@keyframes h-bob-r {
    0%, 100% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(7deg) translateY(12px); }
}
.h-tv {
    position: absolute;
    z-index: 2;
    left: 12%;
    right: 12%;
    top: 20%;
    padding: 16px 16px 12px;
    border-radius: 26px;
    background: linear-gradient(180deg, #4a4036 0%, #2b241d 22%, #161310 100%);
    box-shadow: 0 40px 70px rgba(30, 20, 8, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.4);
    translate: var(--px, 0) var(--py, 0);
    transition: translate 0.4s ease-out;
    animation: h-tv 9s ease-in-out infinite;
}
@keyframes h-tv {
    0%, 100% { transform: perspective(1200px) rotateY(-9deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(-10px); }
}
.h-tv-glass {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px / 24px;
    border: 9px solid #090909;
    background: #000;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}
.h-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.9s ease;
}
.h-slides img.is-on { opacity: 1; animation: h-zoom 4.2s ease-out both; }
@keyframes h-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}
.h-scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
    mix-blend-mode: multiply;
}
.h-scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 22%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    animation: h-roll 5s linear infinite;
}
@keyframes h-roll {
    from { top: -25%; }
    to { top: 105%; }
}
.h-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, 0.18), transparent 50%);
}
.h-tv-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    display: grid;
    gap: 2px;
}
.h-tv-label.is-new { animation: h-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.h-tv-label small { font-family: var(--ui); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: var(--amber); }
.h-tv-label strong { font-family: var(--stencil); font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.05; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6); }
.h-tv-base { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; color: #d9cdb6; }
.h-led { width: 9px; height: 9px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 10px #ff3b2f; animation: h-blink 1.4s steps(2, start) infinite; }
.h-tv-now { font-family: var(--ui); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; }
.h-tv-dots { display: flex; gap: 5px; margin-left: auto; }
.h-tv-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: width 0.3s, background 0.3s; }
.h-tv-dots i.is-on { width: 18px; background: var(--amber); }
.h-tv-play {
    padding: 7px 14px 6px;
    border-radius: 9px;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
}
.h-tv-play:hover { background: #fff; }
.h-pix i {
    position: absolute;
    z-index: 3;
    width: 12px;
    height: 12px;
    background: var(--c);
    box-shadow: 3px 3px 0 rgba(22, 18, 12, 0.18);
    animation: h-twinkle 3.4s ease-in-out infinite;
}
.h-pix i:nth-child(1) { --c: #e23b22; left: 6%; top: 76%; }
.h-pix i:nth-child(2) { --c: #ffb000; left: 48%; top: 6%; animation-delay: -0.8s; width: 16px; height: 16px; }
.h-pix i:nth-child(3) { --c: #1fb5a8; right: 4%; top: 10%; animation-delay: -1.6s; }
.h-pix i:nth-child(4) { --c: #7a5af5; right: 8%; bottom: 8%; animation-delay: -2.2s; width: 10px; height: 10px; }
.h-pix i:nth-child(5) { --c: #3d8bfd; left: 2%; top: 40%; animation-delay: -1.1s; width: 8px; height: 8px; }
.h-pix i:nth-child(6) { --c: #9cb64a; left: 30%; bottom: 2%; animation-delay: -2.8s; }
.h-pix i:nth-child(7) { --c: #ffb000; right: 30%; bottom: 0; animation-delay: -0.4s; width: 8px; height: 8px; }
.h-pix i:nth-child(8) { --c: #e23b22; right: 1%; top: 52%; animation-delay: -1.9s; width: 9px; height: 9px; }
@keyframes h-twinkle {
    0%, 100% { transform: translateY(0) rotate(0); opacity: 1; }
    50% { transform: translateY(-16px) rotate(90deg); opacity: 0.55; }
}
.h-insert {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 14px 5px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--amber);
    font-family: var(--stencil);
    letter-spacing: 0.24em;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(30, 20, 8, 0.3);
    animation: h-blink 1.1s steps(2, start) infinite;
}
@keyframes h-blink { to { visibility: hidden; } }

/* ---------- game wall ---------- */

.h-wall {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px 0;
    margin: 0 -4vw;
    background: #16120c;
    transform: rotate(-2deg);
    box-shadow: 0 30px 60px rgba(30, 20, 8, 0.2);
    border-top: 6px solid var(--amber);
    border-bottom: 6px solid var(--slug);
}
.h-wall[hidden] { display: none; }
.h-wall-row { overflow: hidden; }
.h-wall-track {
    display: flex;
    width: max-content;
    animation: h-marquee calc(var(--n) * 3.4s) linear infinite;
}
.h-wall-row.is-reverse .h-wall-track { animation-direction: reverse; }
.h-wall:hover .h-wall-track { animation-play-state: paused; }
@keyframes h-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.h-tile {
    position: relative;
    flex: none;
    width: 230px;
    aspect-ratio: 4 / 3;
    margin-right: 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.h-wall-row.is-reverse .h-tile { width: 200px; }
.h-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.3s; }
.h-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    padding: 26px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    font-family: var(--stencil);
    font-size: 1rem;
    line-height: 1.05;
    transform: translateY(40%);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
}
.h-tile small { font-family: var(--ui); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.68rem; color: var(--accent); }
.h-tile em {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 9px 3px;
    border-radius: 7px;
    background: var(--slug);
    font-style: normal;
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.h-tile em.is-soon { background: rgba(0, 0, 0, 0.65); color: #d9cdb6; }
.h-tile:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 0 0 3px var(--accent), 0 16px 30px rgba(0, 0, 0, 0.5); z-index: 2; }
.h-tile:hover img { transform: scale(1.08); }
.h-tile:hover span, .h-tile:focus-visible span { transform: none; opacity: 1; }

/* ---------- sections ---------- */

.h-section { padding: 96px 0 0; scroll-margin-top: 70px; }
.h-section[hidden] { display: none; }
.h-head { margin-bottom: 30px; max-width: 640px; }
.h-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.h-head-row > div { max-width: 620px; }
.h-head-center { margin-inline: auto; text-align: center; }
.h-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--amber-text);
}
.h-kicker::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--slug), var(--amber)); }
.h-head h2 {
    margin: 0 0 10px;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0.01em;
}
.h-head p { margin: 0; color: var(--text-dim); font-size: 1.05rem; line-height: 1.5; }
#shelf-title { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent, var(--amber)); text-decoration-thickness: 6px; text-underline-offset: 8px; transition: text-decoration-color 0.3s; }

/* scroll reveal: only hidden once the script is running */
.js .h-reveal {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.7s ease var(--d, 0s), translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s);
}
.js .h-reveal.is-in { opacity: 1; translate: 0 0; }

/* machines */
.h-machines { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.h-machine {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    font: inherit;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(70, 48, 18, 0.1);
    transform: perspective(900px) translateY(var(--lift, 0)) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
    transition: opacity 0.7s ease var(--d, 0s), translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s), transform 0.2s ease-out, box-shadow 0.25s;
}
.h-machine::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--accent);
}
.h-machine:hover { --lift: -8px; box-shadow: 0 0 0 1px var(--line), 0 26px 44px rgba(70, 48, 18, 0.2); }
.h-machine.is-on { box-shadow: 0 0 0 3px var(--accent), 0 22px 44px rgba(70, 48, 18, 0.2); }
.h-machine-art { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: #16120c; }
.h-machine-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.h-machine:hover .h-machine-art img { transform: scale(1.08); }
.h-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.45), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: soft-light;
}
.h-machine:hover .h-shine { opacity: 1; }
.h-machine-body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 15px; }
.h-machine-body small { font-family: var(--ui); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; color: var(--text-dim); }
.h-machine-body strong { font-family: var(--stencil); font-weight: 400; font-size: 1.3rem; line-height: 1.05; }
.h-meter { display: block; height: 6px; margin: 6px 0 2px; border-radius: 3px; background: rgba(70, 48, 18, 0.1); overflow: hidden; }
.h-meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--d, 0s) + 0.3s); }
.h-machine.is-in .h-meter i, html:not(.js) .h-meter i { width: var(--w); }
.h-machine-count { font-size: 0.86rem; color: var(--text-dim); }
.h-machine-count b { color: var(--text); }

/* shelf */
.h-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.h-tabs button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px 8px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1.5px var(--line);
    font-family: var(--ui);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.h-tabs button:hover { color: var(--text); transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.h-tabs button.is-on { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(70, 48, 18, 0.18); }
.h-shelf .game-card { transition: transform 0.25s, box-shadow 0.25s; }
.h-shelf .game-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(70, 48, 18, 0.18); }
.is-swap .h-shelf .game-card { animation: h-card-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0s) both; }
@keyframes h-card-in {
    from { opacity: 0; transform: translateY(22px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.landing .shelf-more { margin-top: 28px; }

/* steps */
.h-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.h-steps::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 62px;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--amber) 0 12px, transparent 12px 22px);
    background-size: 22px 3px;
    animation: h-dash 1s linear infinite;
    opacity: 0.6;
}
@keyframes h-dash { to { background-position: 22px 0; } }
.h-step {
    position: relative;
    padding: 28px 26px 26px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line), 0 16px 34px rgba(70, 48, 18, 0.08);
    overflow: hidden;
}
.h-step > b {
    position: absolute;
    right: 18px;
    top: 10px;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: 4rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(70, 48, 18, 0.18);
}
.h-step h3 { margin: 18px 0 8px; font-family: var(--stencil); font-weight: 400; font-size: 1.5rem; }
.h-step p { margin: 0; color: var(--text-dim); line-height: 1.5; }
.h-step-icon {
    position: relative;
    display: grid;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #16120c;
    box-shadow: 0 10px 20px rgba(30, 20, 8, 0.25);
}
.h-icon-pick { grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px; }
.h-icon-pick i { border-radius: 4px; background: var(--c); animation: h-pick 2.4s ease-in-out infinite; }
.h-icon-pick i:nth-child(1) { --c: #e23b22; }
.h-icon-pick i:nth-child(2) { --c: #ffb000; animation-delay: 0.6s; }
.h-icon-pick i:nth-child(3) { --c: #1fb5a8; animation-delay: 1.8s; }
.h-icon-pick i:nth-child(4) { --c: #7a5af5; animation-delay: 1.2s; }
@keyframes h-pick {
    0%, 100% { transform: scale(0.8); opacity: 0.55; }
    20% { transform: scale(1.1); opacity: 1; }
}
.h-icon-card { overflow: hidden; }
.h-icon-card::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    height: 6px;
    border-radius: 3px;
    background: #000;
    box-shadow: 0 0 0 2px #3a332c;
}
.h-icon-card i {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 26px;
    height: 26px;
    margin-left: -13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3b0, #ffb000 50%, #c47a00);
    animation: h-coin-drop 2s cubic-bezier(0.5, 0, 0.8, 0.4) infinite;
}
@keyframes h-coin-drop {
    0% { transform: translateY(-30px) scaleX(1); }
    45% { transform: translateY(6px) scaleX(1); }
    70%, 100% { transform: translateY(26px) scaleX(0.25); }
}
.h-icon-pad::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 26px;
    width: 18px;
    height: 6px;
    border-radius: 2px;
    background: #d9cdb6;
    box-shadow: 6px -6px 0 -0px transparent;
}
.h-icon-pad::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 20px;
    width: 6px;
    height: 18px;
    border-radius: 2px;
    background: #d9cdb6;
}
.h-icon-pad i { position: absolute; width: 11px; height: 11px; border-radius: 50%; animation: h-press 1.6s ease-in-out infinite; }
.h-icon-pad i:nth-child(1) { right: 12px; top: 20px; background: #e23b22; }
.h-icon-pad i:nth-child(2) { right: 24px; top: 32px; background: #ffb000; animation-delay: 0.8s; }
@keyframes h-press {
    0%, 60%, 100% { transform: scale(1); filter: none; }
    30% { transform: scale(0.7); filter: brightness(1.6); }
}

/* android */
.h-app {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 30px;
    align-items: center;
    padding: 52px;
    border-radius: 34px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(600px 300px at 90% 10%, rgba(255, 255, 255, 0.25), transparent 60%),
        linear-gradient(135deg, #d8301a 0%, #f2602a 45%, #ffaa00 100%);
    box-shadow: 0 30px 60px rgba(226, 59, 34, 0.28);
}
.h-app::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    mask-image: linear-gradient(90deg, transparent 30%, #000);
    pointer-events: none;
}
.h-app-copy { position: relative; }
.h-app .h-kicker { color: #fff3cf; }
.h-app .h-kicker::before { background: #fff; }
.h-app h2 { margin: 0 0 14px; font-family: var(--stencil); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; text-shadow: 0 4px 0 rgba(120, 30, 10, 0.3); }
.h-app-copy > p { margin: 0; max-width: 52ch; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.h-app-points { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; gap: 9px; }
.h-app-points li { position: relative; padding-left: 24px; color: rgba(255, 255, 255, 0.9); }
.h-app-points li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 11px; height: 11px; background: #fff; box-shadow: 3px 3px 0 rgba(120, 30, 10, 0.35); }
.h-app-points strong { color: #fff; }
.h-app .h-btn-main { background: #16120c; box-shadow: 0 6px 0 #000, 0 16px 30px rgba(30, 10, 0, 0.35); }
.h-app .h-btn-main:active { box-shadow: 0 2px 0 #000; }
.h-btn-pulse { animation: h-pulse 2.4s ease-out infinite; }
@keyframes h-pulse {
    0% { outline: 0 solid rgba(255, 255, 255, 0.6); outline-offset: 0; }
    70% { outline: 12px solid rgba(255, 255, 255, 0); outline-offset: 2px; }
    100% { outline: 0 solid rgba(255, 255, 255, 0); }
}
.h-app-note { margin: 18px 0 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.8); }
.h-phones { position: relative; height: 470px; }
.h-phone {
    position: absolute;
    width: 205px;
    aspect-ratio: 412 / 860;
    padding: 8px;
    border-radius: 32px;
    background: #16120c;
    box-shadow: 0 30px 60px rgba(60, 14, 0, 0.45), inset 0 0 0 2px #3a332c;
}
.h-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.h-phone-front { left: 10%; top: 0; z-index: 2; animation: h-phone-a 6s ease-in-out infinite; }
.h-phone-back { right: 6%; top: 40px; animation: h-phone-b 7s ease-in-out infinite; }
@keyframes h-phone-a {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-16px); }
}
@keyframes h-phone-b {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(12px); }
}
.h-bubble {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-family: var(--stencil);
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    animation: h-bubble 4s ease-in-out infinite;
}
.h-bubble-1 { background: #e23b22; left: 0; bottom: 18%; box-shadow: 0 6px 0 #8d1d12, 0 0 0 4px rgba(255, 255, 255, 0.6); }
.h-bubble-2 { background: #3d7adf; right: 0; top: 8%; animation-delay: -1.3s; box-shadow: 0 6px 0 #1f4d99, 0 0 0 4px rgba(255, 255, 255, 0.6); }
.h-bubble-3 { background: #16120c; right: 18%; bottom: 0; animation-delay: -2.6s; font-size: 1rem; box-shadow: 0 6px 0 #000, 0 0 0 4px rgba(255, 255, 255, 0.6); }
@keyframes h-bubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.06); }
}

/* finale */
.h-finale {
    position: relative;
    margin-top: 110px;
    padding: 100px 0 96px;
    overflow: hidden;
    text-align: center;
    color: #f3ead7;
    background:
        radial-gradient(700px 300px at 50% 120%, rgba(255, 176, 0, 0.35), transparent 70%),
        radial-gradient(500px 260px at 0% 0%, rgba(226, 59, 34, 0.3), transparent 70%),
        radial-gradient(500px 260px at 100% 0%, rgba(122, 90, 245, 0.25), transparent 70%),
        #120e0a;
}
.h-stars { position: absolute; inset: 0; pointer-events: none; }
.h-stars i { position: absolute; background: #fff; opacity: 0.7; animation: h-star 3s ease-in-out infinite; }
@keyframes h-star {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.9; }
}
.h-finale-inner { position: relative; }
.h-blink { margin: 0 0 14px; font-family: var(--stencil); letter-spacing: 0.4em; color: var(--amber); animation: h-blink 1.1s steps(2, start) infinite; }
.h-finale h2 {
    margin: 0;
    font-family: var(--stencil);
    font-weight: 400;
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 176, 0, 0.35), 0 6px 0 rgba(0, 0, 0, 0.5);
}
.h-finale-inner > p:not(.h-blink) { margin: 16px auto 0; max-width: 52ch; color: #d9cdb6; font-size: 1.1rem; }

/* footer */
.h-foot { background: #0c0a07; color: #b9ad96; padding: 30px 0 34px; }
.h-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.h-foot .h-brand { color: #f3ead7; font-size: 1.3rem; }
.h-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.h-foot nav a { color: #d9cdb6; text-decoration: none; font-family: var(--ui); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.h-foot nav a:hover { color: var(--amber); }
.h-foot .site-foot { flex-basis: 100%; margin: 6px 0 0; padding: 0; border: 0; color: #8a7f6c; text-align: left; }
.h-foot .site-foot a { color: var(--amber); }
.landing .ad-slot { margin-top: 60px; }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
    .h-machines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h-machine-art { aspect-ratio: 3 / 3.2; }
}
@media (max-width: 980px) {
    .h-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; gap: 20px; }
    .h-stage { width: min(560px, 100%); margin: 10px auto 0; min-height: 0; }
    .h-links { display: none; }
    .h-app { grid-template-columns: 1fr; padding: 36px 28px; }
    .h-phones { height: 420px; max-width: 460px; width: 100%; margin: 0 auto; }
    .h-steps { grid-template-columns: 1fr; }
    .h-steps::before { display: none; }
}
@media (max-width: 640px) {
    .h-wrap { width: calc(100% - 28px); }
    .h-nav-row { gap: 12px; height: 62px; }
    .h-brand { font-size: 1.35rem; }
    .h-live { display: none; }
    .h-account { margin-left: auto; padding: 9px 14px 8px; }
    .h-title { font-size: clamp(2.5rem, 13vw, 3.6rem); }
    .h-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .h-stats dt b { font-size: 1.7rem; }
    .h-stats dd { font-size: 0.7rem; letter-spacing: 0.08em; }
    .h-search button { padding: 11px 12px 10px; }
    .h-stage { aspect-ratio: 1 / 0.86; }
    .h-tv { left: 5%; right: 5%; top: 16%; padding: 12px 12px 10px; border-radius: 20px; }
    .h-tv-now, .h-insert { display: none; }
    .h-poster { width: 38%; border-width: 4px; }
    .h-section { padding-top: 70px; }
    .h-machines {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 14px;
        margin: 0 -14px;
        padding: 6px 14px 18px;
    }
    .h-machine { flex: 0 0 62%; scroll-snap-align: start; }
    .h-machine-art { aspect-ratio: 2 / 2.4; }
    .h-tile { width: 170px; }
    .h-wall-row.is-reverse .h-tile { width: 150px; }
    .h-tile span { transform: none; opacity: 1; font-size: 0.85rem; padding-top: 18px; }
    .h-phone { width: 165px; }
    .h-phones { height: 370px; }
    .h-bubble { width: 44px; height: 44px; }
    .h-finale { padding: 74px 0; margin-top: 80px; }
    .h-app { border-radius: 26px; }
    .h-app .h-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .landing *, .landing *::before, .landing *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001s !important;
    }
    .h-insert, .h-blink, .h-led { animation: none !important; }
}
