@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap");
.story-download-page {
    min-height:760px;
    padding:58px 18px 72px;
    background:#160909;
    box-sizing:border-box;
}
.story-download-shell {
    width:100%;
    max-width:1100px;
    margin:0 auto;
}
.story-download-hero {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:190px;
    padding:36px 40px;
    overflow:hidden;
    border:1px solid rgba(215,164,48,.35);
    border-radius:18px;
    background:linear-gradient(105deg,#fffaf0 0%,#fff7e5 58%,#ffe8a6 100%);
}
.story-download-hero:before,.story-download-hero:after {
    content:"";
    position:absolute;
    border:1px solid rgba(205,149,30,.22);
    border-radius:50%;
}
.story-download-hero:before {
    width:240px;
    height:240px;
    right:-70px;
    top:-120px
}
.story-download-hero:after {
    width:135px;
    height:135px;
    right:80px;
    bottom:-95px
}
.story-download-hero-copy,.story-download-hero-icon {
    position:relative;
    z-index:2
}
.story-download-kicker,.story-download-panel-head span {
    font-family:"Kanit",sans-serif;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.2px;
    color:#96600a;
}
.story-download-hero h1 {
    margin:10px 0 5px;
    font-family:"Kanit",sans-serif;
    font-size:44px;
    font-weight:400;
    color:#563408;
}
.story-download-hero p {
    margin:0;
    font-family:"Kanit",sans-serif;
    font-size:15px;
    font-weight:300;
    color:#92704a;
}
.story-download-hero-icon {
    display:grid;
    place-items:center;
    width:88px;
    height:88px;
    border-radius:26px;
    background:rgba(255,255,255,.48);
    color:#c78a12;
    font-size:35px;
}
.story-download-panel {
    margin-top:22px;
    padding:30px;
    border:1px solid rgba(215,164,48,.28);
    border-radius:18px;
    background:#fffaf0;
}
.story-download-panel-head {
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-end;
    padding-bottom:18px;
    border-bottom:1px solid #ecdcbf;
}
.story-download-panel-head h2 {
    margin:4px 0 0;
    font-family:"Kanit",sans-serif;
    font-weight:400;
    font-size:26px;
    color:#4b3212;
}
.story-download-panel-head p {
    max-width:430px;
    margin:0;
    text-align:right;
    font-family:"Kanit",sans-serif;
    font-size:12px;
    font-weight:300;
    color:#9a7b55;
}
.story-download-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-top:22px;
}
.story-download-card {
    position:relative;
    display:grid;
    grid-template-columns:62px minmax(0,1fr) auto;
    gap:15px;
    align-items:center;
    min-width:0;
    padding:18px;
    border:1px solid #ead8b8;
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 24px rgba(95,56,8,.05);
}
.story-download-card.is-featured {
    border-color:#e5a914;
    background:linear-gradient(120deg,#fffdf8,#fff4d2);
}
.story-download-badge {
    position:absolute;
    top:0;
    right:16px;
    transform:translateY(-50%);
    padding:4px 9px;
    border-radius:999px;
    background:#e9a800;
    color:#fff;
    font:700 9px/1 "Kanit",sans-serif;
    letter-spacing:.8px;
}
.story-download-card-icon {
    display:grid;
    place-items:center;
    width:62px;
    height:62px;
    border-radius:16px;
    background:#fff1c9;
    color:#c68509;
    font-size:25px;
}
.story-download-card-copy {
    min-width:0
}
.story-download-type {
    margin-bottom:3px;
    font:700 9px/1.2 "Kanit",sans-serif;
    letter-spacing:1px;
    color:#a56b08;
    text-transform:uppercase;
}
.story-download-card h3 {
    margin:0 0 4px;
    font:400 19px/1.35 "Kanit",sans-serif;
    color:#493116;
}
.story-download-card p {
    margin:0 0 7px;
    font:300 11px/1.55 "Kanit",sans-serif;
    color:#8d7354;
}
.story-download-meta {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    color:#a08361;
    font:300 10px/1.3 "Kanit",sans-serif;
}
.story-download-button {
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    padding:0 14px;
    border-radius:10px;
    background:#e8a600;
    color:#fff!important;
    font:600 10px/1 "Kanit",sans-serif;
    letter-spacing:.6px;
    text-decoration:none!important;
    box-shadow:0 8px 18px rgba(211,147,0,.2);
}
.story-download-button:hover {
    background:#d69700
}
.story-download-note {
    display:flex;
    gap:14px;
    margin-top:22px;
    padding:17px 18px;
    border-radius:13px;
    background:#f7eedb;
    color:#6c4a1c;
}
.story-download-note>i {
    font-size:21px;
    color:#c48b15
}
.story-download-note strong {
    display:block;
    font:600 13px "Kanit",sans-serif
}
.story-download-note p {
    margin:2px 0 0;
    font:300 11px/1.55 "Kanit",sans-serif
}
.story-download-empty {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    padding:55px 20px;
    color:#9a7b55;
    font-family:"Kanit",sans-serif;
}
.story-download-empty i {
    font-size:34px;
    color:#d7aa49
}
.story-download-empty strong {
    font-size:18px;
    font-weight:500
}
.story-download-empty span {
    font-size:12px;
    font-weight:300
}
@media(max-width:900px) {
    .story-download-grid {
        grid-template-columns:1fr
    }
}
@media(max-width:767px) {
    .story-download-page {
        padding:28px 8px 45px
    }
    .story-download-hero {
        min-height:165px;
        padding:25px 20px
    }
    .story-download-hero h1 {
        font-size:34px
    }
    .story-download-hero-icon {
        width:66px;
        height:66px;
        border-radius:20px;
        font-size:27px
    }
    .story-download-panel {
        padding:18px 12px
    }
    .story-download-panel-head {
        display:block
    }
    .story-download-panel-head p {
        margin-top:7px;
        text-align:left
    }
    .story-download-card {
        grid-template-columns:52px minmax(0,1fr);
        padding:15px
    }
    .story-download-card-icon {
        width:52px;
        height:52px
    }
    .story-download-button {
        grid-column:1/-1;
        justify-content:center;
        width:100%;
        margin-top:2px
    }
}
button.story-download-button {
    border:0;
    cursor:pointer
}
.story-qr-open {
    overflow:hidden
}
.story-qr-modal {
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px
}
.story-qr-modal.is-open {
    display:flex
}
.story-qr-backdrop {
    position:absolute;
    inset:0;
    background:rgba(20,8,7,.78);
    backdrop-filter:blur(5px)
}
.story-qr-dialog {
    position:relative;
    z-index:1;
    width:100%;
    max-width:470px;
    padding:34px 32px 30px;
    border:1px solid rgba(220,165,42,.55);
    border-radius:22px;
    background:linear-gradient(145deg,#fffdf8 0%,#fff7e7 68%,#ffe9ae 100%);
    box-shadow:0 28px 80px rgba(0,0,0,.42);
    text-align:center
}
.story-qr-close {
    position:absolute;
    top:12px;
    right:14px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:rgba(108,68,20,.08);
    color:#775021;
    font-size:25px;
    cursor:pointer
}
.story-qr-icon {
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    margin:0 auto 10px;
    border-radius:17px;
    background:#fff0c4;
    color:#c58a13;
    font-size:25px
}
.story-qr-kicker {
    color:#9e680c;
    font:700 10px/1.2 "Kanit",sans-serif;
    letter-spacing:1.2px
}
.story-qr-dialog h2 {
    margin:6px 0 4px;
    color:#553609;
    font:400 28px/1.3 "Kanit",sans-serif
}
.story-qr-intro {
    margin:0 auto 18px;
    color:#98774f;
    font:300 12px/1.6 "Kanit",sans-serif
}
.story-qr-image-wrap {
    display:grid;
    place-items:center;
    width:min(320px,100%);
    aspect-ratio:1;
    margin:0 auto 18px;
    padding:12px;
    border:1px solid #ecd8ad;
    border-radius:18px;
    background:#fff
}
.story-qr-image-wrap img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain
}
.story-qr-help {
    margin:0;
    color:#79562d;
    font:300 12px/1.7 "Kanit",sans-serif
}
.story-qr-help a {
    color:#b87400;
    font-weight:600;
    text-decoration:underline
}
@media(max-width:520px) {
    .story-qr-dialog {
        padding:28px 18px 24px;
        border-radius:18px
    }
    .story-qr-dialog h2 {
        font-size:24px
    }
    .story-qr-image-wrap {
        width:min(280px,88vw)
    }
}
