:root {
    --profile-bg: none;
    --bg: #0d090c;
    --panel: #151014;
    --panel-2: #1b1419;
    --ink: #fff7fb;
    --muted: #a78b99;
    --line: #2a2027;
    --pink: #ff6fae;
    --pink-2: #ff9fca;
    --error: #ff6b7f;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body[data-page="home"] {
    background:
        linear-gradient(rgba(9, 6, 9, .62), rgba(9, 6, 9, .78)),
        var(--profile-bg) center / cover fixed,
        var(--bg);
}

body[data-page="home"] .profile-shell {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

body[data-page="home"][data-entered="true"] .profile-shell {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.enter-screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: rgba(7, 5, 7, .55);
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
}

.enter-content {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}

.enter-content p {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}

body[data-entered="true"] .enter-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-button {
    min-width: 160px;
    min-height: 58px;
    padding: 0 30px;
    border: 1px solid rgba(255, 111, 174, .5);
    border-radius: 8px;
    background: var(--pink);
    color: #170b11;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    transition: transform .2s var(--ease), background .2s ease;
}

.enter-button:hover {
    transform: translateY(-2px);
    background: var(--pink-2);
}

.enter-button:disabled {
    cursor: wait;
    opacity: .72;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
}

.profile-shell,
.script-shell {
    width: min(100%, 920px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px;
    display: grid;
    place-items: center;
}

.profile-panel {
    width: min(100%, 430px);
    display: grid;
    gap: 18px;
    justify-items: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(13, 9, 12, .58);
    backdrop-filter: blur(10px);
}

.avatar-frame {
    width: 126px;
    aspect-ratio: 1;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #3a2632);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: var(--panel);
}

.profile-copy {
    display: grid;
    gap: 8px;
    text-align: center;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0;
    color: var(--pink-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.intro {
    max-width: 390px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.social-grid {
    width: 100%;
    display: grid;
    gap: 10px;
}

.social-link {
    min-height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 111, 174, .62);
    background: var(--panel-2);
}

.social-link svg,
.script-button svg,
.back-link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link svg {
    color: var(--pink);
}

.social-link span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.social-link b,
.social-link small {
    overflow-wrap: anywhere;
}

.social-link b {
    font-size: 14px;
    font-weight: 800;
}

.social-link small {
    color: var(--muted);
    font-size: 13px;
}

.script-button,
.script-card button {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    background: var(--pink);
    color: #170b11;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s var(--ease), background .2s ease;
}

.script-button:hover,
.script-card button:hover {
    transform: translateY(-2px);
    background: var(--pink-2);
}

.script-shell {
    width: min(100%, 760px);
    place-items: stretch;
    align-content: center;
    gap: 18px;
}

.script-header {
    display: grid;
    gap: 9px;
}

.script-header h1 {
    font-size: clamp(30px, 6vw, 46px);
}

.back-link {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.back-link:hover {
    color: var(--ink);
}

.script-list {
    display: grid;
    gap: 12px;
}

.script-card {
    padding: 16px;
    display: grid;
    gap: 12px;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.script-card > div {
    width: 100%;
    display: grid;
    justify-items: center;
    text-align: center;
}

.script-number {
    color: var(--pink);
    font-size: 12px;
    font-weight: 800;
}

.script-card h2 {
    margin: 7px 0;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    line-height: 1;
}

.script-card p {
    max-width: 420px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.script-card code {
    width: 100%;
    padding: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #090608;
    color: #ffc0dc;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

.script-card button {
    width: auto;
    min-width: 180px;
}

.copy-status {
    min-height: 18px;
    margin: 0;
    color: var(--pink-2);
    font-size: 12px;
}

.copy-status[data-state="error"] {
    color: var(--error);
}

@media (max-width: 680px) {
    .profile-shell,
    .script-shell {
        padding: 20px;
    }

    .profile-panel {
        width: 100%;
    }

    .script-card {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
