/* ==========================================================================
   HeroOT — landing do pré-cadastro (pc-*) em HeroUI
   Carregada depois do kit.css (peças hu-*). Fonte da verdade:
   heroot/public/assets/heroui — espelhar em public_html (build.js sync).
   ========================================================================== */

/* ============================================================ LANDING (pc) */

/* abaixo do hero o fundo não fica chapado: brumas roxas e azuis do wallpaper */
.pc-page {
    background:
        radial-gradient(900px 620px at 8% 1250px, rgba(112, 62, 210, 0.13), transparent 70%),
        radial-gradient(1000px 700px at 94% 1900px, rgba(48, 92, 210, 0.1), transparent 70%),
        radial-gradient(900px 640px at 12% 2750px, rgba(150, 52, 170, 0.1), transparent 70%),
        var(--pc-bg);
}

/* ------------------------------------------------------------------ topo */
.pc-top {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto 0;
    height: 68px;
    transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.pc-top.is-solid {
    background: rgba(10, 8, 18, 0.82);
    box-shadow: 0 1px 0 rgba(232, 200, 106, 0.18), 0 10px 30px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
}

.pc-top__in {
    position: relative;
    width: min(var(--pc-width), calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* o logo pequeno só aparece depois que o grande sai da tela; até lá o menu
   fica alinhado com o conteúdo */
.pc-top__brand {
    position: absolute;
    left: 0;
    top: 50%;
    display: block;
    width: 132px;
    opacity: 0;
    transform: translateY(-50%) translateY(-6px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.pc-top__brand img { display: block; width: 100%; height: auto; image-rendering: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)); }
.pc-top.is-solid .pc-top__brand { opacity: 1; transform: translateY(-50%); pointer-events: auto; }

.pc-top__nav { display: flex; gap: 24px; margin-right: auto; transition: transform 0.3s var(--ease-out); }
.pc-top.is-solid .pc-top__nav { transform: translateX(160px); }

.pc-top__nav a {
    position: relative;
    padding: 6px 0;
    font: 700 12.5px/1 var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #e3d7bb;
    text-shadow: 0 1px 2px #000;
    transition: color 0.15s;
}

.pc-top__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hu-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.pc-top__nav a:hover { color: #fff; }
.pc-top__nav a:hover::after { transform: scaleX(1); }

.pc-top__side { display: flex; align-items: center; gap: 12px; }

.pc-top .status-flags { display: flex; gap: 6px; margin-right: 6px; }
.pc-top .status-flags a {
    display: block;
    width: 24px;
    height: 16px;
    overflow: hidden;
    opacity: 0.55;
    outline: 1px solid rgba(255, 255, 255, 0.22);
    transition: opacity 0.15s, outline-color 0.15s;
}
.pc-top .status-flags a:hover,
.pc-top .status-flags a.is-active { opacity: 1; outline-color: var(--hu-gold); }
.pc-top .status-flags img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }

.pc-top__cta { display: none; }
.pc-top.show-cta .pc-top__cta { display: inline-flex; animation: pc-pop 0.35s var(--ease-out); }

/* ------------------------------------------------------------------ hero */
.pc-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: 112px 0 96px;
    display: flex;
    align-items: center;
}

.pc-hero__bg {
    position: absolute;
    z-index: -3;
    inset: -3%;
    background: url('precadastro/wallpaper.jpg') 50% 30% / cover no-repeat;
    image-rendering: auto;
    transform-origin: 60% 40%;
    animation: pc-kenburns 38s ease-in-out infinite alternate;
    will-change: transform;
}

.pc-hero::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 74% 58%, rgba(10, 8, 18, 0.0), rgba(10, 8, 18, 0.35) 70%),
        linear-gradient(90deg, rgba(8, 6, 16, 0.92) 0%, rgba(8, 6, 16, 0.72) 30%, rgba(8, 6, 16, 0.28) 55%, rgba(8, 6, 16, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 6, 16, 0.75) 0%, rgba(8, 6, 16, 0) 22%, rgba(8, 6, 16, 0) 64%, var(--pc-bg) 100%);
}

.pc-hero__fx {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pc-hero__in {
    width: min(var(--pc-width), calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
    gap: clamp(36px, 5vw, 88px);
    align-items: center;
}

.pc-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.pc-hero__copy > .hu-ribbon { margin-left: -6px; }

/* logo */
.pc-logo {
    position: relative;
    width: clamp(280px, 33vw, 500px);
    margin: 14px 0 0 -18px;
    animation: pc-float 6s ease-in-out infinite;
}

.pc-logo picture { display: block; }

.pc-logo img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    image-rendering: auto;
    filter: drop-shadow(0 0 22px rgba(210, 30, 40, 0.38)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.75));
}

.pc-logo__halo {
    position: absolute;
    inset: 8% 6% 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(170, 60, 255, 0.28), rgba(120, 40, 220, 0.1) 55%, transparent);
    filter: blur(6px);
    animation: pc-breathe 4.5s ease-in-out infinite alternate;
}

.pc-logo__glint {
    position: absolute;
    inset: 0;
    -webkit-mask: url('img/logo-herot.webp') center / 100% 100% no-repeat;
    mask: url('img/logo-herot.webp') center / 100% 100% no-repeat;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 244, 214, 0.9) 50%, transparent 58%) no-repeat;
    background-size: 300% 100%;
    background-position: 100% 0;
    animation: pc-glint 7s ease-in-out infinite;
    animation-delay: 1.6s;
    mix-blend-mode: screen;
}

/* título */
.pc-title {
    margin: 4px 0 0;
    text-wrap: balance;
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.04;
    text-transform: uppercase;
}

.pc-title span {
    display: block;
    font-size: clamp(19px, 1.9vw, 28px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #f1e6c8;
    text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, 0.8);
}

