/* ── trang sảnh ─────────────────────────────────────────────── */
html.sanh body > *:not(#sanh):not(script) { display: none !important; }
html.sanh body { overflow: hidden; height: 100svh; }
#sanh { position: fixed; inset: 0; z-index: 100; overflow: auto; display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(125% 95% at 50% -12%, var(--desk-hi), var(--desk) 52%, var(--desk-lo) 100%); }
#sanh[hidden] { display: none; }
.s-giay { width: min(100%, 400px); background: linear-gradient(168deg, var(--paper), var(--paper-lo));
  border-radius: 6px; padding: 30px 22px 26px; transform: rotate(-.6deg);
  box-shadow: 0 1px 0 rgba(96, 66, 28, .08), 0 18px 40px rgba(96, 66, 28, .2); text-align: center; }
.s-giay > img { width: 96px; margin: 0 auto 22px; animation: s-len .8s var(--pop) both; }
.s-giay > p { font-family: var(--hand); color: var(--soft); font-size: 15px; margin-bottom: 22px;
  font-variation-settings: "BNCE" 10, "INFM" 20; }
.s-nut { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 14px; padding: 14px 16px;
  border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer;
  font-family: var(--hand); font-weight: 700; font-size: 18px; text-align: left; box-shadow: 0 4px 0 var(--ink);
  transition: transform .2s var(--pop); animation: s-len .7s var(--pop) both; touch-action: manipulation;
  font-variation-settings: "BNCE" 12, "INFM" 24; }
.s-nut:nth-of-type(1) { animation-delay: .1s; } .s-nut:nth-of-type(2) { animation-delay: .2s; } .s-nut:nth-of-type(3) { animation-delay: .3s; }
.s-nut:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.s-nut .ic { flex: 0 0 auto; width: 46px; height: 40px; display: grid; place-items: center; }
.s-nut .doi { display: flex; gap: 0; } .s-nut .doi canvas { width: 27px; height: 39px; image-rendering: pixelated; }
.s-nut small { display: block; font-family: var(--ui); font-weight: 400; font-size: 13px; color: var(--soft); }
#s-doc .ic svg { width: 40px; }
#s-thu { background: var(--coral); color: #fff; border-color: #fff; box-shadow: 0 5px 0 var(--coral-d), 0 10px 20px rgba(96, 66, 28, .22);
  animation: s-len .7s var(--pop) .3s both, s-nhun 2.6s ease-in-out 1.2s infinite; }
#s-thu b { font-size: 1.25em; }
#s-thu.het { animation: s-len .7s var(--pop) .3s both; }
@keyframes s-len { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes s-nhun { 50% { transform: translateY(-4px); } }

/* hộp thư */
#hop { position: fixed; inset: 0; z-index: 110; display: none; }
#hop.mo { display: block; }
#hop .nen { position: absolute; inset: 0; background: rgba(51, 62, 83, .45); animation: s-hien .2s; }
#hop .khung { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(92vw, 440px);
  max-height: min(84svh, 720px); display: flex; flex-direction: column; background: var(--paper); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(30, 20, 10, .35); animation: s-len .3s var(--pop); }
#hop .dong { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; color: var(--soft); cursor: pointer; z-index: 2; }
#hop .ruot { overflow: auto; padding: 24px 20px 22px; text-align: center; }
#hop h2 { font-family: var(--hand); font-size: 22px; margin-bottom: 6px; font-variation-settings: "BNCE" 14, "INFM" 30; }
#hop .note { font-family: var(--hand); color: var(--soft); font-size: 15px; margin-bottom: 16px; }
#hop .trong { color: var(--soft); margin: 12px 0; }
#mk { -webkit-text-security: disc; display: block; margin: 0 auto 14px; width: 170px; text-align: center; font: 700 30px/1 var(--ui); letter-spacing: .35em;
  padding: 10px 0 10px .35em; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); }
#mk.sai { border-color: var(--coral); animation: s-rung .35s; }
@keyframes s-rung { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes s-hien { from { opacity: 0; } }
.nut.chinh { border: 0; border-radius: 12px; background: var(--coral); color: #fff; font: 700 17px var(--hand); padding: 12px 22px; box-shadow: 0 4px 0 var(--coral-d); cursor: pointer; }
.ds { list-style: none; text-align: left; margin-top: 12px; }
.la { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin-bottom: 10px; border: 2px solid #e6d8bd; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.la b { font-family: var(--hand); font-size: 16px; } .la small { display: block; color: var(--soft); font-size: 13px; }
.la.moi { border-color: var(--coral); } .la.moi b::after { content: ' ●'; color: var(--coral); }
.la .bi { width: 34px; height: 26px; flex: none; border-radius: 4px; background: var(--paper-lo); border: 2px solid var(--ink); position: relative; }
.la .bi::after { content: ''; position: absolute; left: 3px; right: 3px; top: 2px; height: 10px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: skewY(-28deg) translateY(-3px); }
.lui { border: 0; background: none; color: var(--soft); font: 14px var(--ui); cursor: pointer; display: block; margin-bottom: 8px; }
.giay { text-align: left; font-family: var(--hand); font-size: 17px; line-height: 1.75; font-variation-settings: "BNCE" 6, "INFM" 18; user-select: text; }
.giay h3 { font-size: 19px; margin-bottom: 8px; } .giay p { margin-bottom: 12px; } .giay small { color: var(--soft); font-family: var(--ui); }
