
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;600;700&display=swap');
:root{
  --wine:#7B2D26;
  --wine-600:#6a2621;
  --rosebg:#fdf5f3;
  --rosebox:#ffe7e2;
  --gold:#e5c662;
  --gold-700:#b9922d;
  --text:#3f1f1c;
  --card:#ffffffcc;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Noto Sans Thai', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #fff 0, #fff7f6 35%, #fef1ef 60%, #fdeae7 100%),
    linear-gradient(180deg, #ffffff 0%, var(--rosebg) 100%);
}
.container{max-width:980px;margin:18px auto 28px;padding:12px}

.header{text-align:center;margin-bottom:8px}
.logo-wrap{width:140px;height:140px;margin:0 auto;display:flex;align-items:center;justify-content:center}
.logo-wrap img{width:100%;height:100%;object-fit:contain}
.title{margin-top:10px;line-height:1.35}
.title .t1{font-weight:700;font-size:1.5rem;color:var(--wine)}
.title .t2{font-weight:600;font-size:1.05rem;color:var(--gold-700)}
.date{margin-top:6px;font-size:.95rem;color:#8a6762}

.section-title{
  margin:20px auto 10px;
  width:max-content;
  background:linear-gradient(180deg,#fffdf0,#fff1b8);
  border:1.5px solid var(--gold);
  color:#6b560a;
  font-weight:700;
  padding:6px 14px;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(203,162,53,.18);
}

/* === GOLD PANEL (กรอบสวยงามรอบเซคชัน) === */
.panel{
  border:2px solid var(--gold);
  border-radius:20px;
  padding:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.5));
  box-shadow:0 10px 30px rgba(123,45,38,.10);
}

.grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:6px}
.card{
  background: var(--card);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(123,45,38,.10);
  backdrop-filter: blur(2px);
}
.card h2{margin:0 0 8px 0;font-size:1.1rem;color:var(--wine)}

.btn{appearance:none;border:0;cursor:pointer;
  background: linear-gradient(180deg, #ffe7e2, #f9c9c4);
  border:1.5px solid var(--gold);
  color:#6b1f1a;font-weight:700;padding:10px 14px;border-radius:12px;width:100%;
  box-shadow:0 6px 18px rgba(203,162,53,.25);
  transition:transform .03s ease, box-shadow .2s ease;
}
.btn:active{transform:translateY(1px) scale(.998)}

.results{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.box{
  background:white;border:1.5px solid var(--rosebox);border-radius:12px;padding:10px 14px;
  text-align:center;min-height:44px;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:1.35rem;color:var(--wine);
  box-shadow:inset 0 0 0 3px #fff5f4;
}
.big{font-size:1.65rem;border-color:#f6c7c1;box-shadow:inset 0 0 0 3px #ffeceb}
.badge{margin-top:12px;width:82px;height:82px;border-radius:50%;border:2px solid var(--gold);
  display:flex;align-items:center;justify-content:center;
  background: radial-gradient(circle at 50% 40%, #fff 0%, #fff9f1 70%, #ffeaa2 100%);
  color:#6b560a;font-weight:700;font-size:1.35rem;margin-left:auto;margin-right:auto;
}

.limit,.note{text-align:center;font-size:.95rem;color:#8a6762;margin-top:10px}

.disclaimer{
  margin-top:24px;font-size:.95rem;padding:14px 16px;border-left:4px solid var(--gold);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  border-radius:12px;color:#6b4a46
}
.footer-space{height:8px}