.pc-title .pc-title__big {
    margin-top: 6px;
    font-size: clamp(34px, 4.3vw, 62px);
    font-weight: 900;
    letter-spacing: 0.02em;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(1px 0 0 #120804) drop-shadow(-1px 0 0 #120804) drop-shadow(0 2px 0 #120804) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 22px rgba(240, 170, 60, 0.25));
}

.pc-lead {
    max-width: 520px;
    margin: 20px 0 0;
    font-size: clamp(15.5px, 1.25vw, 18px);
    line-height: 1.6;
    color: #ddd5ea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* números */
.pc-stats {
    display: flex;
    margin: 28px 0 0;
    padding: 0;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: rgba(12, 10, 20, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    image-rendering: pixelated;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}

.pc-stat {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px 24px 15px;
}

.pc-stat + .pc-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(90deg, #0d0d0d 50%, #3b3b3b 50%);
}

.pc-stat dt {
    font: 600 11px/1.25 var(--font-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a99fbd;
    white-space: nowrap;
}

.pc-stat dd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-display);
    white-space: nowrap;
}

.pc-stat dd img { flex: none; height: auto; image-rendering: pixelated; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)); }

.pc-stat dd b {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #120804);
    font-variant-numeric: tabular-nums;
}

.pc-stat dd small,
.pc-stat__mix {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font: 700 13px/1 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e2d3a8;
}

.pc-stat__mix b { font-size: 32px; letter-spacing: 0; }

/* contagem regressiva (opcional) */
.pc-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 18px;
    font: 600 12px/1.2 var(--font-ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b5abc9;
}

.pc-countdown__units { display: flex; gap: 8px; }

.pc-countdown__units > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
    padding: 7px 8px 6px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: rgba(12, 10, 20, 0.72);
    image-rendering: pixelated;
}

