:root {
    color-scheme: light;
    --page: #fcf9f6;
    --ink: #291d20;
    --muted: #66555a;
    --brand: #af2b48;
    --accent: #901f39;
    --line: #e8d1cc;
    --rose: #f8e9eb;
    --focus: #781832;
    font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif;
    color: var(--ink);
    background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fffaf5;
}

.page {
    --content-width: clamp(560px, 37vw, 680px);
    --card-height: clamp(66px, 7.6vh, 76px);
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px clamp(50px, 8vw, 240px);
}

.masthead, main { width: min(100%, var(--content-width)); }

.hero-art {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero-art::before, .hero-art::after { position: absolute; inset: 0; }

.hero-art::after {
    content: "";
    background: linear-gradient(90deg, #fff5ebd9, #fff5ebb3 32%, #fff5eb66 48%, #fff5eb00 67%);
}

.masthead { margin-bottom: clamp(18px, 3.5vh, 37px); }
.masthead img { width: clamp(124px, 8vw, 148px); height: auto; }

.hero h1 {
    font-size: clamp(46px, 4vw, 70px);
    font-weight: 850;
    line-height: 1.09;
    letter-spacing: -.065em;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hero h1 span { display: block; color: var(--accent); }

.hero-line {
    margin-top: 14px;
    font-size: clamp(16px, 1.05vw, 19px);
    font-weight: 550;
    line-height: 1.55;
    color: var(--muted);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.lifetime {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 14px;
    margin-top: 24px;
    padding: 17px 22px;
    border: 1px solid #fff;
    border-left: 5px solid var(--brand);
    border-radius: 17px;
    background: #fffcfaef;
    box-shadow: 0 8px 26px #60203114;
}

.lifetime::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 34%, #f5dce670 50%, transparent 66%);
    transform: translateX(-100%);
}

.lifetime-body { min-width: 0; }

.lifetime h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
}

.icon { display: block; width: 1.12em; height: 1.12em; flex: none; }

.lifetime-domain {
    display: inline-block;
    margin-top: 4px;
    border-radius: 2px;
    color: var(--ink);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: -.052em;
    overflow-wrap: anywhere;
    text-decoration: none;
}

a.lifetime-domain:is(:hover, :focus-visible) {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: .07em;
    text-underline-offset: .13em;
}

.bookmark-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.button, .domain-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 49px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .18s ease, transform .18s ease;
}

.copy-button {
    flex: none;
    min-width: 108px;
    cursor: pointer;
}

.copy-button:is(:hover, :focus-visible) { background: var(--accent); }

.quick-links {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.quick-links--split {
    grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
    column-gap: 14px;
}

.section-title {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.domain-grid, .telegram-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
}

.quick-links--split :is(.domain-grid, .telegram-list) { grid-template-columns: minmax(0, 1fr); }
.domain-grid > :only-child, .telegram-list > :only-child { grid-column: 1 / -1; }

.link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    min-height: var(--card-height);
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fffdfb;
    box-shadow: 0 4px 12px #6020310e;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.link-card:is(:hover, :focus-visible) {
    border-color: #bf7d88;
    background: #fff5f3;
}

.link-card:hover { box-shadow: 0 6px 16px #60203125; transform: translateY(-2px); }
:is(.link-card, .copy-button):active { transform: translateY(1px); }
.domain-button:is(:hover, :focus-visible) .domain-cta { background: var(--accent); }

.domain-badge, .telegram-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 35px;
    height: 35px;
}

.domain-badge {
    border-radius: 8px;
    background: var(--rose);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.domain-name {
    flex: 1;
    min-width: 0;
    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.domain-cta { flex: none; }

.telegram-icon {
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 18px;
}

.telegram-copy { min-width: 0; flex: 1; }
.telegram-label, .telegram-detail { display: block; overflow-wrap: anywhere; }

.telegram-label {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.025em;
    word-break: keep-all;
}

.telegram-detail {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    word-break: keep-all;
}

.telegram-button > .icon { color: var(--accent); font-size: 15px; }

.footer-note {
    display: flex;
    align-self: start;
    align-items: start;
    gap: 7px;
    width: fit-content;
    max-width: min(100%, var(--content-width));
    margin-top: 17px;
    padding: 8px 10px;
    border: 1px solid #fff9f3;
    border-radius: 10px;
    background: #fff7f0ed;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.footer-note .icon { margin-top: .16em; color: var(--accent); }
.footer-note p { min-width: 0; }

.visually-hidden, .clipboard-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.clipboard-field {
    position: fixed;
    inset: 0 auto auto 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 621px) {
    .quick-links--split:has(.domain-card:nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
    .quick-links--split:has(.domain-card:nth-child(3)) :is(.domain-grid, .telegram-list) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 901px) and (max-height: 900px) {
    .page { padding-block: 23px; }
    .masthead { margin-bottom: 18px; }
    .hero h1 { font-size: clamp(43px, 6.8vh, 56px); }
    .hero-line { margin-top: 11px; }
    .lifetime { margin-top: 18px; padding-block: 13px; }
    .lifetime-domain { font-size: clamp(30px, 4.85vh, 39px); }
    .quick-links { margin-top: 17px; gap: 13px; }
    .footer-note { margin-top: 13px; }
    .page:has(.domain-card:nth-child(5)) { --card-height: 64px; padding-block: 15px; }
    .page:has(.domain-card:nth-child(5)) .masthead { margin-bottom: 14px; }
    .page:has(.domain-card:nth-child(5)) .lifetime { margin-top: 16px; padding-block: 10px; }
    .quick-links:has(.domain-card:nth-child(5)) { margin-top: 14px; gap: 10px; }
    .quick-links:has(.domain-card:nth-child(5)) .link-card { padding-block: 6px; }
}

@media (max-width: 900px) {
    .page {
        --content-width: 610px;
        padding: clamp(34px, 9svh, 106px) clamp(24px, 5.5vw, 48px) clamp(100px, 24svh, 280px);
        align-items: center;
    }
    .hero-art img { object-position: 58% center; }
    .hero-art::after {
        background: linear-gradient(180deg, #fff5ebd9, #fff5ebad 32%, #fff5eb96 57%, #fff5eb00 85%);
    }
    .hero h1 { font-size: clamp(43px, 7vw, 60px); }
    .footer-note { align-self: auto; width: min(100%, var(--content-width)); }
}

@media (max-width: 620px) {
    .page {
        --card-height: 66px;
        justify-content: start;
        padding: 28px clamp(16px, 5.13vw, 28px) clamp(225px, 66vw, 310px);
    }
    .masthead { margin-bottom: 20px; }
    .masthead img { width: 118px; }
    .hero h1 { font-size: clamp(29px, 8.55vw, 50px); }
    .hero-line { margin-top: 10px; font-size: 14px; }
    .lifetime { margin-top: 18px; padding: 13px 12px; gap: 8px; }
    .lifetime-domain { font-size: clamp(23px, 6.9vw, 34px); }
    .bookmark-note { font-size: 12px; }
    .copy-button { min-width: 85px; padding-inline: 7px; gap: 4px; font-size: 12px; }
    .quick-links, .quick-links--split { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
    .domain-grid, .telegram-list { grid-template-columns: minmax(0, 1fr); }
    .section-title { font-size: 16px; margin-bottom: 7px; }
    .footer-note { margin-top: 14px; font-size: 12px; }
}

@media (max-width: 360px) {
    .page { padding-inline: 14px; }
    .link-card { gap: 8px; padding-inline: 9px; }
    .domain-cta { padding-inline: 9px; }
}

@media (prefers-reduced-motion: no-preference) {
    .enter { animation: enter .45s ease-out var(--delay, 0ms) both; }
    .domain-card { --delay: 80ms; }
    .domain-card:nth-child(2) { --delay: 140ms; }
    .domain-card:nth-child(3) { --delay: 200ms; }
    .domain-card:nth-child(4) { --delay: 260ms; }
    .domain-card:nth-child(5) { --delay: 320ms; }
    .domain-card:nth-child(n+6) { --delay: 380ms; }
    .telegram { --delay: 200ms; }
    .lifetime::after {
        content: "";
        animation: sweep .85s ease-out .5s both;
    }
    .hero-art::before {
        content: "";
        background: radial-gradient(ellipse at 73% 30%, #fff4df55, transparent 46%);
        animation: arena-light 26s ease-in-out infinite alternate;
    }
    @keyframes enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: none; }
    }
    @keyframes sweep { to { transform: translateX(100%); } }
    @keyframes arena-light {
        from { opacity: .2; transform: translate(-2%, -1%); }
        to { opacity: .65; transform: translate(2%, 1%); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .button, .domain-cta, .link-card { transition: none; }
    .link-card:hover, :is(.link-card, .copy-button):active { transform: none; }
}
