:root {
    --bg: #140f0c;
    --bg-deep: #0a0806;
    --gold: #e0c36a;
    --gold-bright: #ffd978;
    --gold-deep: #a8842d;
    --text: #f4efe6;
    --muted: #c2b7a5;
    --line: rgba(224, 195, 106, 0.28);
    --danger-deep: #8e0000;
    --line-green: #06C755;
    --line-green-deep: #05a847;
    --phone-width: 430px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    font-family: "Sarabun", "Tahoma", sans-serif;
    background:
        radial-gradient(ellipse 90% 40% at 50% 0%, rgba(224, 195, 106, 0.14), transparent 50%),
        linear-gradient(180deg, #1a120c 0%, var(--bg-deep) 100%);
    line-height: 1.65;
}

a {
    color: var(--gold-bright);
}

a strong {
    color: inherit;
}

.hot-link {
    color: #ffe28a;
    font-weight: 700;
    text-decoration: none;
    padding: 1px 4px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 215, 120, 0.28), rgba(168, 132, 45, 0.18));
    border-bottom: 2px solid #ffd978;
    box-shadow: 0 0 14px rgba(255, 217, 120, 0.22);
    transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hot-link:hover {
    color: #fff8d6;
    filter: brightness(1.12);
    background: linear-gradient(180deg, rgba(255, 215, 120, 0.42), rgba(168, 132, 45, 0.28));
}

.hot-link:active {
    transform: scale(0.98);
}

.site-shell {
    width: 100%;
    max-width: var(--phone-width);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, rgba(28, 21, 16, 0.96), rgba(10, 8, 6, 0.99));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero {
    position: relative;
    padding: max(16px, env(safe-area-inset-top)) 0 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    overflow: hidden;
}

.hero-top {
    padding: 8px 18px 10px;
}

.brand-logo-link {
    display: inline-block;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: blink-logo 1.4s ease-in-out infinite;
}

.brand-logo-link:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
    animation-play-state: paused;
}

.brand-logo-link:active {
    transform: scale(0.97);
}

.brand-logo {
    width: min(28vw, 104px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 28px rgba(224, 195, 106, 0.28);
    animation: rise-in 0.7s ease both;
}

.hero-banner-wrap {
    width: 100%;
    margin: 0;
    animation: wow-in 0.9s ease 0.08s both;
}

.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 18px 18px 0;
}

.brand {
    font-family: "Charmonman", "Sarabun", cursive;
    font-size: clamp(2.8rem, 14vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gold-bright);
    text-shadow: 0 2px 20px rgba(224, 195, 106, 0.35);
    animation: rise-in 0.8s ease both;
}

.hero h1 {
    margin-top: 0;
    font-size: clamp(1.15rem, 4.8vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    animation: rise-in 0.8s ease 0.16s both;
}

.hero-lead {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 0 2px;
    animation: rise-in 0.8s ease 0.24s both;
}

.cta-row {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    animation: rise-in 0.8s ease 0.32s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff4d4d, #c62828 45%, #8e0000);
    border: 1px solid #ff8a80;
    box-shadow: 0 8px 22px rgba(198, 40, 40, 0.45);
    animation: blink-cta 1.15s ease-in-out infinite;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-primary:active {
    animation: none;
    transform: scale(0.97);
}

.btn-line {
    color: #ffffff;
    background: linear-gradient(180deg, #07d45c 0%, var(--line-green) 45%, var(--line-green-deep) 100%);
    border: 1px solid #4dff8f;
    box-shadow: 0 8px 22px rgba(6, 199, 85, 0.35);
}

.btn-line:hover {
    filter: brightness(1.06);
}

.line-logo {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.line-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.btn-compact {
    min-height: 48px;
    font-size: 0.98rem;
}

.btn-compact .line-logo {
    width: 22px;
    height: 22px;
}

.section {
    padding: 36px 18px;
    border-top: 1px solid var(--line);
}

.section h2 {
    font-size: 1.28rem;
    color: var(--gold-bright);
    margin-bottom: 12px;
    line-height: 1.35;
}

.section h3 {
    font-size: 1.05rem;
    color: var(--gold);
    margin: 20px 0 8px;
}

.section p,
.section li {
    color: var(--muted);
    font-size: 0.98rem;
}

.section p + p {
    margin-top: 12px;
}

.section ul {
    margin: 12px 0 0 1.15rem;
}

.section li + li {
    margin-top: 8px;
}

.mid-cta {
    margin-top: 24px;
}

.site-footer {
    padding: 28px 18px max(36px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer strong {
    color: var(--gold);
}

.footer-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    font-size: 0.9rem;
}

.footer-nav a {
    text-decoration: none;
}

.related-links {
    margin: 14px 0 0;
    padding-left: 1.15rem;
}

.related-links a {
    text-decoration: none;
    font-weight: 600;
}

.page-header {
    padding: max(20px, env(safe-area-inset-top)) 18px 8px;
    text-align: center;
}

.page-header h1 {
    margin-top: 12px;
    font-size: clamp(1.25rem, 5vw, 1.55rem);
}

.back-link {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--muted);
}

.brand-logo-sm {
    width: 72px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wow-in {
    from {
        opacity: 0;
        transform: scale(1.04) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes blink-logo {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(255, 217, 120, 0);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.18);
        box-shadow:
            0 0 0 6px rgba(255, 217, 120, 0.22),
            0 0 28px rgba(255, 215, 100, 0.55);
    }
}

@keyframes blink-cta {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 18px rgba(198, 40, 40, 0.35);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.03);
        box-shadow:
            0 0 0 3px rgba(255, 120, 120, 0.28),
            0 10px 24px rgba(255, 59, 59, 0.55);
        filter: brightness(1.12);
    }
}

@media (max-width: 480px) {
    .btn-primary {
        animation-duration: 1.6s;
    }

    .brand-logo-link {
        animation-duration: 1.8s;
    }

    .hero-banner-wrap,
    .brand-logo,
    .cta-row,
    .hero h1,
    .hero-lead {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .brand-logo-link,
    .hero-banner-wrap,
    .brand-logo,
    .cta-row,
    .hero h1,
    .hero-lead {
        animation: none !important;
    }
}

@media (min-width: 480px) {
    body {
        padding: 12px 0;
    }

    .site-shell {
        border-radius: 18px;
        overflow: hidden;
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
    }

    .hero {
        padding-top: 20px;
    }

    .hero-top,
    .hero-copy {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section {
        padding: 40px 24px;
    }
}
