:root {
  --orange: #ff9f19;
  --orange-deep: #f27e13;
  --orange-light: #ffb53b;
  --cream: #fff5df;
  --red: #fa3e26;
  --ink: #7d3705;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--cream);
  background: #ff9f19;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  overflow-x: hidden;
}
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 3px solid #542403; outline-offset: 3px; }

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 72px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 218, 121, .45), transparent 28%),
    linear-gradient(145deg, var(--orange-light), var(--orange) 43%, var(--orange-deep));
}

.amulet {
  --design-width: min(100vw, calc(100dvh * .64463), 553px);
  position: relative;
  width: min(100%, 560px);
  min-height: min(920px, calc(100dvh - 48px));
  display: flex;
  flex-direction: row;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--orange);
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(255,255,255,.075) 39% 48%, transparent 49%),
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.09) 0 7%, transparent 7.5%),
    linear-gradient(45deg, transparent 47%, rgba(255,255,255,.065) 48% 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(255,255,255,.065) 48% 52%, transparent 53%);
  background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px;
  box-shadow: 0 25px 70px rgba(126, 60, 2, .3);
}

.amulet::before, .amulet::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 154px;
  height: 154px;
  border: 2px solid rgba(255, 245, 223, .8);
  border-radius: 42% 58% 50% 50%;
}
.amulet::before { top: -59px; left: -61px; }
.amulet::after { top: -59px; right: -61px; }

.ornament { position: relative; z-index: 1; height: 58px; flex: 0 0 58px; }
.ornament::before, .ornament::after {
  content: "";
  position: absolute;
  top: 16px;
  height: 29px;
  width: calc(50% - 65px);
  border-top: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
}
.ornament::before { left: 28px; border-radius: 0 0 0 22px; }
.ornament::after { right: 28px; border-radius: 0 0 22px 0; }
.ornament--bottom { transform: scaleY(-1); }

