:root { --ink: #3b2b22; --ink-2: #6b5244; --bg: #f7f1e7; --card: #fffcf6; --line: #e3d7c4; --cream: #ead7bd; --brown: #8a4f1c; --mallow: #a9682b; --green: #4f7a5a; --blush: #ec9ab1; --sun: #d9a55a; --on-dark: #f7f1e7; }
@media (prefers-color-scheme: dark) { :root { --ink: #f2e9dd; --ink-2: #cbb9a6; --bg: #1c1613; --card: #2b221d; --line: #3d322b; --brown: #e3a868; --mallow: #d9954f; --green: #6f9c79; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif; line-height: 1.6; }
h1, h2, h3, .brand, .btn, .item span, .marquee { font-family: Kanit, "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; text-decoration: none; line-height: 1.1; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-2); }
.top-cta { display: flex; gap: 8px; flex-shrink: 0; }
.top-cta .btn { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 36px 36px 40px; margin-top: 4px; border-radius: 32px; color: #3b2b22; overflow: clip;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 26px 26px, linear-gradient(140deg, #f3e6d3 0%, #ead7bd 55%, #e2cba9 100%); }
.hero .tag, .page-hero .tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #3b2b22; color: #f7f1e7; font-size: .85rem; }
.hero h1 { margin: 14px 0 10px; font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.12; }
.hero h1 em { font-style: normal; color: #8a4f1c; }
.hero p { margin: 0 0 18px; font-size: 1.08rem; max-width: 34em; }
.order { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn:not(.btn-line) { background: rgba(255,253,248,.8); border-color: rgba(59,43,34,.2); color: #3b2b22; }
.social { margin-top: 14px; font-size: .95rem; }
.social a { margin-right: 14px; }
.hero-art { position: relative; width: 100%; max-width: 480px; justify-self: center; }
.stage { position: relative; width: 100%; aspect-ratio: 1; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; opacity: 0; transition: opacity .6s ease; }
.stage.is-3d canvas { opacity: 1; }
.stage-fallback { position: absolute; inset: 12% 14% 8%; transition: opacity .4s ease; }
.stage-fallback svg { width: 100%; height: auto; display: block; }
.stage.is-3d .stage-fallback { opacity: 0; }
.hero-photo { position: absolute; left: -6px; bottom: -8px; width: 38%; margin: 0; padding: 7px 7px 9px; background: #fffdf8; border-radius: 8px; box-shadow: 0 10px 24px rgba(59,43,34,.25); transform: rotate(-7deg); z-index: 2; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hero-photo figcaption { margin-top: 5px; font-family: Kanit, sans-serif; font-size: .8rem; text-align: center; color: #3b2b22; }
.sticker { position: absolute; z-index: 3; top: -26px; left: -18px; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--blush); color: #fff; font-family: Kanit, sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.05; text-align: center; transform: rotate(-14deg); border: 3px dashed rgba(255,255,255,.85); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.marquee { margin: 22px 0 0; overflow: hidden; border-radius: 999px; background: #3b2b22; color: #f7f1e7; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee div { display: flex; width: max-content; gap: 18px; padding: 10px 0; white-space: nowrap; animation: mq 60s linear infinite; }
.marquee i { font-style: normal; color: var(--sun); }
@keyframes mq { to { transform: translateX(-50%); } }
section { padding: 36px 0 8px; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 6px; line-height: 1.25; }
.lead { margin: 0 0 18px; color: var(--ink-2); }
.menu-cat h3 { margin: 18px 0 10px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.menu-cat h3::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 14px; }
.grid { perspective: 900px; }
.item { position: relative; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transform: rotateX(var(--rx, var(--grx, 0deg))) rotateY(var(--ry, var(--gry, 0deg))); transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.item.is-tilt { transition: transform .08s linear, box-shadow .2s ease; box-shadow: 0 16px 30px rgba(59,43,34,.18); }
.item::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.45), transparent 55%); mix-blend-mode: soft-light; }
.item.is-tilt::after { opacity: 1; }
.item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1e7d8; }
.item span { display: block; padding: 10px 12px 12px; font-size: .98rem; line-height: 1.3; }
.item-text { display: grid; place-items: center; text-align: center; min-height: 100%; background: repeating-linear-gradient(45deg, var(--card) 0 14px, var(--bg) 14px 28px); }
.item-text .nut { font-size: 2.6rem; padding: 18px 0 0; }
.item small { display: block; font-family: "Noto Sans Thai", sans-serif; font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how-card { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.how-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.how-card p { margin: 0 0 12px; color: var(--ink-2); }
.courts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.courts a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.courts a::before { content: "📍"; }
.courts a:hover { border-color: var(--mallow); }
.learn { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px 26px; border-radius: 26px; background: var(--green); color: #fffaf2; }
.learn h2 { color: #fffaf2; }
.learn p { margin: 0 0 14px; opacity: .92; }
.learn .btn { background: #fffaf2; color: #2f4a36; border-color: #fffaf2; }
.learn svg { width: 100%; height: auto; display: block; }
footer { margin: 40px 0 0; padding: 26px 0 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
footer a { margin-right: 14px; }
.boxsec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 30px 32px; border-radius: 30px; background: linear-gradient(160deg, #f6dfe6 0%, #f3e6d3 60%); color: #3b2b22; overflow: clip; }
.boxsec h2 { color: #3b2b22; }
.boxsec p { color: #5d4536; }
.box-scene { --s: 210px; --open: 0; height: calc(var(--s) * 2.25); display: grid; place-items: end center; padding-bottom: calc(var(--s) * .25); perspective: 1000px; }
.box { position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(calc(-34deg + var(--open) * 22deg)); }
.face { position: absolute; inset: 0; background: #c99c6b linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.08)); border: 2px solid #8a5a32; border-radius: 6px; }
.f-front { transform: translateZ(calc(var(--s) / 2)); display: grid; place-items: center; }
.f-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background-color: #b88a5a; }
.f-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background-color: #b88a5a; }
.f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background-color: #9c7048; }
.f-front::before, .f-right::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; transform: translateX(-50%); background: rgba(236, 154, 177, .85); }
.f-front img { position: relative; width: 46%; height: auto; border-radius: 50%; border: 4px solid #fffdf8; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.lid { position: absolute; left: -3%; width: 106%; height: 106%; top: 0; transform-origin: 50% 0; transform: translateZ(calc(var(--s) / -2 - 3px)) rotateX(calc(90deg + var(--open) * 112deg)); background: #d6aa78 linear-gradient(160deg, rgba(255,255,255,.22), rgba(0,0,0,.06)); border: 2px solid #8a5a32; border-radius: 6px; }
.lid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 16%; transform: translateX(-50%); background: rgba(236, 154, 177, .9); }
.treat { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; margin: -22% 0 0 -22%; border-radius: 50%; overflow: hidden; border: 3px solid #fffdf8; box-shadow: 0 6px 14px rgba(0,0,0,.25); transform: translate3d(var(--dx), calc(var(--s) * (.05 - var(--open) * var(--lift))), 0) rotate(var(--rot)); }
.treat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t1 { --dx: -34%; --lift: .62; --rot: -10deg; }
.t2 { --dx: 34%; --lift: .7; --rot: 9deg; }
.t3 { --dx: 0%; --lift: .95; --rot: -3deg; z-index: 2; }
@media (max-width: 860px) {
  .boxsec { grid-template-columns: minmax(0, 1fr); padding: 26px 18px; gap: 10px; text-align: center; }
  .box-scene { --s: 170px; order: -1; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 26px 18px 30px; gap: 26px; border-radius: 26px; }
  .hero-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .top-cta .btn:not(.btn-line) { display: none; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.1rem; } .brand img { width: 44px; height: 44px; }
  .brand small { display: none; }
  .top-cta .btn { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
  .sticker { width: 66px; height: 66px; font-size: .85rem; left: -10px; top: -20px; }
  .hero-photo { width: 40%; }
  .learn { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .learn > div:first-child { width: 120px; margin: 0 auto; }
  .order .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .marquee div { animation: none; } .btn, .item, .stage canvas, .stage-fallback { transition: none; } }
.crumbs { font-size: .9rem; color: var(--ink-2); margin: 4px 0 10px; }
.crumbs a { color: inherit; }
.page-hero { padding: 30px 32px; border-radius: 30px; color: #3b2b22; background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.55) 0 2px, transparent 3px) 0 0 / 26px 26px, linear-gradient(140deg, #f3e6d3 0%, #ead7bd 55%, #e2cba9 100%); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; }
.page-hero h1 { margin: 10px 0 12px; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.2; }
.page-hero h1 em { font-style: normal; color: #8a4f1c; }
.page-hero p { margin: 0 0 14px; font-size: 1.05rem; }
.page-hero img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 28px rgba(59,43,34,.22); transform: rotate(2deg); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.facts li { margin: 0; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.facts strong { display: block; font-family: Kanit, sans-serif; font-size: 1.05rem; margin-bottom: 4px; }
.item p { margin: 0; padding: 0 12px 14px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compare div { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.compare h3 { margin: 0 0 6px; }
.compare p { margin: 0; color: var(--ink-2); }
.addr { color: var(--ink-2); }
.more { font-weight: 600; }
@media (max-width: 760px) { .page-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; } .page-hero img { max-width: 320px; margin: 0 auto; display: block; } .compare { grid-template-columns: minmax(0, 1fr); } }
