@font-face {
    font-family: 'Nescafe Sans VN';
    src: url('../fonts/NescafeSansVN-Bold.woff2') format('woff2'),
        url('../fonts/NescafeSansVN-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nescafe Sans VN';
    src: url('../fonts/NescafeSansVN.woff2') format('woff2'),
        url('../fonts/NescafeSansVN.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  --red: #C10000;
  --red-dark: #C20000;
  --brown: #302216;
  --body-bg: #7f6b5e;
  --brown-mid: #6b3f23;
  --paper: #f4ebdd;
  --paper-2: #ebdfcc;
  --ink: #733E12;
  --ink-dark: #302216;
  --step: #733E12;
  --muted: #8d7458;
  --disabled: #b9a58d;
  --white: #fff;
  --font-head: "Nescafe Sans VN", "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto Mono", "Courier New", monospace;
  --max: 560px;
  --radius: 10px;
  --swiper-pagination-bullet-horizontal-gap: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

.captcha-wrapper {
    position: fixed;
    width: 90%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index:19
}
.grecaptcha-badge { visibility: hidden; }
.g-recaptcha 

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; height: auto; }
a, .alink { color: inherit; cursor: pointer}
  .alink {text-decoration: underline;}
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.error {color: var(--red); font-size: 0.8em; font-style: italic;}

body > section {display:none}
body > section.active {display:block}
/* Layout: phone column centred on desktop */
.site {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100dvh - 66px);
  display: flex;
  flex-direction: column;
  background: var(--paper) url("../images/bg-paper-min.webp") center top / 100%auto repeat;
  box-shadow: 0 0 40px rgba(0,0,0,.4);
  overflow: hidden;
}
.site > main { flex: 1; }
.wrap { padding: 20px 18px; position: relative;}
.nowrap {white-space: nowrap;}

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 16px;
  background: var(--brown); color: var(--white);
}
.header .logo img, .menu-top img { height: 26px; width: auto; }
.header .back { font-size: 13px; text-decoration: none; opacity: .9 }
.menu-btn {
  width: 40px; height: 40px; border: 0; background: none;
  display: grid; place-items: center;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--red); box-shadow: 0 -7px 0 var(--red), 0 7px 0 var(--red); }

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 30; display: none;
  background: var(--brown); color: var(--white);
  padding: 14px 16px;
}
.menu[aria-hidden="false"] { display: block; }
.menu .menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu .close { background: none; border: 0; color: var(--red); font-size: 26px; line-height: 1; }
.menu ul { list-style: none; margin: 40px 0 0; padding: 0; text-align: center; }
.menu li + li { margin-top: 26px; }
.menu a {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}

/* Footer */
.footer {
  background: var(--brown); color: #e9dccb; text-align: center; font-family: var(--font-head); font-size: 12px; padding: 14px 16px; line-height: 1.6; height: 66px;
}
.footer a { color: inherit; text-decoration: none; }

/* Typography */
.title {
  color: var(--red); font-weight: 800; text-transform: uppercase;
  font-size: 11vw; letter-spacing: .01em;
}
h1.title { font-size: 8vw}
.voucher-page .title { font-size: 7vw}
h3.title { font-size: 6vw}
.title.center { text-align: center; }
.rule-title {font-size:1.8em;}
.kicker { font-family: var(--font-head); font-weight: 700; color: var(--red); text-transform: uppercase; font-size:0.8em; letter-spacing: .04em; margin: 0; }
.lead { font-weight: 500; font-size: 1em }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.label {
  display: block; font-size: 0.8em; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-dark); margin: 0 0 6px;
}
.label .req { color: var(--red); }
.small-s {font-size:0.6em; display:block}
.small-xs {font-size:0.5em; display:block}
.big-s {font-size:1.25em; display:block; line-height:1}