.amulet__frame {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: -26px 22px;
  padding: clamp(36px, 7vw, 58px) clamp(24px, 7vw, 54px) 30px;
  border: 2px solid var(--cream);
  outline: 1px solid rgba(255,245,223,.7);
  outline-offset: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.amulet__header { letter-spacing: .04em; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(25px, 4vw, 35px); letter-spacing: .07em; line-height: 1.25; }
.flower-mark {
  width: 48px; height: 48px; margin: clamp(30px, 6vh, 56px) 0 22px; position: relative;
  transform: rotate(45deg);
}
.flower-mark span { position: absolute; inset: 0; border: 3px solid var(--red); border-radius: 70% 0 70% 0; }
.flower-mark span:nth-child(2) { transform: rotate(45deg); }
.flower-mark span:nth-child(3) { transform: rotate(90deg); }
.flower-mark span:nth-child(4) { transform: rotate(135deg); }

.message { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 200px; width: 100%; margin: auto 0; }
.message__label { margin: 0 0 17px; color: #fff0c9; font-weight: 800; font-size: clamp(15px, 3vw, 20px); letter-spacing: .09em; }
.message__text { position: relative; z-index: 2; margin: 0; font-weight: 750; font-size: clamp(25px, 5.6vw, 40px); line-height: 1.58; text-wrap: balance; text-shadow: 0 2px 0 rgba(168,65,0,.14); transition: opacity .22s ease, transform .22s ease; }
.message__text.is-changing { opacity: 0; transform: translateY(7px); }
.message__text[dir="rtl"] { direction: rtl; }

.actions { display: grid; width: min(100%, 300px); gap: 12px; margin: 30px 0; }
.button { min-height: 45px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; letter-spacing: .05em; transition: transform .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button--gold { background: #fff0c9; color: var(--ink); border-color: #fff7e4; }
.button--light { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: rgba(255,255,255,.13); color: white; border-color: rgba(255,255,255,.8); }
.button--light svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.button--outline { background: transparent; color: var(--ink); border-color: rgba(125,55,5,.6); }
.amulet__footer { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: clamp(17px, 3vw, 24px); letter-spacing: -.03em; }
.brand-flower { font-size: 1.25em; color: #fff0c9; }

.language-picker { position: fixed; top: 16px; right: 16px; z-index: 10; }
.language-picker select { min-height: 36px; border: 1px solid rgba(255,255,255,.75); border-radius: 8px; padding: 0 32px 0 11px; color: var(--cream); background: rgba(115,48,0,.24); backdrop-filter: blur(8px); }
.language-picker option { color: #4d2607; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.effect-lab-toggle {
  position: fixed; z-index: 35; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: var(--cream); background: rgba(89,36,0,.86);
  box-shadow: 0 10px 30px rgba(84,36,3,.28); backdrop-filter: blur(10px); font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.effect-lab-toggle:hover { transform: translateY(-2px); background: rgba(69,27,0,.94); box-shadow: 0 13px 35px rgba(84,36,3,.36); }
.effect-lab-toggle:active { transform: scale(.98); }
.effect-lab-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.effect-lab {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px);
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow: auto; overscroll-behavior: contain;
  padding: 20px; border: 1px solid rgba(255,255,255,.84); border-radius: 24px; color: var(--ink); background: rgba(255,245,223,.96);
  box-shadow: 0 22px 70px rgba(74,27,0,.38); backdrop-filter: blur(18px); animation: lab-enter .22s ease-out both;
}
.effect-lab[hidden] { display: none; }
.effect-lab__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.effect-lab__eyebrow { margin: 0 0 4px; color: #b45a13; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.effect-lab h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.effect-lab__close { flex: 0 0 44px; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font-size: 27px; }
.effect-lab__close:hover { background: rgba(125,55,5,.1); }
.effect-lab__status { margin: 13px 0 16px; padding: 9px 12px; border-radius: 10px; color: #713103; background: #ffe4ab; font-size: 13px; font-weight: 800; }
.effect-lab__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0; padding: 4px; border-radius: 12px; background: rgba(125,55,5,.1); }
.effect-lab__tab { min-height: 42px; border: 0; border-radius: 9px; color: #8b470f; background: transparent; font-size: 13px; font-weight: 900; }
.effect-lab__tab[aria-selected="true"] { color: white; background: #7d3705; box-shadow: 0 4px 12px rgba(84,36,3,.18); }
.effect-lab__panel[hidden] { display: none; }
.effect-lab__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.effect-lab__column { display: grid; gap: 7px; min-width: 0; }
.effect-lab__column h3 { margin: 0 0 2px; padding-bottom: 7px; border-bottom: 2px solid currentColor; font-size: 12px; text-align: center; }
.effect-lab__column--a h3 { color: #a44f0e; }
.effect-lab__column--b h3 { color: #d03824; }
.effect-lab__column--c h3 { color: #7d3705; }
.effect-option {
  min-height: 49px; min-width: 0; padding: 6px 3px; border: 1px solid rgba(125,55,5,.2); border-radius: 10px;
  color: #713103; background: rgba(255,255,255,.65); font-size: 11px; font-weight: 800; line-height: 1.2;
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.effect-option span { display: block; margin-bottom: 3px; color: #c05e12; font-size: 9px; letter-spacing: .08em; }
.effect-option:hover { transform: translateY(-1px); border-color: rgba(125,55,5,.5); background: white; }
.effect-option:active { transform: scale(.97); }
.effect-option[aria-pressed="true"] { border-color: var(--red); color: #692600; background: #ffd681; box-shadow: inset 0 0 0 1px var(--red), 0 4px 12px rgba(160,61,8,.15); }
.effect-option[aria-pressed="true"] span { color: #ae2818; }
.effect-option--visual span { color: #a33821; }
.effect-lab__actions { position: sticky; bottom: -20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin: 16px -20px -20px; padding: 12px 20px 20px; background: linear-gradient(transparent, #fff5df 16%, #fff5df); }
.effect-lab__actions--visual { grid-template-columns: 1.2fr .8fr 1fr; }
.effect-lab__action { min-height: 44px; padding: 8px 10px; border: 1px solid rgba(125,55,5,.38); border-radius: 999px; color: var(--ink); background: white; font-size: 12px; font-weight: 800; }
.effect-lab__action--primary { border-color: #7d3705; color: white; background: #7d3705; }
.effect-lab__action:disabled { cursor: not-allowed; opacity: .42; }

/* Shared text-effect engine */
.message__text.fx { transition: none; transform-origin: 50% 55%; will-change: transform, opacity, filter, clip-path; }
.message__text.fx.fx-exit { animation: var(--fx-exit-name, fx-exit-basic) var(--fx-exit-speed, .12s) ease-in both; }
.message__text.fx.fx-enter { animation: var(--fx-enter-name, fx-enter-basic) var(--fx-enter-speed, .32s) cubic-bezier(.2,.8,.2,1) both; }
.fx-a1 { --fx-out-y: -3px; --fx-in-y: 4px; }
.fx-a2 { --fx-out-blur: 7px; --fx-in-blur: 9px; }
.fx-a3 { --fx-out-y: -18px; --fx-in-y: 20px; }
.fx-a4 { --fx-out-y: 16px; --fx-in-y: -18px; }
.fx-a5 { --fx-out-x: -22px; --fx-in-x: 24px; }
.fx-a6 { --fx-out-scale: .96; --fx-in-scale: 1.06; --fx-in-blur: 2px; }
.fx-a7 { --fx-out-x: -8px; --fx-in-x: 8px; --fx-enter-speed: .32s; }
.fx-a8 { --fx-exit-name: fx-exit-clip; --fx-enter-name: fx-enter-clip; --fx-enter-speed: .32s; }
.fx-a9 { --fx-exit-name: fx-exit-lines; --fx-enter-name: fx-enter-lines; --fx-enter-speed: .34s; }
.fx-a10.fx-enter { animation: none; }
.fx-character { display: inline-block; opacity: 0; animation: fx-character-in .24s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--character-index) * 12ms); }

.fx-b1 { --fx-exit-scale: .9; --fx-enter-name: fx-pop; }
.fx-b2 { --fx-out-y: 10px; --fx-enter-name: fx-bounce; }
.fx-b3 { --fx-exit-scale: .88; --fx-enter-name: fx-pulse; }
.fx-b4 { --fx-exit-name: fx-exit-flip-x; --fx-enter-name: fx-enter-flip-x; }
.fx-b5 { --fx-exit-name: fx-exit-flip-y; --fx-enter-name: fx-enter-flip-y; --fx-enter-speed: .36s; }
.fx-b6 { --fx-exit-name: fx-exit-stretch; --fx-enter-name: fx-enter-stretch; }
.fx-b7 { --fx-out-scale: .96; --fx-enter-name: fx-shake; }
.fx-b8 { --fx-out-y: 12px; --fx-enter-name: fx-slam; }
.fx-b9 { --fx-out-scale: .85; --fx-enter-name: fx-flash; }
.fx-b10 { --fx-out-scale: .92; --fx-enter-name: fx-pop; }

.fx-c1 { --fx-exit-scale: .92; --fx-enter-name: fx-stamp; }
.fx-c2 { --fx-out-scale: .94; --fx-enter-name: fx-ceremony; }
.fx-c3 { --fx-exit-name: fx-exit-flip-y; --fx-enter-name: fx-enter-amulet; --fx-enter-speed: .36s; }
.fx-c4 { --fx-exit-y: -24px; --fx-exit-name: fx-exit-scroll; --fx-enter-name: fx-enter-scroll; --fx-enter-speed: .36s; }
.fx-c5 { --fx-exit-name: fx-exit-curtain; --fx-enter-name: fx-enter-curtain; --fx-enter-speed: .36s; }
.fx-c6 { --fx-exit-name: fx-exit-fan; --fx-enter-name: fx-enter-fan; --fx-enter-speed: .36s; }
.fx-c7 { --fx-out-scale: .9; --fx-enter-name: fx-bloom; --fx-enter-speed: .38s; }
.fx-c8 { --fx-out-blur: 3px; --fx-enter-name: fx-golden; --fx-enter-speed: .38s; }
.fx-c9 { --fx-out-scale: .93; --fx-enter-name: fx-orbit; --fx-enter-speed: .38s; }
.fx-c10 { --fx-out-scale: .86; --fx-enter-name: fx-finale; --fx-enter-speed: .4s; }

.effect-preview::before, .effect-preview::after { content: ""; position: absolute; z-index: 1; top: 58%; left: 50%; pointer-events: none; }
.effect-preview--a7::after { width: 75%; height: 4px; background: linear-gradient(90deg, transparent, #fff, transparent); filter: blur(2px); animation: fx-sweep .32s ease-out both; }
.effect-preview--b3::before { width: 110px; height: 110px; border: 3px solid rgba(255,245,223,.75); border-radius: 50%; animation: fx-ring .34s ease-out both; }
.effect-preview--b9::before { width: 260px; height: 150px; background: radial-gradient(ellipse, rgba(255,255,255,.45), transparent 68%); animation: fx-spotlight .34s ease-out both; }
.effect-preview--c1::after { width: 125px; height: 125px; border: 5px double rgba(250,62,38,.75); transform: translate(-50%,-50%) rotate(7deg); animation: fx-stamp-mark .34s ease-out both; }
.effect-preview--c2::before { width: 120px; height: 120px; border: 3px solid #ffdc87; border-radius: 50%; animation: fx-ring .36s ease-out both; }
.effect-preview--c5::before, .effect-preview--c5::after { width: 52%; height: 120px; top: 50%; background: linear-gradient(90deg, rgba(125,55,5,.06), rgba(255,245,223,.5)); animation: fx-curtain-left .36s ease-out both; }
.effect-preview--c5::after { background: linear-gradient(-90deg, rgba(125,55,5,.06), rgba(255,245,223,.5)); animation-name: fx-curtain-right; }
.effect-preview--c7::before { width: 100px; height: 100px; border: 4px solid rgba(250,62,38,.55); border-radius: 70% 0; animation: fx-flower-mark .38s ease-out both; }
.effect-preview--c8::after { width: 6px; height: 6px; border-radius: 50%; background: #fff5df; box-shadow: -76px -32px #ffdc87, -49px 36px #fff5df, 43px -42px #fff5df, 80px 18px #ffdc87, 15px 52px #fff5df; animation: fx-sparkles .38s ease-out both; }
.effect-preview--c9::before { width: 170px; height: 100px; border: 2px dashed rgba(255,245,223,.7); border-radius: 50%; animation: fx-orbit-ring .38s ease-out both; }
.effect-preview--c10::before, .effect-preview--c10::after { width: 150px; height: 150px; border: 3px solid rgba(255,220,135,.8); border-radius: 50%; animation: fx-ring .4s ease-out both; }
.effect-preview--c10::after { width: 95px; height: 95px; animation-delay: .06s; }

@keyframes lab-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fx-exit-basic { to { opacity: 0; transform: translate3d(var(--fx-out-x,0),var(--fx-out-y,0),0) scale(var(--fx-out-scale,1)) rotate(var(--fx-out-rotate,0)); filter: blur(var(--fx-out-blur,0)); } }
@keyframes fx-enter-basic { from { opacity: 0; transform: translate3d(var(--fx-in-x,0),var(--fx-in-y,0),0) scale(var(--fx-in-scale,1)) rotate(var(--fx-in-rotate,0)); filter: blur(var(--fx-in-blur,0)); } }
@keyframes fx-exit-clip { to { opacity: 0; clip-path: inset(0 0 0 100%); } }
@keyframes fx-enter-clip { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fx-exit-lines { to { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-8px); } }
@keyframes fx-enter-lines { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(12px); } to { clip-path: inset(0); } }
@keyframes fx-character-in { from { opacity: 0; transform: translateY(12px) scale(.9); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fx-pop { 0% { opacity: 0; transform: scale(.65); } 68% { opacity: 1; transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes fx-bounce { 0% { opacity: 0; transform: translateY(-28px) scale(.92); } 56% { opacity: 1; transform: translateY(7px) scale(1.04); } 78% { transform: translateY(-3px); } 100% { transform: none; } }
@keyframes fx-pulse { 0% { opacity: 0; transform: scale(.55); filter: brightness(1.8); } 48% { opacity: 1; transform: scale(1.13); } 72% { transform: scale(.96); } 100% { transform: scale(1); filter: none; } }
@keyframes fx-exit-flip-x { to { opacity: 0; transform: perspective(500px) rotateX(70deg); } }
@keyframes fx-enter-flip-x { from { opacity: 0; transform: perspective(500px) rotateX(-75deg); } to { opacity: 1; transform: perspective(500px) rotateX(0); } }
@keyframes fx-exit-flip-y { to { opacity: 0; transform: perspective(500px) rotateY(-75deg); } }
@keyframes fx-enter-flip-y { from { opacity: 0; transform: perspective(500px) rotateY(85deg); } to { opacity: 1; transform: perspective(500px) rotateY(0); } }
@keyframes fx-exit-stretch { to { opacity: 0; transform: scaleX(1.25) scaleY(.65); } }
@keyframes fx-enter-stretch { 0% { opacity: 0; transform: scaleX(.55) scaleY(1.3); } 58% { opacity: 1; transform: scaleX(1.08) scaleY(.94); } 100% { transform: none; } }
@keyframes fx-shake { 0% { opacity: 0; transform: translateX(-18px); } 35% { opacity: 1; transform: translateX(10px) rotate(1deg); } 58% { transform: translateX(-7px) rotate(-1deg); } 78% { transform: translateX(3px); } 100% { transform: none; } }
@keyframes fx-slam { 0% { opacity: 0; transform: translateY(-42px) scale(1.2); filter: blur(3px); } 62% { opacity: 1; transform: translateY(5px) scale(.97); filter: none; } 78% { transform: translateY(-2px) scale(1.02); } 100% { transform: none; } }
@keyframes fx-flash { 0% { opacity: 0; transform: scale(1.35); filter: blur(8px) brightness(2); } 50% { opacity: 1; filter: blur(0) brightness(1.7); } 100% { transform: scale(1); filter: none; } }
@keyframes fx-stamp { 0% { opacity: 0; transform: translateY(-25px) scale(1.45) rotate(-3deg); } 62% { opacity: 1; transform: scale(.93) rotate(1deg); } 100% { transform: none; } }
@keyframes fx-ceremony { 0% { opacity: 0; transform: translateY(12px) scale(.88); filter: blur(4px); } 70% { opacity: 1; transform: translateY(-2px) scale(1.03); filter: none; } 100% { transform: none; } }
@keyframes fx-enter-amulet { 0% { opacity: 0; transform: perspective(500px) rotateY(90deg) scale(.85); } 68% { opacity: 1; transform: perspective(500px) rotateY(-7deg) scale(1.03); } 100% { transform: none; } }
@keyframes fx-exit-scroll { to { opacity: 0; transform: translateY(-24px) scaleY(.7); filter: blur(4px); } }
@keyframes fx-enter-scroll { 0% { opacity: 0; transform: translateY(30px) scaleY(.65); filter: blur(5px); } 72% { opacity: 1; transform: translateY(-3px) scaleY(1.03); filter: none; } 100% { transform: none; } }
@keyframes fx-exit-curtain { to { opacity: 0; clip-path: inset(0 50%); } }
@keyframes fx-enter-curtain { from { opacity: 0; clip-path: inset(0 50%); letter-spacing: .18em; } to { clip-path: inset(0); } }
@keyframes fx-exit-fan { to { opacity: 0; clip-path: polygon(50% 100%,50% 100%,50% 100%); transform: scale(.88); } }
@keyframes fx-enter-fan { from { opacity: 0; clip-path: polygon(50% 100%,45% 100%,55% 100%); transform: translateY(12px) scale(.88); } to { clip-path: polygon(0 0,100% 0,100% 100%,0 100%); transform: none; } }
@keyframes fx-bloom { 0% { opacity: 0; transform: scale(.35) rotate(-8deg); filter: blur(6px); } 65% { opacity: 1; transform: scale(1.08) rotate(2deg); filter: none; } 100% { transform: none; } }
@keyframes fx-golden { 0% { opacity: 0; transform: scale(.92); text-shadow: 0 0 0 transparent; } 55% { opacity: 1; text-shadow: 0 0 22px #fff, 0 0 38px #ffcc6b; } 100% { transform: none; text-shadow: 0 2px 0 rgba(168,65,0,.14); } }
@keyframes fx-orbit { 0% { opacity: 0; transform: rotate(-4deg) scale(.7); } 65% { opacity: 1; transform: rotate(1deg) scale(1.06); } 100% { transform: none; } }
@keyframes fx-finale { 0% { opacity: 0; transform: translateY(22px) scale(.5); filter: brightness(2); } 45% { opacity: 1; transform: translateY(-5px) scale(1.16); } 68% { transform: translateY(2px) scale(.96); } 84% { transform: translateY(-1px) scale(1.03); } 100% { transform: none; filter: none; } }
@keyframes fx-sweep { from { opacity: 0; transform: translate(-160%,-50%) rotate(-7deg); } 35% { opacity: 1; } to { opacity: 0; transform: translate(60%,-50%) rotate(-7deg); } }
@keyframes fx-ring { from { opacity: .9; transform: translate(-50%,-50%) scale(.25); } to { opacity: 0; transform: translate(-50%,-50%) scale(2); } }
@keyframes fx-spotlight { from { opacity: 0; transform: translate(-50%,-50%) scale(.6); } 45% { opacity: 1; } to { opacity: 0; transform: translate(-50%,-50%) scale(1.25); } }
@keyframes fx-stamp-mark { 0% { opacity: 0; transform: translate(-50%,-70%) scale(1.5) rotate(2deg); } 58% { opacity: .8; transform: translate(-50%,-50%) scale(.9) rotate(7deg); } to { opacity: 0; transform: translate(-50%,-50%) scale(1) rotate(7deg); } }
@keyframes fx-curtain-left { from { opacity: .8; transform: translate(-100%,-50%) scaleX(1); } to { opacity: 0; transform: translate(-160%,-50%) scaleX(.15); } }
@keyframes fx-curtain-right { from { opacity: .8; transform: translate(0,-50%) scaleX(1); } to { opacity: 0; transform: translate(60%,-50%) scaleX(.15); } }
@keyframes fx-flower-mark { from { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); } 55% { opacity: .7; } to { opacity: 0; transform: translate(-50%,-50%) scale(1.8) rotate(135deg); } }
@keyframes fx-sparkles { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5) rotate(35deg); } }
@keyframes fx-orbit-ring { from { opacity: 0; transform: translate(-50%,-50%) rotate(-30deg) scale(.5); } 35% { opacity: .8; } to { opacity: 0; transform: translate(-50%,-50%) rotate(75deg) scale(1.3); } }

#celebration { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.visual-overlay { position: fixed; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.visual-overlay::before, .visual-overlay::after { content: ""; position: absolute; pointer-events: none; }
.visual-overlay--v-a9::before { left: 50%; bottom: 18%; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,204,107,.2) 40%, transparent 70%); animation: visual-charge .75s ease-out both; }
.visual-overlay--v-c1::before { top: -15%; bottom: -15%; left: -30%; width: 38%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); filter: blur(14px); transform: skewX(-12deg); animation: visual-spotlight .85s ease-in-out both; }
.visual-overlay--v-c2::before { inset: 0; background: white; animation: visual-flash .52s ease-out both; }
.visual-overlay--v-c3::before { top: 52%; left: 50%; width: 720px; height: 720px; border-radius: 50%; background: repeating-conic-gradient(from 4deg, rgba(255,245,223,.28) 0 4deg, transparent 4deg 15deg); animation: visual-rays .85s ease-out both; }
.visual-overlay--v-c4::before { top: 50%; left: 50%; width: min(560px, calc(100vw - 34px)); height: min(920px, calc(100dvh - 48px)); border: 5px solid rgba(255,245,223,.9); box-shadow: 0 0 24px #fff5df, inset 0 0 24px rgba(255,204,107,.8); animation: visual-frame .95s ease-out both; }
.visual-overlay--v-c5::before { top: 52%; left: 50%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,204,107,.2) 45%, transparent 70%); animation: visual-background-pulse .9s ease-out both; }
.visual-overlay--v-c6::before { top: 52%; left: 50%; width: 280px; height: 170px; border: 3px dashed rgba(255,245,223,.75); border-radius: 50%; animation: visual-orbit .95s ease-out both; }
.visual-overlay--v-c7::before, .visual-overlay--v-c7::after { top: 0; bottom: 0; width: 51%; background: linear-gradient(90deg, rgba(125,55,5,.35), rgba(255,245,223,.32)); animation: visual-curtain-left .85s cubic-bezier(.2,.8,.2,1) both; }
.visual-overlay--v-c7::before { left: 0; }
.visual-overlay--v-c7::after { right: 0; background: linear-gradient(-90deg, rgba(125,55,5,.35), rgba(255,245,223,.32)); animation-name: visual-curtain-right; }
.visual-overlay--v-c8::before { top: 50%; left: 50%; width: 110vmax; height: 110vmax; border-radius: 50%; background: repeating-conic-gradient(transparent 0 7deg, rgba(255,245,223,.4) 7.4deg 8deg, transparent 8.4deg 16deg); animation: visual-speed-lines .7s ease-out both; }
.visual-overlay--v-c9::before { inset: 0; background: radial-gradient(circle at 18% 25%, rgba(255,255,255,.5) 0 12px, transparent 35px), radial-gradient(circle at 78% 18%, rgba(255,225,151,.5) 0 18px, transparent 48px), radial-gradient(circle at 68% 72%, rgba(255,255,255,.42) 0 15px, transparent 42px), radial-gradient(circle at 25% 82%, rgba(255,204,107,.5) 0 22px, transparent 55px); filter: blur(3px); animation: visual-bokeh 1.1s ease-out both; }
.visual-overlay--v-c10::before { inset: 0; border: 6px solid rgba(255,245,223,.85); box-shadow: inset 0 0 45px rgba(255,245,223,.65); animation: visual-champion-frame 1.1s ease-out both; }
.visual-overlay--v-c10::after { top: 50%; left: 50%; width: 760px; height: 760px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,245,223,.24) 0 5deg, transparent 5deg 18deg); animation: visual-rays 1.05s ease-out both; }

@keyframes visual-charge { 0% { opacity: 0; transform: translate(-50%,50%) scale(.15); } 45% { opacity: .9; transform: translate(-50%,50%) scale(.65); } 100% { opacity: 0; transform: translate(-50%,50%) scale(1.5); } }
@keyframes visual-spotlight { 0% { opacity: 0; transform: translateX(0) skewX(-12deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(420vw) skewX(-12deg); } }
@keyframes visual-flash { 0% { opacity: 0; } 18% { opacity: .72; } 100% { opacity: 0; } }
@keyframes visual-rays { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.15) rotate(-12deg); } 35% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.25) rotate(8deg); } }
@keyframes visual-frame { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.94); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.015); } }
@keyframes visual-background-pulse { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2); } 45% { opacity: .85; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(7); } }
@keyframes visual-orbit { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-25deg) scale(.5); } 35% { opacity: .8; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(95deg) scale(1.35); } }
@keyframes visual-curtain-left { from { opacity: .9; transform: translateX(0); } to { opacity: 0; transform: translateX(-100%); } }
@keyframes visual-curtain-right { from { opacity: .9; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }
@keyframes visual-speed-lines { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.4) rotate(-5deg); } 35% { opacity: .75; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.5) rotate(3deg); } }
@keyframes visual-bokeh { 0% { opacity: 0; transform: scale(.8); } 45% { opacity: .8; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes visual-champion-frame { 0% { opacity: 0; } 24% { opacity: 1; } 100% { opacity: 0; } }
.toast { position: fixed; z-index: 20; bottom: 22px; left: 50%; max-width: calc(100vw - 40px); transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: 999px; color: var(--cream); background: rgba(90, 37, 0, .82); transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.share-dialog { width: min(420px, calc(100vw - 32px)); padding: 25px; border: 0; border-radius: 22px; color: var(--ink); background: #fff5df; box-shadow: 0 25px 80px rgba(70,25,0,.45); }
.share-dialog::backdrop { background: rgba(77, 31, 0, .64); backdrop-filter: blur(5px); }
.share-dialog h2 { margin: 0 0 10px; font-size: 23px; }
.share-dialog p { margin: 0 0 18px; line-height: 1.6; }
.share-dialog img { display: block; width: min(100%, 260px); margin: 0 auto 20px; border-radius: 10px; box-shadow: 0 8px 24px rgba(125,55,5,.18); }
.dialog-actions { display: grid; gap: 10px; }
.dialog-close { position: absolute; top: 9px; right: 12px; width: 34px; height: 34px; border: 0; color: var(--ink); background: transparent; font-size: 26px; }

@media (max-width: 640px) {
  .stage { display: block; padding: 0; }
  .amulet { width: 100%; min-height: 100dvh; box-shadow: none; }
  .amulet__frame { margin-inline: 17px; padding-inline: 25px; }
  .language-picker { top: 10px; right: 10px; }
  .language-picker select { min-height: 33px; font-size: 12px; }
  .effect-lab-toggle { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 46px; padding: 9px 14px; }
  .effect-lab { right: 8px; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 58px); width: calc(100vw - 16px); max-height: min(58dvh, 620px); padding: 16px; border-radius: 20px; }
  .effect-lab__actions { bottom: -16px; margin: 14px -16px -16px; padding: 12px 16px 16px; }
  .effect-lab__actions--visual { grid-template-columns: 1fr 1fr; }
  .effect-lab__actions--visual .effect-lab__action:last-child { grid-column: 1 / -1; }
  .effect-option { min-height: 48px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; } }

/* PDF page 1 is the visual source of truth. The base screen renders the
   supplied artwork at its native 553 × 858 proportion before any UI appears. */
html, body { min-height: 100%; }
body { background: #ffa21d; }
.stage {
  min-height: 100dvh;
  padding: 0;
  background: #ffa21d;
}
.amulet {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  height: auto;
  display: block;
  overflow: hidden;
  background-color: #ffa21d;
  background-image: url("../assets/amulet-pattern-tile.svg");
  background-position: center;
  background-size:
    calc(var(--design-width) * .3562524)
    calc(var(--design-width) * .3663468);
  background-repeat: repeat;
  box-shadow: none;
}
.amulet::before, .amulet::after { display: none; }
.amulet__design {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--design-width);
  aspect-ratio: 221.102 / 342.992;
  transform: translate(-50%, -50%);
}

.amulet__fixed-art {
  position: absolute;
  inset: 0;
  display: block;
  user-select: none;
  pointer-events: none;
}
.amulet__art-piece {
  position: absolute;
  display: block;
  height: auto;
}
.amulet__art-piece--frame { inset: 0; width: 100%; height: 100%; }
.amulet__art-piece--title { top: 10.4961%; left: 23.5186%; width: 53.3690%; }
.amulet__art-piece--seal { top: 21.2833%; left: 44.7757%; width: 9.9502%; }
.amulet__art-piece--nfc { top: 39.9425%; left: 37.9915%; width: 26.2322%; }
.amulet__art-piece--brand { top: 79.8858%; left: 30.7541%; width: 39.8006%; }
.amulet__art-piece--instruction { top: 90.3817%; left: 19.4489%; width: 62.4146%; }
.amulet__art {
  display: none;
}
.nfc-trigger {
  position: absolute;
  z-index: 2;
  top: 40.4%;
  left: 39.2%;
  width: 21.6%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 18%;
  background: transparent;
}
.nfc-trigger:focus-visible { outline-color: #fff; outline-offset: 4px; }
.content-panel {
  position: absolute;
  z-index: 3;
  top: 55%;
  right: 13.7%;
  left: 13.7%;
  display: grid;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
}
.content-panel[hidden] { display: none; }
.content-panel .message__label {
  margin: 0 0 6px;
  color: #fff4d5;
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 800;
  letter-spacing: .08em;
}
.content-panel .message__text {
  width: 100%;
  min-height: 50px;
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 4.25vw, 22px);
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 2px 5px rgba(157, 75, 0, .38);
  text-wrap: balance;
}

.content-panel .message__text.long {
  font-size: clamp(12px, 1.9dvh, 20px);
  line-height: 1.6;
}
.content-panel .actions {
  width: min(300px, 100%);
  margin: 12px 0 0;
  gap: 12px;
}
.content-panel .button {
  min-height: 45px;
  padding: 10px 20px;
  font-size: clamp(14px, 3.25vw, 16px);
  box-shadow: 0 3px 0 rgba(156, 77, 1, .12);
}
.content-panel .button--light { background: rgba(255,255,255,.13); box-shadow: none; }
.amulet.is-active .content-panel { opacity: 1; transform: none; }
.amulet.is-active .nfc-trigger { pointer-events: none; }
.language-picker, .effect-lab-toggle, .effect-lab { display: none !important; }
body.is-active .language-picker { display: block !important; }
body.is-active .effect-lab-toggle { display: inline-flex !important; }
body.is-effect-lab-open .effect-lab { display: block !important; }
body.is-active .language-picker select {
  min-height: 31px;
  border-color: rgba(255,255,255,.78);
  border-radius: 16px;
  color: #fff;
  background: rgba(229, 118, 12, .78);
  box-shadow: 0 3px 10px rgba(137, 58, 2, .18);
}

@media (min-width: 554px) {
  .stage { padding: 0; }
}

@media (max-width: 553px) {
  /* Match the pre-14:36 mobile footprint: fill the live viewport height. */
  .stage {
    min-height: 100dvh;
    display: block;
  }
  .amulet {
    width: 100%;
    height: auto;
    min-height: 100dvh;
  }
  body.is-active .effect-lab-toggle {
    top: 52px;
    right: 12px;
    bottom: auto;
    min-height: 34px;
    padding: 6px 11px;
    font-size: 12px;
  }
  body.is-active .effect-lab-toggle svg { width: 16px; height: 16px; }
  body.is-effect-lab-open .effect-lab {
    top: 98px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-height: none;
  }
}

/* Blue PDF page 3 artwork. Each visible illustration layer is taken directly
   from the supplied 720 × 1280 vector page and can be tuned independently. */
:root {
  --blue-deep: #0d5796;
  --blue: #1678b7;
  --blue-light: #67afe1;
  --blue-ink: #073b68;
  --gold: #f9ad43;
  --cream: #fff;
  --ink: #073b68;
}

body {
  color: #fff;
  background: var(--blue-deep);
}

button:focus-visible,
select:focus-visible {
  outline-color: #fff;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
}

.amulet {
  --design-width: min(100vw, calc(100dvh * .5625), 720px);
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: var(--blue);
  box-shadow: none;
}

.amulet__design {
  top: 50%;
  left: 50%;
  width: var(--design-width);
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%);
}

.amulet__fixed-art,
.blue-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blue-layer {
  display: block;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.blue-layer--gradient { z-index: 0; }
.blue-layer--pattern { z-index: 1; }
.blue-layer--title { z-index: 2; }
.blue-layer--hero { z-index: 3; }
.blue-layer--frame { z-index: 4; }
.blue-layer--brand { z-index: 5; }

.content-panel {
  position: absolute;
  z-index: 6;
  top: 58.3%;
  right: 13.5%;
  left: 13.5%;
  height: 20.1%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 4.5% 5% 3.8%;
  text-align: center;
  opacity: 1;
  transform: none;
}

.content-panel .message__label {
  margin: 0 0 .45em;
  color: #fff;
  font-size: clamp(10px, calc(var(--design-width) * .0208), 15px);
  font-weight: 800;
  letter-spacing: .1em;
}

.content-panel .message__text {
  width: 100%;
  min-height: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(15px, calc(var(--design-width) * .0333), 24px);
  font-weight: 850;
  line-height: 1.35;
  text-shadow: 0 2px 7px rgba(3, 55, 102, .34);
}

.content-panel .actions {
  width: min(100%, 390px);
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.2vw, 12px);
  margin: .75em 0 0;
}

.content-panel .button {
  min-height: clamp(30px, calc(var(--design-width) * .061), 44px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: clamp(10px, calc(var(--design-width) * .0195), 14px);
  box-shadow: 0 3px 10px rgba(4, 54, 96, .16);
}

.content-panel .button--gold {
  border-color: #ffd28a;
  color: var(--blue-ink);
  background: var(--gold);
}

.content-panel .button--light {
  border-color: rgba(255,255,255,.84);
  color: #fff;
  background: rgba(8, 79, 135, .34);
  box-shadow: none;
}

.language-picker,
.effect-lab-toggle {
  display: block !important;
}

.effect-lab { display: none !important; }
body.is-effect-lab-open .effect-lab { display: block !important; }

.language-picker select {
  min-height: 34px;
  border-color: rgba(255,255,255,.82);
  border-radius: 999px;
  color: #fff;
  background: rgba(4, 63, 111, .72);
  box-shadow: 0 5px 18px rgba(3, 52, 92, .2);
}

.effect-lab-toggle {
  color: #fff;
  background: rgba(4, 63, 111, .84);
  box-shadow: 0 10px 30px rgba(3, 52, 92, .28);
}

.effect-lab-toggle:hover { background: rgba(3, 48, 86, .94); }

.effect-lab {
  color: var(--blue-ink);
  background: rgba(244, 250, 255, .97);
  box-shadow: 0 22px 70px rgba(3, 44, 78, .36);
}

.effect-lab__eyebrow { color: #1472ae; }
.effect-lab__status { color: #084a7b; background: #d9efff; }
.effect-lab__tabs { background: rgba(8, 80, 132, .1); }
.effect-lab__tab { color: #176b9e; }
.effect-lab__tab[aria-selected="true"] { background: #0d609b; }
.effect-option { border-color: rgba(7,59,104,.2); color: #094873; }
.effect-option span { color: #147bb9; }
.effect-option[aria-pressed="true"] { border-color: #f5a83d; color: #073b68; background: #ffe1aa; box-shadow: inset 0 0 0 1px #f5a83d; }
.effect-lab__action { border-color: rgba(7,59,104,.38); color: var(--blue-ink); }
.effect-lab__action--primary { border-color: #0d609b; color: #fff; background: #0d609b; }
.effect-lab__actions { background: linear-gradient(transparent, #f4faff 16%, #f4faff); }

.share-dialog {
  color: var(--blue-ink);
  background: #f4faff;
  box-shadow: 0 25px 80px rgba(3, 44, 78, .45);
}
.share-dialog::backdrop { background: rgba(2, 35, 62, .66); }
.dialog-close { color: var(--blue-ink); }
.button--outline { color: var(--blue-ink); border-color: rgba(7,59,104,.55); }
.toast { background: rgba(3, 51, 89, .88); }

@media (max-width: 553px) {
  .amulet { height: 100dvh; min-height: 100dvh; }
  .content-panel { padding-top: 3.4%; padding-bottom: 2.6%; }
  .language-picker { top: 10px; right: 10px; }
  .effect-lab-toggle {
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
  }
  .effect-lab-toggle svg { width: 16px; height: 16px; }
  body.is-effect-lab-open .effect-lab { top: auto; }
}

/* On screens taller than 9:16, scale by height and crop only the decorative
   side margins. The title, central composition and message frame stay intact. */
@media (max-aspect-ratio: 9/16) {
  .amulet { --design-width: calc(100dvh * .5625); }
}

/* Reference-site responsive flow. The supplied reference artwork owns the
   static poster; dynamic copy and controls remain accessible HTML overlays. */
html,
body {
  height: 100%;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(160deg, #004194 0%, #35a4cc 62%, #66abde 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Noto Sans", "Noto Sans CJK TC", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
}

body.is-effect-lab-open { overflow: hidden; }

.stage {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(160deg, #004194 0%, #35a4cc 62%, #66abde 100%);
}

.amulet {
  width: 100%;
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

.amulet__design {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  width: calc(100dvh * .46116);
  aspect-ratio: 1184.29 / 2568.11;
  transform: none;
  filter: drop-shadow(0 8px 40px rgba(0,20,60,.45));
}

.amulet__fixed-art,
.blue-layer--reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blue-layer--reference {
  z-index: 0;
  display: block;
  user-select: none;
  pointer-events: none;
}

.content-panel {
  position: absolute;
  z-index: 2;
  top: 56.2%;
  left: 7.7%;
  right: auto;
  width: 84.1%;
  height: 22.9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5% 7%;
  text-align: center;
}

.content-panel .message__label {
  margin: 0 0 1.4dvh;
  color: #e7bb71;
  font-size: clamp(11px, 1.7dvh, 17px);
  font-weight: 700;
  letter-spacing: .14em;
  text-shadow: 0 1px 4px rgba(0,30,80,.5);
}

.content-panel .message__text {
  width: 100%;
  max-width: 400px;
  min-height: 0;
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 2.35dvh, 25px);
  font-weight: 600;
  line-height: 1.72;
  text-wrap: wrap;
  text-shadow: 0 1px 8px rgba(0,30,80,.55);
}

.blue-design > .actions {
  position: absolute;
  z-index: 2;
  top: 80.6%;
  left: 0;
  width: 100%;
  height: 12.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6dvh;
  margin: 0;
}

.blue-design > .actions .button {
  width: auto;
  min-height: 0;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

.blue-design > .actions .button--gold {
  padding: 1.1dvh 3.2dvh;
  border: 1px solid rgba(231,187,113,.85);
  color: #ffe9c4;
  background: rgba(231,187,113,.16);
  font-size: clamp(12px, 1.8dvh, 16px);
}

.blue-design > .actions .button--light {
  display: inline-flex;
  align-items: center;
  gap: .9dvh;
  padding: 1.1dvh 3dvh;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.15);
  font-size: clamp(12px, 1.7dvh, 15px);
}

.blue-design > .actions .button:active {
  transform: scale(.96);
}

.button__icon {
  width: clamp(16px, 2.1dvh, 20px);
  height: clamp(16px, 2.1dvh, 20px);
}

.language-picker {
  top: 14px;
  right: 14px;
}

.language-picker select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  padding: 6px 28px 6px 10px;
  color: rgba(255,255,255,.9);
  background-color: rgba(0,30,80,.45);
  background-image: url("../assets/select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 9px center;
  box-shadow: none;
  font: 500 12px Arial, sans-serif;
}

.language-picker option {
  color: #f0f0f0;
  background: #0e2a52;
}

.effect-lab__header {
  position: sticky;
  top: -20px;
  z-index: 5;
  margin: -20px -20px 0;
  padding: 20px 20px 10px;
  background: rgba(244,250,255,.98);
}

.effect-lab__apply {
  grid-column: 1 / -1;
  border-color: #f5a83d;
  color: #073b68;
  background: #ffd184;
}

@media (orientation: portrait) {
  .amulet__design { width: 100vw; }
}

@media (max-width: 640px) {
  body.is-effect-lab-open .effect-lab {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    height: auto;
    max-height: none;
  }

  .effect-lab__header {
    top: -16px;
    margin: -16px -16px 0;
    padding: 16px 16px 10px;
  }
}
