:root{--ticket-paper:#ffd06d;--ticket-stub-paper:#f5bd50;--ticket-ink:#29152f;--ticket-rule:#653a2952;--ticket-hover:#ffdc90;--ticket-hover-stub:#ffcc70}
html[data-design=festival]{--ticket-paper:#82472f;--ticket-stub-paper:#703821;--ticket-ink:#fff5e6;--ticket-rule:#fff0d05c;--ticket-hover:#965438;--ticket-hover-stub:#834329}

/* One flexible label area and a detachable icon stub; no fixed text width. */
:where(.button,.scene-start){--ticket-stub:52px;--ticket-pad:24px;--ticket-notch:7px;--ticket-icon-size:20px;--ticket-icon:url('assets/ticket-arrow.svg')}
html body .button:not(.touch-beat):not(.text-button),html body .immersive-growth .scene-start,html body .immersive-growth #growth-play{
 position:relative;isolation:isolate;align-items:center;justify-content:center;gap:0;
 padding-inline:var(--ticket-pad) calc(var(--ticket-pad) + var(--ticket-stub));
 border:0;border-radius:0;clip-path:none;color:#29152f;
 background:transparent url('assets/welcome/ticket-button-v2.svg') center/100% 100% no-repeat;
 -webkit-mask:none;mask:none;box-shadow:none;font-family:WelcomeThai,HappyThai,sans-serif;font-weight:800;line-height:1.5;white-space:normal;text-align:center;text-decoration:none;cursor:pointer;
 transition:transform .16s ease,filter .16s ease;
}
html body .button:not(.touch-beat):not(.text-button)::before,html body .immersive-growth .scene-start::before,html body .immersive-growth #growth-play::before{content:'';position:absolute;inset:5px;z-index:-1;pointer-events:none}
html body .button:not(.touch-beat):not(.text-button)::after,html body .immersive-growth .scene-start::after,html body .immersive-growth #growth-play::after{content:'';position:absolute;right:calc((var(--ticket-stub) - var(--ticket-icon-size))/2);top:50%;width:var(--ticket-icon-size);height:var(--ticket-icon-size);transform:translateY(-50%);background:currentColor;-webkit-mask:var(--ticket-icon) center / contain no-repeat;mask:var(--ticket-icon) center / contain no-repeat;pointer-events:none}
html body .button:not(.touch-beat):not(.text-button)>[aria-hidden=true],html body .immersive-growth .scene-start>[aria-hidden=true]{display:none}

html body .site-header .button{--ticket-stub:40px;--ticket-pad:17px;--ticket-notch:6px;--ticket-icon-size:18px;min-height:52px}
html body .hero-actions .button{--ticket-icon:url('assets/ticket-play.svg')}
html body #lights-reset,html body #game-replay,html body #replay-film{--ticket-icon:url('assets/ticket-replay.svg')}
html body .immersive-growth .scene-start,html body .immersive-growth #growth-play{--ticket-icon:url('assets/ticket-play.svg');max-width:min(55%,480px)}
html body .immersive-growth[data-endpoint=end] .scene-start,html body .immersive-growth[data-endpoint=end] #growth-play{--ticket-icon:url('assets/ticket-down.svg')}
html body .button:not(.touch-beat):not(.text-button):focus-visible,html body .immersive-growth .scene-start:focus-visible,html body .immersive-growth #growth-play:focus-visible{outline:0}
html body .button:not(.touch-beat):not(.text-button):focus-visible::before,html body .immersive-growth .scene-start:focus-visible::before,html body .immersive-growth #growth-play:focus-visible::before{inset:4px;border:2px solid var(--ticket-ink);box-shadow:0 0 0 2px #fff4df}
html body .button:not(.touch-beat):not(.text-button):disabled,html body .immersive-growth .scene-start:disabled,html body .immersive-growth #growth-play:disabled{opacity:.62;cursor:default;transform:none}
@media(hover:hover){
 html body .button:not(.touch-beat):not(.text-button):not(:disabled):hover,html body .immersive-growth .scene-start:not(:disabled):hover,html body .immersive-growth #growth-play:not(:disabled):hover{filter:brightness(1.06);transform:translateY(-2px)}
}
html body .button:not(.touch-beat):not(.text-button):not(:disabled):active,html body .immersive-growth .scene-start:not(:disabled):active,html body .immersive-growth #growth-play:not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 2px 4px #542d2426}
@media(max-width:767px){
 html body .button:not(.touch-beat):not(.text-button),html body .immersive-growth .scene-start,html body .immersive-growth #growth-play{--ticket-stub:42px;--ticket-pad:16px;--ticket-notch:6px;--ticket-icon-size:18px}
 html body .hero-actions .button{font-size:13px;min-width:0}
 html body .immersive-growth .scene-start,html body .immersive-growth #growth-play{max-width:none;min-height:52px}
}
@media(prefers-reduced-motion:reduce){html body .button:not(.touch-beat):not(.text-button),html body .immersive-growth .scene-start,html body .immersive-growth #growth-play{transition:none;transform:none}}
