@font-face {
    font-family: LagnaSans;
    src: url("../activex-sans-thai.woff") format("woff");
    font-display: swap;
    unicode-range: U+0E00-0E7F;
}

@font-face {
    font-family: LagnaSans;
    src: url("../activex-sans-thai-bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0E00-0E7F;
}

:root {
    --hero: #230f2c;
    --hero-text: #fff6ed;
    --hero-subtext: #f1e2ee;
    --highlight: #ffc457;
    --action: #ffce72;
    --action-text: #291731;
    --paper: #f8f2f5;
    --ink: #301d37;
    --rule: #daccd9;
    --closing: #31183b;
}

* { box-sizing: border-box; }
body { margin: 0; background: #081721; font: 400 17px/1.6 LagnaSans, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul { margin: 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b86508; outline-offset: 4px; }
.skip { position: absolute; inset-block-start: 8px; inset-inline-start: 10px; transform: translateY(-180%); z-index: 10; padding: 8px 14px; background: white; color: var(--ink); }
.skip:focus { transform: none; }
main { max-width: 1280px; margin-inline: auto; }
.inner { width: calc(100% - 2 * clamp(20px, 6vw, 84px)); max-width: 1216px; margin-inline: auto; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hero);
    color: var(--hero-text);
}

.hero-art {
    position: absolute;
    inset: 0 0 0 39%;
    display: block;
    overflow: hidden;
    background: #36113d;
}

.hero-art img { position: absolute; inset-block-start: 0; inset-inline-end: 0; width: auto; height: 100%; max-width: none; }
.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--hero) 4%, #230f2cf8 25%, #230f2c9e 40%, transparent 55%);
}

.hero-inner {
    display: grid;
    align-items: center;
    min-height: clamp(475px, 40vw, 535px);
    padding-block: 36px;
    pointer-events: none;
}

.hero-copy { position: relative; width: 51%; pointer-events: auto; }
.product-name { color: var(--hero-subtext); font-size: clamp(19px, 2.15vw, 29px); font-weight: 700; letter-spacing: -.035em; }
h1 { margin-block: 10px 13px; font-size: clamp(37px, 4.75vw, 66px); line-height: 1.17; font-weight: 700; }
h1 span, h1 em { display: block; }
h1 em { color: var(--highlight); font-style: normal; }
.intro { max-width: 29em; color: var(--hero-subtext); font-size: clamp(17px, 1.48vw, 21px); }
.buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    gap: 10px;
    padding: 9px 17px;
    border: 1px solid var(--highlight);
    border-radius: 5px;
    background: var(--action);
    color: var(--action-text);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
}
.buy:hover { background: #ffdb91; }
.hero .buy { margin-top: 22px; }
.play { width: 14px; height: 15px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }

.details { padding-block: clamp(24px, 4vw, 54px); color: var(--ink); background: var(--paper); }
.details-inner { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(20px, 4vw, 59px); align-items: center; }
h2 { margin-block-end: 13px; font-size: clamp(25px, 3vw, 42px); line-height: 1.25; }
.details-copy ul { list-style: none; padding: 0; }
.details-copy li { padding-block: 8px; border-block-start: 1px solid var(--rule); }
.details-copy li:last-child { border-block-end: 1px solid var(--rule); }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(9px, 1.1vw, 14px); }
.screens a { min-width: 0; color: var(--ink); }
.screens img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 7px; }
.screens a > span { display: flex; justify-content: space-between; gap: 4px; margin-block-start: 5px; font-size: 15px; font-weight: 700; }
.screens a:hover > span { text-decoration: underline; }
.closing { padding-block: 16px; background: var(--closing); color: var(--hero-text); }
.closing .inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.closing p { font-weight: 700; font-size: 21px; }
.ax-footer .ax-inner { padding-block: 20px; }
.ax-footer-head .ax-all { font-size: 15px; }

