/* Mẫu ĐĨA MEN LAM (dia-gom, thêm 07/10/2026 — đi cặp giao diện "gomlam"). Bìa: đĩa sứ trắng ngà, vành hoa cúc dây vẽ bằng
   màu nhấn của giao diện (men lam khi dùng giao diện Men lam), chữ lồng + tên khách giữa lòng đĩa. Chạm -> đĩa xoay nhanh như
   trên bàn xoay gốm rồi chậm dần (0–1s), nghiêng ra và lòng đĩa phóng lớn tan thành thiệp (1,15s). */
.ic--dia-gom {
  --ic-out-delay: 1.14s;
  --dg-c: var(--accent-ink, var(--accent));
  --dg-rim: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><circle cx='100' cy='100' r='98' fill='none' stroke='black' stroke-width='2.4'/><circle cx='100' cy='100' r='94.5' fill='none' stroke='black' stroke-width='.8'/><circle cx='100' cy='100' r='81' fill='none' stroke='black' stroke-width='.8'/><circle cx='100' cy='100' r='78.5' fill='none' stroke='black' stroke-width='2'/><g transform='rotate(0 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(9 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(18 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(27 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(36 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(45 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(54 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(63 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(72 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(81 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(90 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(99 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(108 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(117 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(126 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(135 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(144 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(153 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(162 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(171 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(180 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(189 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(198 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(207 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(216 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(225 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(234 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(243 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(252 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(261 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(270 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(279 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(288 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(297 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(306 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(315 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(324 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(333 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g><g transform='rotate(342 100 100)'><path d='M100 17.6c-3.4-2.6-3.8-6.4 0-10.2 3.8 3.8 3.4 7.6 0 10.2z' fill='black'/><circle cx='100' cy='12.4' r='1.1' fill='white'/></g><g transform='rotate(351 100 100)'><path d='M95.6 13.6q4.4-4 8.8 0M97.4 16.6q2.6-2.2 5.2 0' fill='none' stroke='black' stroke-width='.9'/></g></svg>");
}
.ic--dia-gom .ic-env-btn { width: min(330px, 84vw, calc(100vh - 150px)); aspect-ratio: 1; }
.dg, .dg-plate, .dg-plate > span, .dg-medal > span { position: absolute; display: block; }
.dg { inset: 0; perspective: 900px; }
.dg-plate { inset: 0; border-radius: 50%; background: radial-gradient(circle, #fdfcf6 56%, #efece2 66%, #fdfcf6 80%, #f3f0e6 100%);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .5), inset 0 -8px 18px rgba(0, 0, 0, .06);
  transition: transform 1s cubic-bezier(.15, .6, .25, 1) 0s, opacity .35s ease 1.05s; }
.dg-rim { inset: 0; border-radius: 50%; background: var(--dg-c); -webkit-mask: var(--dg-rim) center / 100% 100% no-repeat; mask: var(--dg-rim) center / 100% 100% no-repeat; }
.dg-plate > .dg-center { inset: 24% 22% auto; display: block; text-align: center; }
.dg-medal > .dg-center { inset: 0; display: grid; place-items: center; }
.dg-center > span { display: inline-flex; align-items: center; font: var(--name-style, normal) 400 2rem/1 var(--f-name, Georgia, serif); color: var(--dg-c); }
.dg-center i, .dg-medal i { font-style: normal; font-size: .55em; margin: 0 3px; opacity: .8; }
.ic--dia-gom .ic-env-to { left: 26%; right: 26%; top: 50%; justify-items: center; text-align: center; transition: opacity .15s; }
.ic--dia-gom .ic-env-to b { font-size: clamp(1.1rem, 4.6vw, 1.45rem); }
.ic--dia-gom:not(.is-opening) .dg-plate { animation: dg-idle 8s ease-in-out infinite alternate; }
@keyframes dg-idle { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
/* Mở: xoay 2 vòng chậm dần, nghiêng, phóng */
.ic--dia-gom.is-opening .dg-plate { transform: rotateX(28deg) rotate(720deg) scale(1.08); }
.ic--dia-gom.is-opening .ic-env { animation-name: dg-out; }
@keyframes dg-out { to { opacity: 0; transform: scale(1.35); } }
/* Thiệp mở: đĩa nhỏ chữ lồng trên đỉnh, góc bo tròn, dải sóng men lam ở chân */
.ic--dia-gom .ic-card { margin-top: 60px; padding-top: 78px; border-radius: 26px; box-shadow: inset 0 0 0 8px var(--ic-card-bg), inset 0 0 0 9px var(--ic-line), 0 50px 90px -40px rgba(0, 0, 0, .5); }
.ic--dia-gom.is-open .ic-card { animation: dg-card-in .8s var(--ic-ease) both; }
@keyframes dg-card-in { from { opacity: .2; transform: scale(.88) rotate(-6deg); } 25% { opacity: 1; } to { opacity: 1; transform: none; } }
.ic--dia-gom .ic-mono { display: none; }
.ic--dia-gom .ic-card > .dg-medal { position: absolute; left: 50%; top: -58px; width: 116px; height: 116px; margin-left: -58px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, #fdfcf6 56%, #efece2 66%, #fdfcf6 80%); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .45); }
.dg-medal .dg-center > span { display: inline-flex; align-items: center; font: var(--name-style, normal) 400 1.5rem/1 var(--f-name, Georgia, serif); color: var(--dg-c); }
.ic--dia-gom.is-open:not(.is-instant) .dg-medal { animation: dg-medal-in 1s cubic-bezier(.2, .8, .2, 1) both .1s; }
@keyframes dg-medal-in { from { transform: rotate(-200deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ic--dia-gom .dg-waves { height: 24px; margin: 22px -10px -8px; opacity: .55; background: var(--dg-c);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='24'><g fill='none' stroke='black' stroke-width='1.4'><path d='M0 24a24 24 0 0 1 48 0'/><path d='M8 24a16 16 0 0 1 32 0'/><path d='M16 24a8 8 0 0 1 16 0'/></g></svg>") 0 0 / 48px 24px;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='24'><g fill='none' stroke='black' stroke-width='1.4'><path d='M0 24a24 24 0 0 1 48 0'/><path d='M8 24a16 16 0 0 1 32 0'/><path d='M16 24a8 8 0 0 1 16 0'/></g></svg>") 0 0 / 48px 24px; }
.ic--dia-gom .ic-env, .ic--dia-gom .dg-medal {
  /* 07/10 (QA-NT-01/03): đĩa sứ luôn trắng ngà -> chữ/chữ lồng trên đĩa màu tối cố định. */
  --ink: #2b2521; --muted: #4a413a; --ic-to-small: #4a413a; --ic-to-name: #2b2521; --dg-c: var(--ic-acc-light); color: #2b2521;
}
/* QA-NT-14: nút "Chạm để mở thiệp" nằm trên nền giao diện (có thể tối) nhưng thừa hưởng chữ tối của đĩa -> nền giấy sứ cố định. */
.ic.ic--dia-gom .ic-env-hint { background: #fdfcf6; color: #2b2521; box-shadow: 0 0 0 1px rgba(43, 37, 33, .18), 0 8px 18px -10px rgba(0, 0, 0, .45); }
/* QA-NT-13 + BA P1-13: xoay 1 vòng; xoay ngang: bỏ chữ lồng trong lòng đĩa, nhường chỗ cho tên khách 3 dòng. */
.ic--dia-gom.is-opening .dg-plate { transform: rotateX(28deg) rotate(360deg) scale(1.08); }
.ic--dia-gom .ic-env-to { left: 21%; right: 21%; }
@media (max-height: 500px) {
  .dg-plate > .dg-center { display: none; }
  .ic--dia-gom .ic-env-to { top: 30%; }
  .ic.ic--dia-gom .ic-env-to b { -webkit-line-clamp: 3; line-clamp: 3; font-size: 1.25rem !important; line-height: 1.12; }
}