.pc-countdown__units b { font: 900 22px/1 var(--font-display); color: var(--hu-gold-hi); font-variant-numeric: tabular-nums; }
.pc-countdown__units small { margin-top: 3px; font-size: 9.5px; color: #8f86a6; }
.pc-countdown__until { color: #8f86a6; letter-spacing: 0.04em; text-transform: none; }
.pc-countdown.is-ended .pc-countdown__units { display: none; }

.pc-scroll {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font: 700 12.5px/1 var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #e6d6ad;
    text-shadow: 0 1px 2px #000;
    transition: color 0.15s;
}

.pc-scroll:hover { color: #fff; }

.pc-scroll i {
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-right: 2px solid var(--hu-gold);
    border-bottom: 2px solid var(--hu-gold);
    transform: rotate(45deg);
    animation: pc-nudge 1.8s ease-in-out infinite;
}

/* ----------------------------------------------------------- formulário */
.pc-hero__form { min-width: 0; padding-top: calc((67 + var(--dragon-lift)) * var(--dpx)); }

.pc-form { --eye-delay: 1.8s; }
.pc-form:focus { outline: none; }

/* chamado por um "Criar minha conta": a moldura brilha uma vez */
.pc-form::after {
    content: '';
    position: absolute;
    inset: calc(-16 * var(--px)) calc(-4 * var(--px)) calc(-4 * var(--px));
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 2px rgba(255, 214, 120, 0.7), 0 0 48px rgba(255, 200, 100, 0.65);
}

.pc-form.is-called::after { animation: pc-called 1.7s ease-out 0.45s; }

@keyframes pc-called {
    0%, 100% { opacity: 0; }
    22% { opacity: 1; }
}

.pc-form__body { padding: 20px 24px 22px; }

.pc-form__lead {
    margin: 2px 0 16px;
    text-align: center;
    font: 500 14px/1.45 var(--font-ui);
    color: #bdb5a2;
}

.pc-form__form { display: flex; flex-direction: column; gap: 14px; }
.pc-form .hu-alert { margin-bottom: 16px; }

.pc-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 0;
    padding: 0;
    list-style: none;
}

.pc-rules li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    padding: 0 10px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: #141414;
    font: 600 12px/1 var(--font-ui);
    color: #8a8a8a;
    image-rendering: pixelated;
    transition: color 0.2s, background-color 0.2s;
}

/* antes de digitar a regra fica neutra; verde quando cumpre; vermelha só
   depois de uma tentativa de enviar */
.pc-rules li i {
    width: 12px;
    height: 9px;
    background: url('img/icon-no.png') 0 0 / 100% 100% no-repeat;
    image-rendering: pixelated;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 0.2s, filter 0.2s;
}

.pc-rules li.is-ok { color: #9fe286; background-color: #142012; }
.pc-rules li.is-ok i { background-image: url('img/icon-yes.png'); opacity: 1; filter: none; }
.pc-rules.is-alert li:not(.is-ok) { color: #f0a094; }
.pc-rules.is-alert li:not(.is-ok) i { opacity: 1; filter: none; }

.pc-form__submit { width: 100%; margin-top: 4px; }

.pc-form__alt {
    margin: 2px 0 0;
    text-align: center;
    font: 500 13.5px/1.4 var(--font-ui);
    color: #a39d8f;
}

.pc-form__alt a {
    color: var(--hu-gold);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 200, 106, 0.35);
}

.pc-form__alt a:hover { color: #fff1c2; border-bottom-color: currentColor; }

/* ------------------------------------------- criar personagem (acordeão)
   NEW FEATURE (USER REQUEST): primeiro personagem junto com a conta. <details>
   nativo; a vocação é escolhida pelos heróis da party (o escolhido anda). */
.pc-char {
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: rgba(20, 16, 12, 0.6);
    image-rendering: pixelated;
    transition: box-shadow 0.25s;
}

.pc-char[open] { box-shadow: 0 0 0 1px rgba(232, 200, 106, 0.35), 0 0 24px rgba(232, 200, 106, 0.08); }

.pc-char__sum {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pc-char__sum::-webkit-details-marker { display: none; }
.pc-char__sum:hover { background: rgba(255, 255, 255, 0.03); }
.pc-char__sum img { flex: none; image-rendering: pixelated; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.7)); }
.pc-char__sumtxt { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pc-char__sumtxt b { font: 700 13.5px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hu-gold); }
.pc-char__sumtxt small { font: 500 12px/1.3 var(--font-ui); color: #a39c88; }

.pc-char__chev {
    flex: none;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-right: 2px solid var(--hu-gold);
    border-bottom: 2px solid var(--hu-gold);
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease-out), margin 0.25s;
}

.pc-char[open] .pc-char__chev { margin-top: 4px; transform: rotate(225deg); }

.pc-char__body { display: flex; flex-direction: column; gap: 14px; padding: 4px 14px 16px; }
.pc-char[open] .pc-char__body { animation: pc-char-in 0.3s var(--ease-out); }

@keyframes pc-char-in { from { opacity: 0; transform: translateY(-6px); } }

.pc-char__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.pc-char__set legend,
.pc-char__legend { display: block; margin-bottom: 7px; padding: 0; font: 600 13px/1.2 var(--font-ui); color: #d6cdb8; }

.pc-voc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pc-voc__opt { position: relative; display: block; cursor: pointer; }
.pc-voc__opt input { position: absolute; opacity: 0; pointer-events: none; }

.pc-voc__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
    padding: 4px 2px 7px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: url('img/stage-spotlight.png') 50% 100% / 96px 72px no-repeat, #141414;
    image-rendering: pixelated;
    transition: filter 0.15s, box-shadow 0.2s, background-color 0.2s;
    filter: saturate(0.55) brightness(0.8);
}

.pc-voc__card .hu-hero {
    width: var(--hu-party-w, 97px);
    height: var(--hu-party-h, 95px);
    margin: -14px -16px -12px;
    transform: scale(0.72);
}

.pc-voc__card b { position: relative; font: 700 11px/1.2 var(--font-ui); color: #cfc8b6; text-align: center; }
.pc-voc__opt:hover .pc-voc__card { filter: none; }
.pc-voc__opt input:checked + .pc-voc__card { filter: none; box-shadow: 0 0 0 1px #e8c86a, 0 0 16px rgba(232, 200, 106, 0.3); background-color: #2a2414; }
.pc-voc__opt input:checked + .pc-voc__card b { color: var(--hu-gold-hi); }
.pc-voc__opt input:checked + .pc-voc__card .hu-hero { animation: hu-walk 0.72s steps(8) infinite; }
.pc-voc__opt input:focus-visible + .pc-voc__card { outline: 2px solid var(--hu-gold); outline-offset: 2px; }

.pc-char__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }

.pc-seg { display: flex; gap: 6px; }
.pc-seg label { flex: 1; cursor: pointer; }
.pc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pc-seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border: solid transparent;
    border-width: calc(2 * var(--px));
    border-image: url('img/button-darkgrey-up.png') 2 fill / calc(2 * var(--px)) repeat;
    font: 700 12.5px/1 var(--font-ui);
    color: #bdb6a6;
    image-rendering: pixelated;
    transition: filter 0.15s, color 0.15s;
}
.pc-seg label:hover span { filter: brightness(1.2); }
.pc-seg input:checked + span { border-image-source: url('img/button-gold-up.png'); color: #1f1500; }
.pc-seg input:focus-visible + span { outline: 2px solid var(--hu-gold); outline-offset: 2px; }

.pc-char__town b {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: #151515;
    font: 700 13px/1 var(--font-ui);
    color: #ececec;
    image-rendering: pixelated;
}

.pc-char__town img { image-rendering: pixelated; }

@media (max-width: 520px) {
    .pc-voc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pc-char__row { grid-template-columns: 1fr; }
}

/* ------------------------------------------- convite do link de afiliado */
.pc-invite-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -4px 0 16px;
    padding: 8px 12px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: linear-gradient(90deg, rgba(232, 200, 106, 0.14), rgba(20, 18, 16, 0.85) 60%);
    image-rendering: pixelated;
}

.pc-invite-chip__avatar,
.pc-invite__avatar {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4a3a20, #1a140c);
    color: #f3d27a;
    font-family: var(--font-display);
    font-weight: 900;
}

.pc-invite-chip__avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px #2b1f08, 0 0 0 3px #e8c86a; font-size: 15px; }
.pc-invite-chip__avatar img,
.pc-invite__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }

.pc-invite-chip__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; font-size: 13.5px; line-height: 1.25; color: #e4dccb; }
.pc-invite-chip__text b { color: #f3d27a; }
.pc-invite-chip__text small { font: 600 11px/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: #9d9583; }

.pc-invite-chip__live,
.pc-invite__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 3px 8px;
    font: 700 10.5px/1.2 Verdana, Tahoma, sans-serif;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(180deg, #e2222c, #a10d16);
    border: 1px solid #ff8b8b;
    box-shadow: 0 0 0 1px #3a0306, 0 0 10px rgba(230, 40, 50, 0.6);
}

.pc-invite-chip__live i,
.pc-invite__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff; animation: pc-blink 1.1s ease-in-out infinite; }

@keyframes pc-blink { 50% { opacity: 0.25; box-shadow: none; } }

/* popup (dialog nativo: Esc fecha, foco preso, fundo inerte) */
.hu-modal {
    width: min(460px, calc(100% - 24px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--hu-text);
    overflow: visible;
}

.hu-modal::backdrop {
    background: radial-gradient(70% 60% at 50% 45%, rgba(40, 20, 70, 0.55), rgba(6, 4, 12, 0.88));
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

html.hu-modal-open { overflow: hidden; }
.hu-modal[open] { animation: hu-modal-in 0.55s var(--ease-out); }

/* tela baixa ou celular: o popup rola por dentro em vez de cortar */
@media (max-height: 780px), (max-width: 640px) {
    .hu-modal { --dpx: 1.5px; max-height: calc(100dvh - 12px); overflow-y: auto; overscroll-behavior: contain; }
    .pc-invite__portrait { height: 128px; }
    .pc-invite__avatar { width: 100px; height: 100px; }
    .pc-invite__body { padding: 16px 18px 20px; }
    .pc-invite__name { font-size: 27px; }
}
.hu-modal[open] .hu-window__dragon { animation: pc-dragon 0.8s cubic-bezier(0.3, 0, 0.3, 1) 0.25s backwards; }
.hu-modal.is-closing { animation: hu-modal-out 0.22s ease-in forwards; }

@keyframes hu-modal-in {
    0% { opacity: 0; transform: translateY(26px) scale(0.94); }
    100% { opacity: 1; transform: none; }
}

@keyframes hu-modal-out { to { opacity: 0; transform: translateY(12px) scale(0.97); } }

.hu-modal__close {
    position: absolute;
    z-index: 3;
    top: calc(-12 * var(--px));
    right: calc(3 * var(--px));
    width: calc(12 * var(--px));
    height: calc(12 * var(--px));
    padding: 0;
    border: 0;
    background: url('img/exit-button-small-up.png') 0 0 / 100% 100% no-repeat;
    image-rendering: pixelated;
    cursor: pointer;
}

.hu-modal__close:hover { filter: brightness(1.35); }
.hu-modal__close:active { background-image: url('img/exit-button-small-down.png'); }

.pc-invite__win { --eye-delay: 0.9s; margin-top: calc((67 + var(--dragon-lift)) * var(--dpx)); }
.pc-invite__win:focus { outline: none; }

.pc-invite__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 28px 26px;
    text-align: center;
}

.pc-invite__portrait { position: relative; display: grid; place-items: center; width: 100%; height: 150px; margin-bottom: 6px; }

.pc-invite__spot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 190px;
    transform: translate(-50%, -50%);
    background: url('img/stage-spotlight.png') center / 100% 100% no-repeat;
    image-rendering: auto;
}

.pc-invite__avatar {
    width: 120px;
    height: 120px;
    font-size: 48px;
    box-shadow: 0 0 0 3px #2b1f08, 0 0 0 6px #e8c86a, 0 0 0 8px #5a3d0c, 0 0 34px rgba(255, 200, 90, 0.45), 0 14px 26px rgba(0, 0, 0, 0.7);
}

.pc-invite__portrait.is-live .pc-invite__avatar {
    box-shadow: 0 0 0 3px #2b0606, 0 0 0 6px #e2222c, 0 0 0 8px #5a0d0d, 0 0 38px rgba(255, 50, 50, 0.55), 0 14px 26px rgba(0, 0, 0, 0.7);
    animation: pc-live-ring 2s ease-in-out infinite;
}

@keyframes pc-live-ring { 50% { box-shadow: 0 0 0 3px #2b0606, 0 0 0 6px #ff4b4b, 0 0 0 8px #5a0d0d, 0 0 52px rgba(255, 60, 60, 0.8), 0 14px 26px rgba(0, 0, 0, 0.7); } }

.pc-invite__live { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); }

.pc-invite__kicker { margin: 4px 0 0; font: 600 12px/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: #a99f8c; }

.pc-invite__name {
    margin: 6px 0 0;
    font: 900 32px/1.1 var(--font-display);
    letter-spacing: 0.04em;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #120804) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
    overflow-wrap: anywhere;
}

.pc-invite__platform { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 700 12px/1 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: #cfc7b6; }
.pc-invite__platform i { display: none; }
.pc-invite__platform--twitch i { display: block; width: 47px; height: 16px; background: #a970ff; -webkit-mask: url('img/icon-twitch.png') 0 0 / 100% 100% no-repeat; mask: url('img/icon-twitch.png') 0 0 / 100% 100% no-repeat; filter: drop-shadow(0 0 6px rgba(169, 112, 255, 0.6)); }
.pc-invite__platform--twitch span { display: none; }
.pc-invite__platform--youtube i { display: block; position: relative; width: 26px; height: 18px; border-radius: 5px; background: #ff1a1a; box-shadow: 0 0 6px rgba(255, 40, 40, 0.55); }
.pc-invite__platform--youtube i::after { content: ''; position: absolute; left: 10px; top: 5px; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; }
.pc-invite__platform--kick span { color: #53fc18; text-shadow: 0 0 6px rgba(83, 252, 24, 0.6); }

.pc-invite__coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: linear-gradient(180deg, #191512, #221b14);
    image-rendering: pixelated;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.8);
}

.pc-invite__coupon span { font: 600 10.5px/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: #8fd47a; }
.pc-invite__coupon span::before { content: ''; display: inline-block; width: 12px; height: 9px; margin-right: 7px; background: url('img/icon-yes.png') 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.pc-invite__coupon b { font: 900 26px/1.1 var(--font-display); letter-spacing: 0.08em; color: #f6d77a; text-shadow: 0 2px 0 #000, 0 0 14px rgba(255, 200, 90, 0.35); overflow-wrap: anywhere; }

.pc-invite__reward { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 13.5px; color: #d8cfbd; }

.pc-invite__item {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    background: url('img/containerslot-goldenborder.png') 0 0 / 100% 100% no-repeat, #2a2418;
    image-rendering: pixelated;
}

.pc-invite__item img { width: 32px; height: 32px; image-rendering: pixelated; }
.pc-invite__item em { position: absolute; right: 3px; bottom: 1px; font: 700 11px/1 Verdana, sans-serif; font-style: normal; color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }

.pc-invite__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 20px; }
.pc-invite__actions .hu-btn { width: 100%; }

/* quem já tem conta: convite no lugar do formulário */
.pc-joined__body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 26px 26px; }

.pc-joined__art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 120px;
    width: 100%;
    margin-bottom: 6px;
}

.pc-joined__art .hu-hero { position: relative; margin: 0 -22px; }
.pc-joined__art .hu-hero:nth-child(3) { z-index: 2; }

.pc-joined__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font: 800 20px/1.25 var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f3d27a;
}

.pc-joined__title img { image-rendering: pixelated; }
.pc-joined__lead { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.55; color: #c9c1b0; }
.pc-joined .pc-share__copy,
.pc-joined .pc-share__nets { width: 100%; }
.pc-joined .pc-share__nets { display: grid; grid-template-columns: 1fr 1fr; }
.pc-joined__panel { margin-top: 16px; }

/* -------------------------------------------------------------- seções */
.pc-section {
    position: relative;
    width: min(var(--pc-width), calc(100% - 48px));
    margin: 0 auto;
    padding-top: 110px;
}

.pc-hero + .pc-section { padding-top: 40px; }

.pc-section__head { max-width: 760px; margin: 0 auto 28px; text-align: center; text-wrap: balance; }
.pc-section__head p { margin: 14px auto 0; max-width: 640px; font-size: 16.5px; line-height: 1.6; color: var(--pc-ink-2); }

.pc-h2 {
    position: relative;
    margin: 0;
    padding-bottom: 20px;
    font: 900 clamp(26px, 3.1vw, 42px)/1.1 var(--font-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #120804) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

/* filete com gema embaixo do título */
.pc-h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: min(340px, 72%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #e9bf5c 40%, transparent 40% 60%, #e9bf5c 60%, transparent);
}

.pc-h2::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #fff3c4, #e2a83a 50%, #7a4a12);
    box-shadow: 0 0 8px rgba(255, 200, 90, 0.8);
}

.pc-h2--big { font-size: clamp(30px, 4.4vw, 58px); }

/* ------------------------------------------------------------- roadmap */
.pc-roadmap__win {
    --eye-delay: 4s;
    margin-top: calc((67 + var(--dragon-lift)) * var(--dpx) + 40px);
}

.pc-roadmap__body { padding: 30px clamp(18px, 3vw, 44px) 26px; }

.pc-ms-list {
    display: grid;
    grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-ms {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    text-align: center;
}

.pc-ms__medal {
    position: relative;
    width: min(100%, 168px);
    margin-bottom: 10px;
    transition: transform 0.3s var(--ease-out), filter 0.4s;
}

/* a medalha da landing antiga tem o texto gravado embaixo: recorta só o círculo */
.pc-ms__medal picture { position: relative; display: block; }

.pc-ms__medal picture img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 217 / 205;
    object-fit: cover;
    object-position: 50% 0;
    image-rendering: auto;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
    transition: filter 0.4s;
}

.pc-ms__spot {
    position: absolute;
    inset: -18% -22% -6%;
    background: url('img/stage-spotlight.png') center / 100% 100% no-repeat;
    opacity: 0.85;
    image-rendering: auto;
}

.pc-ms__badge {
    position: absolute;
    right: 2%;
    bottom: 8%;
    width: 52px;
    height: 26px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px #000);
}

.pc-ms__lock {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    background: url('img/icon-locked.png') center / 16px 24px no-repeat, radial-gradient(circle, rgba(10, 10, 12, 0.88) 60%, rgba(10, 10, 12, 0) 72%);
    image-rendering: pixelated;
    transition: opacity 0.3s;
}

.pc-ms:hover .pc-ms__medal { transform: translateY(-4px) scale(1.04); }

.pc-ms__state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 10px;
    font: 700 10.5px/1 var(--font-ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3a3;
}

.pc-ms__goal {
    font: 900 clamp(15px, 1.35vw, 20px)/1.15 var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d8d0bd;
}

.pc-ms__prize { font: 500 13.5px/1.35 var(--font-ui); color: #b3abc6; }

.pc-ms__left {
    margin-top: 6px;
    padding: 4px 9px;
    font: 700 11px/1 var(--font-ui);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2a1e00;
    background: linear-gradient(180deg, #ffe39a, #e8b84e);
    box-shadow: 0 0 0 1px #3a2a06, 0 0 16px rgba(255, 200, 90, 0.35);
}

/* liberado */
.pc-ms--done .pc-ms__state { color: var(--hu-ok); }
.pc-ms--done .pc-ms__state::before {
    content: '';
    width: 12px;
    height: 9px;
    background: url('img/icon-yes.png') 0 0 / 100% 100% no-repeat;
    image-rendering: pixelated;
}
.pc-ms--done .pc-ms__goal { color: #f3d27a; }
.pc-ms--done .pc-ms__medal picture img {
    filter: drop-shadow(0 0 16px rgba(255, 196, 90, 0.55)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
}

/* próxima meta */
.pc-ms--next .pc-ms__state {
    color: #2a1e00;
    background: linear-gradient(180deg, #ffe39a, #e2a83a);
    box-shadow: 0 0 0 1px #3a2a06;
}
.pc-ms--next .pc-ms__goal { color: #fff1c2; }
.pc-ms--next .pc-ms__prize { color: #d9cfeb; }
.pc-ms--next .pc-ms__medal::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 47%;
    width: 86%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 214, 120, 0.85);
    box-shadow: 0 0 22px rgba(255, 200, 90, 0.6), inset 0 0 18px rgba(255, 200, 90, 0.35);
    animation: pc-ring 2.2s ease-out infinite;
    pointer-events: none;
}

/* bloqueado: dá para ver o prêmio, mas apagado; o hover mostra inteiro */
.pc-ms--locked .pc-ms__medal picture img { filter: grayscale(0.85) brightness(0.55) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.pc-ms--locked:hover .pc-ms__medal picture img { filter: grayscale(0) brightness(1) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6)); }
.pc-ms--locked:hover .pc-ms__lock { opacity: 0; }
.pc-ms--locked .pc-ms__state::before {
    content: '';
    width: 8px;
    height: 12px;
    background: url('img/icon-locked.png') 0 0 / 100% 100% no-repeat;
    image-rendering: pixelated;
    opacity: 0.8;
}

/* trilha com a party */
/* a party entra pela borda esquerda da trilha (overflow escondido) */
.pc-track {
    --dur: 2.6s;
    position: relative;
    height: 182px;
    overflow: hidden;
}

.pc-track__groove {
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 26px;
    height: 22px;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: #0f0f0f url('img/progressbar-grey-18px.png') 0 0 / 1px 100% repeat-x;
    image-rendering: pixelated;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.pc-track__fill {
    position: relative;
    height: 100%;
    width: var(--track, 0%);
    background: url('img/progressbar-yellow-large.png') 0 0 / 1px 100% repeat-x;
    box-shadow: 0 0 14px rgba(255, 200, 80, 0.55);
    transition: width var(--dur) cubic-bezier(0.45, 0.05, 0.3, 1);
}

/* ponta acesa da barra */
.pc-track__fill i {
    position: absolute;
    right: -2px;
    top: -4px;
    bottom: -4px;
    width: 4px;
    background: #fff6d0;
    box-shadow: 0 0 10px 3px rgba(255, 220, 120, 0.85);
    opacity: 0.9;
}

.pc-track__node {
    position: absolute;
    z-index: 2;
    bottom: 29px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #5d5d5d, #2a2a2a 60%, #121212);
    box-shadow: 0 0 0 2px #0b0b0b, inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: background 0.4s, box-shadow 0.4s;
}

.pc-track__node--done {
    background: linear-gradient(135deg, #fff3c4, #f0b844 50%, #8a5512);
    box-shadow: 0 0 0 2px #2b1a04, 0 0 14px rgba(255, 200, 90, 0.9);
}

.pc-track__node--next {
    background: linear-gradient(135deg, #3a3020, #1c160c);
    box-shadow: 0 0 0 2px #e8b84e, 0 0 16px rgba(255, 200, 90, 0.75);
    animation: pc-node 1.8s ease-in-out infinite;
}

/* a party anda pela trilha até onde a barra chegou: o líder (primeiro da
   fila, à direita) fica na ponta; quem não couber some na borda esquerda */
.pc-party {
    --gap: 38px;
    position: absolute;
    z-index: 3;
    bottom: 36px;
    left: var(--head, var(--track, 0%));
    transition: left var(--dur) cubic-bezier(0.45, 0.05, 0.3, 1);
}

.pc-party__line {
    position: absolute;
    right: calc(var(--hu-party-w, 97px) / -2);
    bottom: 0;
    display: flex;
    flex-direction: row-reverse;
}

.pc-party__line .hu-hero { position: relative; z-index: calc(10 - var(--k, 0)); }
.pc-party__line .hu-hero.is-out { display: none; }
.pc-party__line .hu-hero + .hu-hero { margin-right: calc(var(--hu-party-w, 97px) * -1 + var(--gap)); }

.pc-party__flag {
    position: absolute;
    left: var(--flag-x, -75px);
    bottom: calc(var(--hu-party-h, 95px) - 2px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    white-space: nowrap;
    font: 700 11px/1 var(--font-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e9e1cc;
    border: solid transparent;
    border-width: var(--px);
    border-image: url('img/1pixel-down-frame.png') 1 fill / var(--px) stretch;
    background: rgba(18, 16, 24, 0.92);
    image-rendering: pixelated;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55);
}

.pc-party__flag b { font: 900 17px/1 var(--font-display); letter-spacing: 0; color: var(--hu-gold-hi); }

.pc-party__flag::after {
    content: '';
    position: absolute;
    left: var(--arrow-x, 69px);
    bottom: -8px;
    border: 6px solid transparent;
    border-top-color: rgba(18, 16, 24, 0.92);
    border-bottom-width: 0;
}

/* começo do JS: barra vazia e party fora da trilha; .is-in solta a animação */
.hu-js [data-pc-roadmap]:not(.is-in) .pc-track__fill { width: 0; }
.hu-js [data-pc-roadmap]:not(.is-in) .pc-party { left: 0; }
.hu-js [data-pc-roadmap]:not(.is-in) .pc-party__flag { opacity: 0; transform: translateY(6px); }
.hu-js [data-pc-roadmap]:not(.is-in) .pc-track__node--done { background: linear-gradient(135deg, #5d5d5d, #2a2a2a 60%, #121212); box-shadow: 0 0 0 2px #0b0b0b; }
.pc-party__flag { transition: opacity 0.4s, transform 0.4s var(--ease-out); }

.pc-roadmap__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
    margin-top: 4px;
    padding-top: 22px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, #0d0d0d 10%, #0d0d0d 90%, transparent) 1;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.pc-roadmap__foot p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-roadmap__foot b { font: 800 18px/1.25 var(--font-display); letter-spacing: 0.04em; color: #f3d27a; text-transform: uppercase; }
.pc-roadmap__foot span { font-size: 14.5px; color: #b6aec6; }
.pc-roadmap__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------- como funciona */
.pc-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 22px 24px;
    text-align: center;
}

.pc-step .hu-panel__title { font-size: 14px; letter-spacing: 0.1em; }

.pc-step__num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font: 900 12px/1 var(--font-display);
    letter-spacing: 0;
    color: #2a1e00;
    text-shadow: none;
    background: linear-gradient(180deg, #ffe39a, #e2a83a);
    box-shadow: 0 0 0 1px #3a2a06;
}

.pc-step__art {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 132px;
    margin-bottom: 12px;
}

.pc-step__art > img { position: relative; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }

.pc-step__spot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 230px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: url('img/stage-spotlight.png') center / 100% 100% no-repeat;
    image-rendering: auto;
}

.pc-step__art--party { display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px; }
.pc-step__art--party .hu-hero { position: relative; margin: 0 -24px; }
.pc-step__art--party .hu-hero:nth-child(3) { z-index: 2; }

.pc-chest {
    position: relative;
    width: 108px;
    height: 108px;
    background: url('img/box_open.png') 0 0 / 1404px 108px no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6));
}

.pc-chest.is-open { animation: pc-chest 1.1s steps(12) forwards; }

.pc-step p { margin: 8px 0 0; max-width: 300px; font-size: 14.5px; line-height: 1.55; color: #c2bbab; }

/* -------------------------------------------------------- compartilhar */
.pc-share__win { --eye-delay: 6s; }

.pc-share__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 4vw, 48px);
    padding: 26px clamp(18px, 3vw, 40px) 28px;
}

.pc-share__party { display: flex; align-items: flex-end; padding-right: 30px; }
.pc-share__party .hu-hero { margin-right: -30px; }

.pc-share__main p { margin: 0 0 14px; font-size: 16px; color: #d4ccbc; }

.pc-share__copy { display: flex; gap: 10px; }
.pc-share__copy .hu-input { flex: 1; min-width: 0; height: 44px; }
.pc-share__copy .hu-btn { flex: none; }
.pc-share__copy .hu-btn.is-done { --b: url('img/button-green-up.png'); --bd: url('img/button-green-down.png'); color: #effae9; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9); }

.pc-share__nets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.pc-net { height: 40px; padding: 0 16px; gap: 9px; font-size: 12px; letter-spacing: 0.08em; }
.pc-net svg { width: 18px; height: 18px; flex: none; }
.pc-net--whatsapp svg { color: #5fe37f; }
.pc-net--x svg { color: #f2f2f2; }
.pc-net--facebook svg { color: #6f9cff; }
.pc-net--telegram svg { color: #5cc4f2; }

/* ------------------------------------------------------- chamada final */
.pc-final {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 120px;
    padding: 110px 24px 120px;
    text-align: center;
}

.pc-final__bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, var(--pc-bg) 0%, rgba(10, 8, 18, 0.55) 30%, rgba(10, 8, 18, 0.55) 70%, var(--pc-bg) 100%),
        url('precadastro/wallpaper.jpg') 50% 62% / cover no-repeat;
    filter: saturate(1.1);
    image-rendering: auto;
}

.pc-final__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.pc-final p { text-wrap: balance; margin: 18px 0 30px; font-size: 18px; color: #e3dbef; text-shadow: 0 1px 3px #000; }
.pc-final .hu-btn--xl { width: auto; min-width: min(420px, 100%); }

/* ---------------------------------------------------------------- rodapé */
.pc-foot {
    padding: 34px 24px 110px;
    text-align: center;
    border-top: 1px solid rgba(232, 200, 106, 0.12);
    background: #07060c;
}

.pc-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-bottom: 14px; }

.pc-foot nav a {
    font: 700 12px/1 var(--font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #cbb98d;
}

.pc-foot nav a:hover { color: #fff; }
.pc-foot p { margin: 0; font-size: 12.5px; color: #6f6880; }

/* ------------------------------------------------- CTA fixo (celular) */
.pc-sticky {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10, 8, 18, 0), rgba(10, 8, 18, 0.92) 35%);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease-out);
}

.pc-sticky .hu-btn { width: 100%; }
.pc-sticky.is-on { transform: none; }

/* ------------------------------------------------------------- entrada */
.hu-js .pc-in {
    opacity: 0;
    transform: translateY(18px);
    animation: pc-in 0.9s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
}

.hu-js .hu-ribbon.pc-in { animation-name: pc-unfurl; }
.hu-js .pc-logo.pc-in { animation: pc-logo-in 1.2s var(--ease-out) forwards, pc-float 6s ease-in-out 1.4s infinite; animation-delay: var(--d, 0s), 1.4s; }
.hu-js .pc-form.pc-in { animation-name: pc-rise; animation-duration: 1s; }
.hu-js .pc-form.pc-in .hu-window__dragon { animation: pc-dragon 0.9s cubic-bezier(0.3, 0, 0.3, 1) 0.55s backwards; }

@keyframes pc-in { to { opacity: 1; transform: none; } }
@keyframes pc-unfurl {
    0% { opacity: 0.2; transform: none; clip-path: inset(0 50% 0 50%); }
    100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes pc-logo-in {
    0% { opacity: 0; transform: scale(0.86); filter: blur(10px) brightness(2.4); }
    60% { opacity: 1; transform: scale(1.02); filter: none; }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes pc-rise {
    0% { opacity: 0; transform: translateY(28px) scale(0.97); }
    100% { opacity: 1; transform: none; }
}
@keyframes pc-dragon {
    0% { opacity: 0; transform: translateY(-26px); }
    70% { opacity: 1; transform: translateY(3px); }
    100% { opacity: 1; transform: none; }
}
@keyframes pc-kenburns {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes pc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pc-breathe { from { opacity: 0.6; } to { opacity: 1; } }
@keyframes pc-glint {
    0% { background-position: 100% 0; }
    18%, 100% { background-position: 0% 0; }
}
@keyframes pc-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@keyframes pc-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes pc-ring {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.96); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22); }
}
@keyframes pc-node { 0%, 100% { box-shadow: 0 0 0 2px #e8b84e, 0 0 10px rgba(255, 200, 90, 0.5); } 50% { box-shadow: 0 0 0 2px #ffe39a, 0 0 22px rgba(255, 200, 90, 0.95); } }
@keyframes pc-chest { from { background-position: 0 0; } to { background-position: -1296px 0; } }

/* ----------------------------------------------------------- responsivo */
@media (max-width: 1180px) {
    .pc-hero__in { grid-template-columns: minmax(0, 1fr) minmax(420px, 480px); }
    .pc-stats { max-width: 100%; }
    .pc-stat { flex: 1 1 0; min-width: 0; padding: 14px 14px 13px; }
    .pc-stat dt { white-space: normal; letter-spacing: 0.08em; }
    .pc-stat dd b, .pc-stat__mix b { font-size: 27px; }
}

@media (max-width: 1023px) {
    .pc-top__nav { display: none; }
    .pc-top__side { margin-left: auto; }
    .pc-hero { min-height: 0; padding-top: 96px; }
    .pc-hero__in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .pc-hero__copy { align-items: center; text-align: center; }
    .pc-hero__copy > .hu-ribbon { margin-left: 0; }
    .pc-logo { margin-left: 0; }
    .pc-lead { margin-left: auto; margin-right: auto; }
    .pc-hero__form { width: min(100%, 540px); }
    .pc-hero::before {
        background:
            linear-gradient(180deg, rgba(8, 6, 16, 0.78) 0%, rgba(8, 6, 16, 0.42) 26%, rgba(8, 6, 16, 0.5) 52%, var(--pc-bg) 82%);
    }
    .pc-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}

@media (max-width: 860px) {
    .pc-ms { padding: 0 4px; }
    .pc-ms__goal { font-size: 13.5px; letter-spacing: 0.02em; white-space: nowrap; }
    .pc-ms__prize { font-size: 12.5px; }
    .pc-ms__state { padding: 0 6px; font-size: 9.5px; letter-spacing: 0.06em; white-space: nowrap; }
    .pc-roadmap__foot { flex-direction: column; align-items: stretch; text-align: center; }
    .pc-roadmap__actions { justify-content: center; }
    .pc-share__body { grid-template-columns: minmax(0, 1fr); }
    .pc-share__party { justify-content: center; padding-right: 30px; }
}

@media (max-width: 620px) {
    /* roadmap vira linha do tempo vertical */
    .pc-roadmap__body { padding-top: 24px; }
    .pc-ms-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .pc-ms {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        column-gap: 14px;
        align-items: center;
        padding: 0 0 0 28px;
        text-align: left;
    }
    .pc-ms::before {
        content: '';
        position: absolute;
        left: 8px;
        top: -8px;
        bottom: -8px;
        width: 6px;
        background: #121212;
        box-shadow: inset 0 0 0 1px #050505, 1px 0 0 rgba(255, 255, 255, 0.06);
    }
    .pc-ms--done::before { background: url('img/progressbar-yellow-large.png') 0 0 / 100% 1px repeat-y; box-shadow: 0 0 10px rgba(255, 200, 80, 0.5); }
    .pc-ms--next::before { background: linear-gradient(180deg, #e8b84e 0%, #e8b84e var(--seg, 30%), #121212 var(--seg, 30%)); }
    .pc-ms::after {
        content: '';
        position: absolute;
        left: 4px;
        top: 50%;
        width: 14px;
        height: 14px;
        margin-top: -7px;
        transform: rotate(45deg);
        background: linear-gradient(135deg, #5d5d5d, #2a2a2a 60%, #121212);
        box-shadow: 0 0 0 2px #0b0b0b;
    }
    .pc-ms--done::after { background: linear-gradient(135deg, #fff3c4, #f0b844 50%, #8a5512); box-shadow: 0 0 0 2px #2b1a04, 0 0 10px rgba(255, 200, 90, 0.9); }
    .pc-ms--next::after { background: #1c160c; box-shadow: 0 0 0 2px #e8b84e, 0 0 12px rgba(255, 200, 90, 0.8); }
    .pc-ms__medal { grid-row: 1 / span 4; width: 84px; margin: 0; }
    .pc-ms__state { justify-self: start; padding: 0; height: 20px; }
    .pc-ms--next .pc-ms__state { padding: 0 8px; }
    .pc-ms__left { justify-self: start; }
    .pc-track { height: 176px; margin-top: 6px; }
}

/* celular: wallpaper de 1000 px (mesmo corte do preload da página) */
@media (max-width: 760px) {
    .pc-hero__bg { background-image: url('precadastro/wallpaper-1000.jpg'); }
    .pc-final__bg {
        background:
            linear-gradient(180deg, var(--pc-bg) 0%, rgba(10, 8, 18, 0.55) 30%, rgba(10, 8, 18, 0.55) 70%, var(--pc-bg) 100%),
            url('precadastro/wallpaper-1000.jpg') 50% 62% / cover no-repeat;
    }
}

@media (max-width: 640px) {
    .pc-top { height: 58px; }
    .pc-top__in { width: calc(100% - 24px); gap: 12px; }
    .pc-top__brand { width: 104px; }
    .pc-top .status-flags { display: none; }
    .pc-top__side .hu-btn--dark { display: none; }
    .pc-top.show-cta .pc-top__cta { display: none; }
    .pc-hero { padding: 84px 0 56px; }
    .pc-hero__in { width: calc(100% - 24px); }
    .hu-ribbon { --px: 1.5px; letter-spacing: 0.18em; }
    .pc-title span { letter-spacing: 0.05em; }
    .pc-stats { width: 100%; }
    .pc-stat { flex: 1; min-width: 0; padding: 12px 10px 11px; align-items: center; text-align: center; }
    .pc-stat dt { font-size: 9.5px; letter-spacing: 0.08em; white-space: normal; }
    .pc-stat dd { gap: 6px; }
    .pc-stat dd img { display: none; }
    .pc-stat dd b, .pc-stat__mix b { font-size: 24px; }
    .pc-stat dd small, .pc-stat__mix { font-size: 11px; gap: 5px; }
    .pc-hero__form { padding-top: calc((67 + var(--dragon-lift)) * 1.5px); }
    .pc-form { --dpx: 1.5px; }
    .pc-form__body { padding: 16px 14px 18px; }
    .hu-grid2 { grid-template-columns: minmax(0, 1fr); }
    .hu-window__title { font-size: 13px; letter-spacing: 0.16em; gap: 10px; }
    .pc-section { width: calc(100% - 24px); padding-top: 84px; }
    .pc-roadmap__win { --dpx: 1.5px; margin-top: calc((67 + var(--dragon-lift)) * 1.5px + 30px); }
    .pc-roadmap__body { padding: 20px 14px 18px; }
    .pc-roadmap__actions { flex-direction: column; align-items: stretch; }
    .pc-roadmap__actions .hu-btn { width: 100%; }
    .pc-share__copy { flex-direction: column; }
    .pc-share__copy .hu-input { flex: none; }
    .pc-rules { gap: 6px; }
    .pc-rules li { gap: 5px; padding: 0 7px; font-size: 11.5px; }
    .pc-share__nets .pc-net { flex: 1 1 calc(50% - 10px); }
    .pc-final { margin-top: 80px; padding: 80px 16px 90px; }
    .pc-sticky { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    .pc-hero__bg { animation: none; }
}