/* Buttons */
.btn {
  display: block; width: 100%; padding: 0.5em 0.8em; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(12px, 4.4vw, 18px);
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  border: 2px solid #FFF8F0; border-radius: 0; color: var(--white); background: var(--red);
  box-shadow: 2px 3px 3px rgba(59,36,22,.35);
}
.btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 rgba(59,36,22,.35); }
.btn.brown { background: var(--brown-mid); }
.btn.outline { background: transparent; color: var(--red); border: 2px solid var(--red); box-shadow: none; }
.btn[disabled], .btn.disabled { background: var(--disabled); color: #f5efe6; box-shadow: none; pointer-events: none; }
.btn.light, .light.disabled { background: #c10000; opacity: 0.6;}
.btn.inline { display: inline-block; width: auto; }
.link {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  text-transform: uppercase; color: var(--brown-mid); text-decoration: underline; letter-spacing: .03em;
}
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }

/* Forms */
.field { margin-bottom: 16px; }
.control {
  width: 100%; padding: 13px 14px; font: inherit; color: var(--ink);
  background: #fbf6ee; border: 1px solid #d9c9b1; border-radius: var(--radius);
}
.control::placeholder { color: #b5a28a; }
.control:focus { /* outline: 2px solid var(--red); outline-offset: 1px;*/ box-shadow: inset 0 0 2px var(--red); border-color: var(--red); outline: none;}
.control.readonly { background: #E4D7C4; border-color: #E8D5B7; font-weight: 600;}
.phone-row { display: flex; gap: 10px; }
.phone-row .prefix {
  flex: 0 0 64px; display: grid; place-items: center; font-weight: 600;
  background: var(--brown-mid); color: var(--white); border-radius: var(--radius);
}
.hint { font-size: 11px; line-height: 1.5; margin: 8px 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; margin-bottom: 10px; color:#6B5040}
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.panel { background: #fbf4e8; border: 1px solid #e6d8c3; border-radius: 14px; padding: 16px 14px; }
input.dob::-webkit-calendar-picker-indicator {
  opacity: 0;
}
input.dob {
  background-image: url("../images/icon-calendar.png");
  background-repeat: no-repeat;
  background-position: 97% center;
  background-size: auto 50%;
  cursor: pointer;
}

.control.dob[readonly] { background-color: #fbf6ee; }

/* jQuery UI datepicker theme */
.ui-datepicker { font-family: var(--font-body); font-size: 13px; padding: 8px; border-radius: var(--radius); background: #fbf6ee; border: 1px solid #d9c9b1; z-index: 20 !important; }
.ui-datepicker .ui-datepicker-header { background: var(--paper-2); border: 0; color: var(--ink); }
.ui-datepicker .ui-datepicker-title select { font-family: inherit; font-size: 13px; color: var(--ink); }
.ui-datepicker th { color: var(--muted); }
.ui-datepicker .ui-state-default { background: transparent; border: 1px solid transparent; color: var(--ink-dark); text-align: center; border-radius: 6px; }
.ui-datepicker .ui-state-hover { background: var(--paper-2); }
.ui-datepicker .ui-state-highlight { border-color: var(--red); }
.ui-datepicker .ui-state-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* OTP */
.otp { display: flex; gap: 8px; justify-content: center; margin: 24px 0 18px; }
.otp input {
  width: 46px; height: 52px; text-align: center; font-size: 22px; font-weight: 600;
  color: var(--brown-mid); background: #fbf6ee; border: 1px solid #d9c9b1; border-radius: 10px;
}
.otp input:focus {box-shadow: inset 0 0 2px var(--red); border-color: var(--red); outline: none;}
.ok { color: #2e8b57; font-size: 12px; }
.login-page p { margin:2em 0}
.user-phone {white-space: nowrap}
#resend { color: var(--ink-dark); font-weight: 600 }

/* Hero */
.hero { position: relative; color: var(--white); text-align: center; background: var(--brown); }
.hero .swiper-slide::after { content: ""; position: absolute; z-index:1; bottom:0; left: 0; width: 100%; height: 50%; /* background: linear-gradient(transparent, rgba(30,15,8,.8)); */ pointer-events: none;} 
.hero img.bg { width: 100%; aspect-ratio: 454 / 807; object-fit: cover; object-position: top; }
.hero .copy { position: absolute; z-index:10; left: 0; right: 0; bottom: 0; padding: 0 1.5em 2em }
.hero .copy p { font-size: 3.4vw; font-weight: 500; line-height: 1.35; text-shadow: 0 1px 2px rgba(0,0,0,.6); padding:0 1em}
.dots {display: flex; gap: 3px; justify-content: center; margin: 2em 0 14px}
.swiper-pagination.dots .swiper-pagination-bullet {width:8px; height:8px; border-radius: 50%; background: #fff; opacity: 1;}
.swiper-pagination.dots .swiper-pagination-bullet-active { background: var(--red); opacity: 1; }
.swiper-pagination.dots {z-index: 10; bottom:11%}
.swiper-slide img {width:100%;}

/* Steps */
.wrap-steps { position: relative; background-image: url("../images/decor-01.webp"),url("../images/decor-02.webp"),url("../images/decor-03.webp") ; background-size: 11% auto, 14% auto, 20% auto; background-repeat: no-repeat; background-position: left 20px, right top, left bottom; padding:4em 0 2em;}
.steps-box {position: relative;}
.steps-box .step {position: absolute; left:30%; max-width:50%; color: var(--step); font-size:3vw}
.steps-box .step:nth-child(1) {top:10%}
.steps-box .step:nth-child(2) {top:44%; padding-right:8%}
.steps-box .step:nth-child(3) {top:78%; padding-right:14%}
.step .num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.step h3 { font-size: 1.2em; text-transform: uppercase; color: var(--step); margin-bottom: 0.5em; position: relative; display:flex; align-items:center; gap: 0.6em; }
.step p {margin: 0; line-height: 1.4;}
.steps-box .step h3::before {content:""; padding:1em;}
.steps-box .step:nth-child(1) h3::before {background: url("../images/icon-step1.png") no-repeat center / 90%;}
.steps-box .step:nth-child(2) h3::before {background: url("../images/icon-step2.png") no-repeat center / 80%;}
.steps-box .step:nth-child(3) h3::before {background: url("../images/icon-step3.png") no-repeat center / 90%;}

/* Divider */
.divider { border: 0; margin:1.25em 0; padding:5px 0; background: url("../images/hr.png") left / 100% 100% no-repeat;}
#home .divider {margin:0 0 1em}

/* Story cards */
.grid-2 {max-width:100%}
.grid-2:after {
  content: '';
  display: block;
  clear: both;
}
.card {
  background: transparent; border: 1px solid #E8D5B7; border-radius: 12px; padding:0.3em;
  box-shadow: 0px 3px 2px rgba(59,36,22,.35);
  display: flex; flex-direction: column;
  width:calc(50% - 7.5px); height:280px; margin-bottom:15px;
}

.card .stamp { margin-bottom:5px; }
.author { display: flex; align-items: flex-start; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px; margin-bottom: 6px; word-break: break-all;}
.author::before { content: ""; width: 16px; height: 18px; border-radius: 50%; background: transparent url(../images/icon_coffeebean.png) no-repeat center bottom / 100% auto; flex: none; } 
.card .content {line-height: 1.35; overflow: hidden; color: var(--brown); word-break: break-word;}
.card .content p {display:block;background: linear-gradient(to bottom, var(--brown) 60%, transparent); color: transparent; -webkit-background-clip: text; background-clip: text; }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.9em; font-weight: 600; display: flex; align-items: center; }
.card .meta .likes { color:#733E12; vertical-align: middle; }
.card .meta .likes::before { content: "❤ "; color: var(--red)}
.card .meta a { color: var(--red); text-decoration: none; font-weight: 700; }
.card .author, .card .content, .card .meta {font-size:12px; padding-left:0.8em; padding-right:0.8em}

/* Stamp image frame (perforated look) */
.stamp img {width: 100%;}
.stamp.green { border-color: #3d7a3a; }
.stamp.brown { border-color: #8b5a3c; }
.stamp.blue { border-color: #2f5fa8; }

/* Top 3 */
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.top3 .stamp img { aspect-ratio: 1; }
.top3 .author { font-size: 0.8em; margin-top: 8px; }
.top3 p { font-size: 0.8em; word-break: break-all;}
.rule-title { display: block;position: relative; text-align:center; margin-bottom:0.2em;}
.rule-title::before, .rule-title::after {content: ""; position:absolute; width: 100%; height:100%; pointer-events: none;}
.rule-title::before {background: url("../images/hr.png") no-repeat left center / 100% auto; left:-55%; top:35%}
.rule-title::after {background: url("../images/hr.png") no-repeat right center / 100% auto; right:-45%; top:35%}

.search { position: relative; margin: 14px 0 16px; }
.search input { width: 100%; padding: 8px 40px 8px 12px; font: inherit; font-size: 0.8em; background: transparent; border: 1px solid var(--red); border-radius:50px; color: var(--ink); }
.search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--red); font-size: 16px; }

/* Postcard (story form & result) */
.wrap-kechuyen {position: relative; background-image: url(../images/stamp-top.png), url(../images/stamp-bottom.png), url(../images/stamp-right.png), url(../images/stamp-left.png); background-repeat: no-repeat, no-repeat, repeat-y, repeat-y; background-position: top center, bottom center, top right, top left; background-size: 100% auto, 100% auto, 5% auto, 5% auto;}
.postcard {
  position: relative; padding: 0 2em 2em;
  /* background: #f7eee0 url("../images/postcard-v.webp") center / 100% 100% no-repeat; */
}
/* .preview-img img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgba(59,36,22,.2); } */
.post-head {position: relative; text-align: center; padding-bottom: 12px; padding-top: 2em; margin-top:0.5em}
.post-head .title {position:absolute; left: 30%; top: 15%; font-size:8.2vw}
.progress { display: flex; justify-content: space-between; font-size: 12px; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.question { color: var(--red); font-weight: 600; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.example {background: #fdf7ea url("../images/gachdoc.png") center left / auto 100% no-repeat; padding: 8px 12px; font-size:2.5vw; font-style: italic; max-width:74%; margin:0 auto; margin-bottom: 14px; color:#6B5040;  border-radius:4px; position:relative}
.example.s1 {margin-top:4em}
.lined {
  width: 100%; min-height: 190px; resize: none; padding: 0 2px; font: inherit; font-size: 13px; line-height: 28px;
  color: var(--ink); background: transparent; border: 0;
  background-image: repeating-linear-gradient(transparent 0 27px, #cbb9a0 27px 28px);
}
.lined:focus { outline: none; }
[hidden] { display: none !important; }
.total-progress {color: var(--ink-dark)}
.decor-input { position: absolute; z-index: 1; pointer-events: none; opacity: .7; }
.decor-input.s1 {width: 24%; max-width:90px ;transform: rotate(-12deg); left:-20%; top: -35%; }
.decor-input.s2 {width:22%; max-width:70px; right:-16%; bottom: 0;}
.decor-input.s3 {max-width:30%; left:-28%; top: -2%;}

/* Voucher */
.wrap.voucher-page {padding:1em 1.6em}
.decor-input.s4 {max-width: 100px; width:15%; transform: rotate(25deg); right:-5%; top: 100px; opacity:1; }
.voucher {
  position: relative; color: var(--white); padding:1em 33% 1em 2.5em;
  background: url("../images/voucher-bg.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(2px 3px 4px rgba(59,36,22,.3));
  font-size:3vw;
}
.voucher .tag { font-size: 0.95em; letter-spacing: .4em; text-transform: uppercase; opacity:1; color:#FFB84D; line-height:1; white-space: nowrap; }
.voucher .amount { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; margin-top:-5px}
.voucher .amount .big { font-size: 2.6em; line-height:0.5; }
.voucher .amount small { font-size: 0.9em; line-height: 1.3; letter-spacing: .08em; padding-top: 5px;}
.voucher .note { font-size:0.6em; opacity: .9; margin: 3px 0; line-height:1.4; }
.code { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.35); border-radius: 8px; padding: 3px 4px; overflow: hidden; justify-content: space-between; position: relative; min-height:28px}
.code strong { flex: 1; font-family: var(--font-head); font-size:1em; letter-spacing: .02em; }
.code button { background: #e07a2a; color: #fff; border: 0; border-radius: 6px; padding:4px; font-weight: 600; font-size: 0.8em; position: absolute; right:4px; height: calc(100% - 8px); top:4px; line-height:1;}
.voucher .exp { display: flex; justify-content: space-between; font-size:0.7em; margin-top: 3px; opacity: .9; }
.voucher .exp a { color: #fff; }
.voucher-page .lead {margin-top:1em; padding-right:4em}
.voucher-page .btn {letter-spacing:0;}
#voucher-code {white-space:nowrap;}


/* Result postcard preview */
.preview { padding: 14px 12px; }
.preview .cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.preview .cols > div:first-child { border-right: 1px solid var(--red); padding-right: 10px; }
.preview .cols p { font-size: 9px; line-height: 1.5; color: var(--red-dark); }
.preview blockquote { margin: 0; font-size: 9px; line-height: 1.5; color: var(--ink); }
.preview .sign { text-align: center; font-size: 10px; font-weight: 600; color: var(--red); margin: 10px 0 0; }

.preview-img {position: relative; font-size:1.6vw; line-height: 1.1; font-weight: 600; overflow: hidden;}
.postcard-infos {display: flex; color: var(--red); position: absolute; z-index: 1; width: 90%; top:18%; left:7%}
  .left-msg {width:35%; padding-top:1em}
    .left-msg .user-name {font-weight:800}
  .right-msg {width:60%; position: relative; padding-left:4em; background: url("../images/gachdoc-2.webp") no-repeat 5% 0 / auto 100%}
.blockquote-wrap {padding:3.5em 0 4em; position: relative}
  .blockquote-wrap .icon-quote {position:absolute; width:2.6em; pointer-events: none;}
  .blockquote-wrap .icon-quote:nth-child(1) {top:0; left:-1em;  transform: rotate(180deg)}
  .blockquote-wrap .icon-quote:nth-child(2) {bottom:1em; right:0;}
.postcard-brand {position: absolute; bottom: 0; left:0; width: 100%; text-align: center; padding-bottom:1.5em; font-size:1.5em; text-transform: uppercase;}
  
.user-story {position:relative; color:#000;
/*   display: -webkit-box; */
/*   overflow: hidden; */
/*   max-height: 11em;  */
  white-space: wrap;
  overflow-wrap: break-word;
/* text-overflow: ellipsis;
   -webkit-line-clamp: 8;
  -webkit-box-orient: vertical; */
  cursor: pointer;
}
.pos-decor-1 {position: relative; z-index: 1; max-width:40%; transform: rotate(-10deg); margin:2em auto}
.pos-decor-2 {position: relative; z-index: 1; max-width:40%; display:inline-block; margin-top:-1.5em}
.text-right {text-align:right}
/* Story detail */
.story-body { font-size: 13px; line-height: 1.75; word-break: break-word; }

/* Utilities */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top:1em;}
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Popup */
.popup { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(115,62,18,.6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; backdrop-filter: blur(3px); font-size:14px}
.popup.is-open { opacity: 1; visibility: visible; }
.popup-box { position: relative; width: 96%; max-width: 420px; padding:1em; background: var(--paper); color: var(--ink); border-radius:1.2em; transform: translateY(30px); transition: transform .3s ease; }
.popup.is-open .popup-box { transform: translateY(0); }
.popup-close { position: absolute; left:0; right:0; margin:0 auto; bottom:-40px; width: 34px; height: 34px; padding: 0; border:2px solid #E4D7C4; background: none; color:#E4D7C4; font-size: 28px; line-height: 0; cursor: pointer; border-radius: 50%; padding-bottom:2px}
.popup-msg { margin: 0; font-family: var(--font-body); font-size: 1em; max-height:75vh; overflow-y: auto;}
.popup-login, .uservoucher-box {display:none;}
.popup-login.active, .uservoucher-box.active {display:block}
.popup .title {font-size: 28px}
  .popup-login .lead {margin:2em 0}
#popup-verify .popup-box, .popup-box.bg-paper {background: url("../images/bg-paper-min.webp") center center / 100% auto repeat}
#popup-verify .popup-box {min-height:400px}
.table-responsive {max-width: 100%; overflow-x: auto;}
  .table-responsive table {border-collapse: collapse}
  .table-responsive table th, .table-responsive table td {border:1px solid var(--brown); padding: 6px 8px; text-align: left}
.popup-msg p {word-break: break-word;}

#popup-error-msg {padding:0 0 1.5em}
    #popup-error-msg .title {padding-top:0.2em}
    .check-list p {font-weight:600; border-top:1px solid var(--ink); padding:1.2em 0 1.2em; margin:0 2.5em 0 2.5em; position: relative;}
      .check-list p::before {content:""; position: absolute; left:-2.5em; top:0; width:2em; height:100%; background: url(../images/tick-01.svg) no-repeat left 30% / 100% auto;}
     .check-list p:first-child {border:none;}

/* Desktop: keep phone column, show brand background */
@media (min-width: 561px) {
  body { padding:0; }
  .site { border-radius:0; overflow: hidden; /* min-height: calc(100vh - 48px); */ }
  .header { position: static; }
  .menu { left: 50%; right: auto; /* top: 24px; bottom: 24px; */ width: 100%; max-width: var(--max); transform: translateX(-50%); border-radius: 0; }
/*   .hero .copy p {font-size:17px;} */
  .title {font-size: 32px;}
  h1.title { font-size: 32px}
  h3.title { font-size: 24px}
  .voucher-page .title { font-size: 28px}
  .steps-box .step { font-size: 14px; }
  .post-head .title { font-size: 36px; }
  .voucher { font-size: 14px;}
  .example {font-size:11px}
  .preview-img {font-size:7.5px}
}
.pc-only, .pc-br br {display:none}
#home > .site, #gallery > .site, #story > .site {padding-bottom:25px;}

@media (min-width: 1024px) {
  .mb-only {display: none;}
  .site {max-width:1440px;min-height:calc(100vh - 136px);margin:0 auto; background: url(../images/bg-paper-pc-2.webp) center/ 100% auto repeat-y;}
  nav, .site .header {display:none !important}
  .pc-only, .pc-br br {display:block}
  .main-nav .header {display:flex; justify-content: space-between; font-family:var(--font-head); max-width:1440px; margin:0 auto; padding:0.5em 0; position:relative; max-height:70px;}
    .main-nav .header a {width:calc(100%/5); text-align:center; padding:0.5em 0; text-transform:uppercase; text-decoration:none; font-weight:700; font-size:clamp(12px, 1.1vw, 14px)}
    .main-nav a.logo img {display:inline-block; margin:0 auto; width:50%; height:auto; max-width:140px}
  .grid-2 {max-width: 960px; margin:0 auto}
    form.search {max-width: 660px; margin:0 auto 1em}
  .card {width:calc((100%/3) - 10px); height:310px;}
  .card .author, .card .content, .card .meta {padding-left:1.2em; padding-right:1.2em}
  .steps-box {max-width:1354px; margin:0 auto}
  .steps-box .step {top:24% !important; max-width:15%; font-size: clamp(8px, 0.86vw, 12px);}
  .steps-box .step p {font-size:1em;}
  .steps-box .step:nth-child(1) {left:9%}
  .steps-box .step:nth-child(2) {left:43%; padding-right:2%}
  .steps-box .step:nth-child(3) {left:77%; padding-right:5%}
  .big-s {display:inline-block; font-size:1em;}
  .title {font-size: 40px;}
  h1.title, .voucher-page .title, .popup .title {font-size: clamp(28px, 3.2vw, 46px);}
  h3.title { font-size: 24px}
  .btn {font-size:1.3em;}
  .hero .copy {width:40%; text-align: left; right:5%; top: 30%; left:auto}
  .hero .copy p {padding:0; font-size:clamp(10px, 1.25vw, 17px)}
/*   .hero .swiper-slide::after {width:50%; height:100%; right:0; left:auto; background: linear-gradient(90deg,rgba(30, 18, 8, 0) 50%, rgba(30, 18, 8, 0.65) 100%);} */
   .hero .swiper-slide::after {display: none;}
  .swiper-pagination.dots {width: 60%; bottom:6%}
  .pc-flex {display:flex; width:100%; padding:2em 4em; align-items: flex-start;}
  .pc-flex > .content-wrap {width: 50%;}
  .pc-flex > .title {padding:20px 0 0 20px; width:45%}
  .pc-flex > .post-head {width:45%;}
  .pc-flex > form {width:55%;}
  .stories.pc-flex > * {width:50%}
    .mw550 {max-width:550px;}
  #voucher-code, #uservoucher-code {font-size: clamp(12px, 1vw, 18px);}
  .wrap-kechuyen.pc-flex {padding:4em 2em;}
  .wrap-kechuyen {position: relative; background-image: url(../images/stamp-top-pc.webp), url(../images/stamp-bottom-pc.webp), url(../images/stamp-body-pc.webp); background-repeat: no-repeat, no-repeat, repeat-y; background-position: top center, bottom center, top right; background-size: 100% auto}
  .post-head {margin:0; padding:0 2em}
  .post-head .title {font-size: clamp(28px, 3.2vw, 46px); top:5%; left:25%}
  .example {max-width:66%; padding:1em 2em}
  .decor-input.s3 {width:25%; max-width:100px; transform: rotate(-18deg); left:-20%}
  .preview-img {font-size: clamp(7.5px, 0.8vw, 10px);}
  .decor-input.s4 {display: none;}
  .feature-top {max-width:800px; margin:0 auto; position: relative;}
    .rule-title {position: relative; font-size:1.8em;}
    .rule-title::before, .rule-title::after {width:45%;}
    .rule-title::before {left:0}
    .rule-title::after {right:0}
    .kicker {font-size:1em;}
  .divider {display: none;}
  .wrap-all {padding-bottom:2em;}
  footer {max-width: 1440px; margin:0 auto}
  .popup-close {bottom:auto; top:-45px; right:0; left:auto}
  .popup-box {max-width:1140px;}
  .popup-box .pc-flex {padding:1em; overflow: hidden;}
  .popup-title {width:40%}
  .popup-content {width:60%; max-height:70vh; overflow-y: auto; padding-right:12px;}
  .popup-content.mw500 {max-width:500px;}
  .voucher {font-size: clamp(12px, 1.4vw, 18px);}
  .pc-flex .popup-title {padding-top:0}
  #popup-error-msg {padding:2em 0}
    #popup-error-msg > * {width:50%}
    #popup-error-msg .title {padding-top:0.2em}
    .check-list p {font-weight:600; border-top:1px solid var(--ink); padding:1.2em 0 1.2em; margin:0 2.5em 0 2.5em; position: relative;}
      .check-list p::before {content:""; position: absolute; left:-2.5em; top:0; width:2em; height:100%; background: url(../images/tick-01.svg) no-repeat left 30% / 100% auto;}
     .check-list p:first-child {border:none;}
  .wrap-steps {background-image: url("../images/decor-01.webp"),url("../images/decor-02.webp"),url("../images/decor-03.webp") ; background-size:5% auto,6% auto,8% auto; background-repeat: no-repeat; background-position: left 20px, right top, left bottom;}

  .top3 .author,
  .top3 p { font-size: clamp(11px, 1vw, 16px); font-weight:600; }
  .code {min-height:32px;}

  .related-post {margin-top:2em;}
  #popup-verify .popup-box, .popup-box.bg-paper {background: url("../images/bg-paper-pc-2.webp") center / 100% auto repeat;}
  .popup-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0 rgba(0,0,0,0.3);
    border-radius: 10px;
    background-color: #733E12;}
  .popup-content::-webkit-scrollbar {
    width: 10px;
    background-color: #F5F5F5;}
  .popup-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
    background-color: #E11F26;
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 560px) {
  input, textarea {font-size: 16px !important}
  .text-inline {white-space: nowrap; font-size:3.5vw}
}

@media (max-width: 1023px) {
  .card:nth-child(2) {margin-top:3em;}
  #submitstory .back-or-not > .back {display:none !important}
  #submitstory .back-or-not > .logo {display:block}
  #submitstory .back-or-not.step-2 > .back {display: block !important;}
  #submitstory .back-or-not.step-2 > .logo {display: none;}
}
/* Aria */
[aria-disabled="true"] {pointer-events: none; }
[aria-disabled="false"] {pointer-events: auto; }

.og-thb.hidden {display:none; position: fixed; width:1200px; height:630px; top:-1000px; left:-1250px; z-index:-100; pointer-events: none; font-size:18px}
.og-thb.hidden .pos-decor-2 {width:30%;}
.og-thb.hidden .right-msg {padding-left: 5em;}
.og-thb.hidden .blockquote-wrap {margin-top:-2em;}
.og-thb.hidden .postcard-brand {padding-bottom:0.8em;}

.swiper .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.7,0,.3,1);
}

#popup-endgame {padding:0; background: rgba(85, 44, 11, 0.6)}
/* .popup-ended {display:none; position: fixed; inset: 0; z-index: 100; background: rgba(115,62,18,.6); backdrop-filter: blur(3px);} */
.ended-wrap {display: flex; align-items: center; justify-content: center; height: 100%; padding: 16px; width:96%; max-width: 800px; margin: 0 auto; position:relative}
#popup-endgame picture img {width: 100%; display: block;}
.ended-msg {position: absolute; font-weight: 600; font-size:clamp(24px, 1.65vw, 24px); padding:1em 5em 0; color:#5f3002}
@media (max-width: 767px) {
  .ended-wrap {max-width: 420px;}
  .ended-msg {font-size:clamp(8px, 3.4vw, 16px)}
  #popup-endgame picture img {max-width:700px}
  .ended-msg .br-pc br {display:none}
}
@media (min-width: 768px) {
.ended-msg .br-mb br {display:none}
}
body.ended #popup-endgame {pointer-events: none}
body.ended {overflow: hidden!important}