@media (min-width: 701px) and (max-width: 950px) {
    .hero-art { inset-inline-start: 43%; }
    .hero-copy { width: 57%; }
    .hero-art::after { background: linear-gradient(90deg, var(--hero) 3%, #230f2cbf 22%, transparent 48%); }
}

@media (max-width: 700px) {
    .hero { display: flex; flex-direction: column; }
    .hero-art { position: relative; inset: auto; }
    .hero-art img { display: block; position: relative; width: 100%; height: auto; }
    .hero-art::after { background: linear-gradient(0deg, var(--hero), transparent 12%); pointer-events: none; }
    .hero-inner { min-height: 0; display: block; padding-block: 9px 26px; }
    .hero-copy { width: 100%; }
    h1 { margin-block: 7px 8px; font-size: clamp(32px, 8.2vw, 49px); }
    .hero .buy { margin-top: 14px; }
    .details-inner { grid-template-columns: minmax(0, 1fr); }
    .screens { grid-template-columns: unset; grid-auto-flow: column; grid-auto-columns: minmax(150px, 56%); overflow-x: auto; padding: 4px 4px 12px; margin-inline: -4px; scroll-snap-type: x proximity; }
    .screens a { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }


.hero-art { background: var(--hero); }
.hero-art::after {
    background: linear-gradient(90deg, var(--hero) 5%, var(--hero) 36%, rgb(var(--hero-rgb) / .79) 44%, transparent 58%);
}
.hero-copy { max-width: min(54%, 610px); }
h1 { overflow-wrap: anywhere; text-wrap: balance; }
.buy:hover { background: var(--action); filter: brightness(1.08); }
.closing { color: #fff9ee; }
.buy .play { flex: 0 0 14px; }
.portrait-hero .hero-art {
    display: grid; place-items: center;
    background: radial-gradient(ellipse at 59% 50%, rgb(var(--hero-rgb) / .66), var(--hero));
}
.portrait-hero .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 8px; object-fit: contain; }
.portrait-hero .hero-art::after { display: none; }
@media (min-width: 701px) and (max-width: 950px) {
    .hero-copy { max-width: 57%; }
}
@media (max-width: 700px) {
    .hero-copy { max-width: none; }
    .hero-art::after { background: linear-gradient(0deg, var(--hero), transparent 12%); }
    .portrait-hero .hero-art { height: clamp(207px, 55vw, 275px); }

}
@media (max-width: 350px) {
    .hero h1 { line-height: 1.13; }
    .hero .intro { line-height: 1.42; }
    .product-name { line-height: 1.3; }
    .hero .buy { margin-top: 10px; }
}

.hero-copy { max-width: min(55%, 620px); }
.details-copy h2 { overflow-wrap: anywhere; }
.buy { white-space: normal; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.ax-header nav { gap: clamp(8px, 1.5vw, 18px); }
.ax-header nav > .ax-menu { position: static; }
.ax-header nav > .ax-menu summary { min-height: 44px; }
.ax-header nav > .ax-menu .ax-dropdown {
    inset-inline-end: clamp(20px, 6vw, 84px);
    inset-inline-start: auto;
    min-width: min(210px, calc(100vw - 40px));
}
[dir="rtl"] .ax-lang { border-left:0; padding-left:0; border-inline-start:1px solid #ffffff36; padding-inline-start:8px; }
.screen-note { margin-top: 8px; font-size: 15px; }
@media (min-width: 701px) {
    [dir="rtl"] .hero-art { right:39%; left:0; }
    [dir="rtl"] .hero-art img { right:3%; left:auto; mask-image:linear-gradient(90deg, transparent 46%, #000 53%); }
    [dir="rtl"] .hero-art::after {background:linear-gradient(270deg,var(--hero),rgb(var(--hero-rgb) / .67) 20%,transparent 43%);}
}
@media (max-width: 700px) {
    .hero-copy { max-width:none; }
    .product-languages summary bdi {max-width:6.25em;overflow-wrap:anywhere}
}
@media (max-width:350px) {
    .hero .buy { margin-top: 6px; }
    .hero .product-name { line-height: 1.28; }
    .hero h1 { font-size: clamp(28px, 8.8vw, 32px); line-height: 1.12; }
}
