* {
    box-sizing: border-box;
}

:root {
    --orange: #ff7a18;
    --orange-dark: #d95d00;
    --cream: #fff8ee;
    --ink: #2b2118;
    --glass: rgba(35, 22, 12, 0.84);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(255, 126, 24, 0.08), rgba(35, 20, 8, 0.12)),
        url("background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--ink);
}

header {
    background: rgba(28, 18, 10, 0.86);
    color: white;
    padding: 18px 24px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.site-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -1px;
}

.header-badge {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35));
}

header h1:not(.site-title) {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 40px);
}

nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #2b2118;
    background: #ffd76a;
    transform: translateY(-2px);
    outline: none;
}

main {
    padding: clamp(50px, 9vw, 90px) 20px;
    min-height: calc(100vh - 190px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card {
    position: relative;
    width: min(760px, 100%);
    background: rgba(255, 252, 247, 0.95);
    margin: auto;
    padding: clamp(28px, 5vw, 46px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff7a18, #ffb52e, #ff7a18);
}

.card h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 5vw, 38px);
    color: #332217;
}

.card p,
.card li {
    font-size: 17px;
    line-height: 1.7;
}

.card ol,
.card ul {
    padding-left: 25px;
}

.card li {
    margin: 10px 0;
}

button {
    background: linear-gradient(135deg, #ff8a22, #ef6508);
    color: white;
    border: 0;
    padding: 13px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 7px 18px rgba(217, 93, 0, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover {
    background: linear-gradient(135deg, #ff962f, #e95c05);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(217, 93, 0, 0.34);
}

button:active {
    transform: translateY(0);
}

.button {
    display: inline-block;
    background: linear-gradient(135deg, #ff8a22, #ef6508);
    color: white !important;
    border: 0;
    padding: 13px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(217, 93, 0, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button:hover,
.button:focus-visible {
    background: linear-gradient(135deg, #ff962f, #e95c05);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(217, 93, 0, 0.34);
    outline: none;
}

.button:active {
    transform: translateY(0);
}

a {
    color: var(--orange-dark);
}

.card a {
    font-weight: bold;
    text-underline-offset: 3px;
}

footer {
    text-align: center;
    background: rgba(28, 18, 10, 0.86);
    color: rgba(255,255,255,0.85);
    padding: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Floating badge background decoration */
.floating-badges {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-badge {
    position: absolute;
    object-fit: contain;
    opacity: 0.14;
    filter: drop-shadow(0 3px 7px rgba(70, 35, 0, 0.12));
    animation: floatAcross 32s linear infinite;
}

.badge-1  { width: 42px;  top: 8%;  left: -70px; animation-duration: 25s; animation-delay: -2s; }
.badge-2  { width: 70px;  top: 19%; left: -100px; animation-duration: 38s; animation-delay: -15s; opacity:.11; }
.badge-3  { width: 34px;  top: 31%; left: -60px; animation-duration: 22s; animation-delay: -7s; opacity:.18; }
.badge-4  { width: 92px;  top: 44%; left: -120px; animation-duration: 45s; animation-delay: -29s; opacity:.10; }
.badge-5  { width: 52px;  top: 58%; left: -80px; animation-duration: 29s; animation-delay: -11s; }
.badge-6  { width: 115px; top: 73%; left: -150px; animation-duration: 50s; animation-delay: -37s; opacity:.09; }
.badge-7  { width: 38px;  top: 87%; left: -65px; animation-duration: 24s; animation-delay: -18s; opacity:.17; }
.badge-8  { width: 62px;  top: 13%; left: 35%; animation-duration: 42s; animation-delay: -22s; opacity:.10; }
.badge-9  { width: 48px;  top: 38%; left: 68%; animation-duration: 35s; animation-delay: -5s; opacity:.13; }
.badge-10 { width: 80px;  top: 66%; left: 82%; animation-duration: 47s; animation-delay: -31s; opacity:.10; }
.badge-11 { width: 30px;  top: 92%; left: 22%; animation-duration: 27s; animation-delay: -13s; opacity:.18; }
.badge-12 { width: 100px; top: 5%;  left: 74%; animation-duration: 52s; animation-delay: -41s; opacity:.08; }
.badge-13 { width: 56px;  top: 52%; left: 12%; animation-duration: 40s; animation-delay: -24s; opacity:.12; }
.badge-14 { width: 44px;  top: 25%; left: 90%; animation-duration: 30s; animation-delay: -19s; opacity:.15; }
.badge-15 { width: 75px;  top: 81%; left: 55%; animation-duration: 44s; animation-delay: -34s; opacity:.10; }
.badge-16 { width: 36px;  top: 61%; left: 44%; animation-duration: 26s; animation-delay: -9s; opacity:.17; }

@keyframes floatAcross {
    0% { transform: translate3d(-12vw, 8vh, 0) rotate(-8deg); }
    25% { transform: translate3d(20vw, -5vh, 0) rotate(5deg); }
    50% { transform: translate3d(50vw, 7vh, 0) rotate(12deg); }
    75% { transform: translate3d(80vw, -6vh, 0) rotate(4deg); }
    100% { transform: translate3d(125vw, 5vh, 0) rotate(-8deg); }
}

header, main, footer {
    position: relative;
    z-index: 1;
}

.description {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.6;
    color: #66594e;
    padding: 14px 16px;
    border-left: 4px solid var(--orange);
    background: rgba(255, 235, 215, 0.55);
    border-radius: 0 10px 10px 0;
}

/* Website notice */
.notice-popup {
    position: fixed;
    top: 24px;
    right: 24px;
    width: min(460px, calc(100% - 40px));
    padding: 32px 58px 32px 32px;
    background: rgba(255, 255, 255, 0.98);
    color: #333;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 16px;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.32);
    z-index: 1000;
    font-size: 16px;
    line-height: 1.5;
    animation: noticePopIn .45s ease-out;
    transform-origin: top right;
}

.notice-popup p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-notice {
    position: absolute;
    top: 7px;
    right: 10px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    box-shadow: none;
    transition: transform .2s ease, color .2s ease;
}

.close-notice:hover {
    color: #111;
    background: transparent;
    transform: rotate(90deg) scale(1.1);
    box-shadow: none;
}

@keyframes noticePopIn {
    0% { opacity: 0; transform: translateY(-25px) scale(.92); }
    70% { opacity: 1; transform: translateY(4px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.notice-popup.closing {
    animation: noticePopOut .3s ease-in forwards;
}

@keyframes noticePopOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(.92) translateY(-10px); }
}

@media (max-width: 600px) {
    header {
        padding: 16px 14px 18px;
    }

    .header-badge {
        width: 38px;
        height: 38px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 15px;
    }

    main {
        padding: 35px 14px 55px;
    }

    .card {
        border-radius: 17px;
        padding: 28px 22px;
    }

    .notice-popup {
        top: 14px;
        right: 14px;
        width: calc(100% - 28px);
        padding: 27px 52px 27px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-badge { animation: none; }
    nav a, button, .close-notice { transition: none; }
}

/* Guide page cards */
.guide-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.guide-page .card { margin: 0; }
.card-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}
.status-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.status-row h2 { margin-bottom: 8px; }
.status-row p { margin: 0; }
.status-dot {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    margin-top: 9px;
    border-radius: 50%;
    background: #b83535;
    box-shadow: 0 0 0 5px rgba(117, 7, 7, 0.14);
}
.compatibility-card h2 { margin-bottom: 20px; }
.compatibility-list { display: grid; gap: 12px; }
.compatibility-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 239, 218, 0.72);
    border: 1px solid rgba(255, 122, 24, 0.13);
}
.compatibility-item strong,
.compatibility-item div span { display: block; }
.compatibility-item strong { font-size: 16px; margin-bottom: 2px; }
.compatibility-item div span { color: #6d5b4d; font-size: 14px; }
.compatibility-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 50%;
    background: rgba(255, 122, 24, 0.16);
    color: var(--orange-dark);
    font-weight: 900;
}
@media (max-width: 600px) {
    .status-row { gap: 12px; }
    .compatibility-item { padding: 12px; }
}


/* Mobile improvements */
@media (max-width: 700px) {
    body {
        background-attachment: scroll;
        overflow-x: hidden;
    }

    header {
        padding: 16px 12px;
    }

    .site-title {
        font-size: 30px;
        flex-direction: column;
        gap: 6px;
    }

    .header-badge {
        width: 55px;
        height: 55px;
    }

    nav {
        width: 100%;
        gap: 6px;
    }

    nav a {
        flex: 1 1 30%;
        min-width: 90px;
        text-align: center;
        padding: 11px 10px;
        font-size: 15px;
        background: rgba(255,255,255,0.08);
    }

    main {
        padding: 25px 12px;
        min-height: calc(100vh - 180px);
    }

    .card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .card h2 {
        font-size: 28px;
    }

    .card p,
    .card li {
        font-size: 16px;
        line-height: 1.55;
    }

    button {
        width: 100%;
        padding: 15px;
        font-size: 17px;
    }

    .floating-badge {
        opacity: 0.08;
    }

    footer {
        padding: 16px 10px;
        font-size: 14px;
    }
}
