@font-face {
    font-family: "Cat Comic";
    src: url("fonts/cat-comic.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Myriad Pro";
    src: url("fonts/myriad-pro-regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
}
:root {
    color-scheme: light;
    --blue: #005EB8;
    --pack-blue: #0956A2;
    --navy: #102555;
    --yellow: #ffe056;
    --cream: #fffdf5;
    --muted: #50586f;
    --line: #cad0db;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100svh;
    background: #f5f1df;
    color: var(--navy);
    font: 400 16px/1.85 "Myriad Pro", "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", system-ui, sans-serif;
}
button, input { font: inherit; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 0;
}
.page { max-width: 440px; margin: 0 auto; padding: 12px 14px 26px; }
.masthead { background: var(--pack-blue); border-radius: 17px 17px 0 0; text-align: center; }
.masthead a { display: inline-grid; justify-items: center; gap: 3px; padding: 13px 8px 12px; color: white; text-decoration: none; }
.masthead a:focus-visible { outline-color: var(--yellow); }
.brand-pair { display: flex; align-items: center; gap: clamp(14px, 4.2vw, 18px); }
.brand-mamee { display: block; width: clamp(96px, 27vw, 114px); height: auto; }
@media (prefers-reduced-motion: no-preference) {
    @keyframes mamee-logo-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .brand-mamee { animation: mamee-logo-fade-in 400ms ease-out; }
}
.brand-sis { display: block; width: clamp(126px, 35.4vw, 149px); height: auto; }
.brand-divider { height: clamp(24px, 7vw, 30px); border-inline-start: 1px solid currentColor; }
.campaign-title { color: #ffe45b; font: 400 clamp(30px, 8.4vw, 37px)/1.1 "Cat Comic", system-ui, sans-serif; }
.carton-masks { position: absolute; pointer-events: none; }
.campaign-box { clip-path: url("#carton-outline"); }
.campaign-box-front { clip-path: url("#carton-front"); }
.campaign { background: var(--cream); border: 1px solid #c0bfae; border-top: 0; border-radius: 0 0 17px 17px; overflow: hidden; }
.artwork {
    position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    height: clamp(132px, 37vw, 163px); background: var(--pack-blue); border-bottom: 1px solid #b9bece;
}
.artwork::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background: repeating-linear-gradient(145deg, transparent 0 72px, #001e6b 73px 76px, transparent 77px 81px, #001e6b 82px 85px, transparent 86px 128px);
}
.artwork img {
    position: relative; z-index: 2; width: auto; height: 100%;
}
.sun { position: absolute; width: 43%; aspect-ratio: 1; background: var(--yellow); border-radius: 50%; transform: translate(1%, 4%); }
.dots { position: absolute; bottom: 7%; right: -4%; width: 35%; height: 60%; background-image: radial-gradient(circle, #81b9f0 2px, transparent 2.3px); background-size: 14px 14px; transform: rotate(-12deg); }
.spark { position: absolute; z-index: 3; background: #ffedd2; clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 59%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.spark-one { width: 10%; aspect-ratio: 1; top: 20%; left: 16%; transform: rotate(10deg); }
.spark-two { width: 6%; aspect-ratio: 1; bottom: 18%; right: 19%; background: var(--yellow); }
.sheet { padding: 22px clamp(16px, 5vw, 22px) 26px; overflow-wrap: anywhere; }
h1 { color: var(--navy); margin: 0; font-size: clamp(27px, 7.6vw, 33px); line-height: 1.65; text-wrap: balance; }
h1 em { position: relative; z-index: 0; font-style: normal; color: var(--blue); }
h1 em::after { content: ""; position: absolute; z-index: -1; left: -1%; right: -1%; bottom: 5%; height: 20%; background: var(--yellow); border-radius: 50% 15% 30% 10%; transform: rotate(-2deg); }
.intro { color: var(--muted); margin: 10px 0 18px; }
form { margin: 0; }
.field, fieldset { margin: 0 0 18px; }
label, legend { display: block; font-weight: 700; margin: 0 0 6px; }
input:not([type=radio], [type=hidden]) {
    display: block; width: 100%; min-height: 49px; box-shadow: none; padding: 8px 12px; color: var(--navy);
    background: #fff; border: 1.5px solid #909aaf; border-radius: 9px;
}
input[aria-invalid=true] { border-color: #a12124; }
input.code-input { font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.field input:focus, .code-input:focus { border-color: var(--blue); }
.hint, .error { font-size: 13px; line-height: 1.85; margin: 7px 0 0; }
.hint { color: var(--muted); }
.error { color: #9b1529; font-weight: 650; }
.primary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 18px;
    background: var(--blue); color: white; padding: 13px 18px; min-height: 54px; border: 0; border-radius: 9px; cursor: pointer;
    font-weight: 750; text-decoration: none; line-height: 1.8;
}
.primary:is(:hover, :active) { background: var(--pack-blue); }
.primary span, .backlink span { font: 700 24px/1 system-ui, sans-serif; }
.box-tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 10px; padding: 3px 10px; border: 1px dashed #b8bbc1; border-radius: 5px; font-size: 12px; color: var(--muted); }
.box-tag bdi { color: var(--navy); font: 700 13px/1.5 ui-monospace, monospace; letter-spacing: .015em; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.choice { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; font-size: 13px; font-weight: 550; }
.choice:has(input:checked) { background: #eef4ff; border-color: var(--blue); }
.choice input { accent-color: var(--blue); min-width: 15px; min-height: 15px; margin: 0; }
.winner-ticket { margin: 20px 0; padding: 16px 18px; border: 1px dashed #aaa058; border-radius: 10px; background: #fff2a7; }
.winner-ticket > span { display: block; color: #555039; font-size: 13px; }
.backlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.winner-ticket h2 { font-size: 22px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.winner-ticket .box-tag { margin: 0; border: 0; padding: 0; }
@media (max-width: 342px) { .choices { grid-template-columns: 1fr; } }
