:root {
    --ink: #17376b;
    --muted: #415674;
    --blue: #2367e8;
    --blue-dark: #164fbe;
    --green: #117455;
    --amber: #ffe600;
    --line: #eadf9b;
    --canvas: #fffdf2;
    --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.app-shell { margin: 0; min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff164 0, #fffbc7 280px, #fffdf2 620px); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input { touch-action: manipulation; }
a, button { -webkit-user-drag: none; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #176ec7; outline-offset: 4px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); font-weight: 750; letter-spacing: -.035em; }
h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 20px; }
.ui-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 2000; padding: 12px 18px; background: white; border: 2px solid var(--blue); border-radius: 12px; }
.skip-link:focus { top: 10px; }
.app-header { position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid #ebd300; background: #ffe600; }
.header-inner { max-width: 1200px; min-height: 80px; margin: auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 23px; font-weight: 650; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--blue); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .015em; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: var(--amber); color: #a46100; }
.brand-mark .ui-icon { width: 28px; height: 28px; }
.desktop-nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.desktop-nav > a { color: var(--muted); font-size: 14px; font-weight: 650; padding: 12px 16px; border-radius: 12px; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav .is-active { color: var(--blue); background: #edf5ff; }
.desktop-nav .nav-register { color: #fff; background: var(--blue); }
.app-menu { position: relative; margin-left: auto; }
.desktop-nav + .app-menu { margin-left: 0; }
.app-menu summary { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; list-style: none; color: var(--ink); }
.app-menu summary::-webkit-details-marker { display: none; }
.app-menu[open] summary { background: #edf5ff; color: var(--blue); }
.app-menu nav { position: absolute; right: 0; top: calc(100% + 12px); width: min(290px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 16px 48px #18334b1a; }
.app-menu nav a, .app-menu nav button { width: 100%; display: flex; gap: 10px; align-items: center; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-decoration: none; font-size: 14px; text-align: left; }
.app-menu nav a:hover, .app-menu nav button:hover { background: #f0f5fa; }
.app-menu form { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.content { flex: 1; width: 100%; min-width: 0; }
.page-container { max-width: 1160px; margin: 0 auto; padding: 34px 24px 44px; }
.page-heading { margin: 0 0 28px; max-width: 720px; }
.page-heading h1 { margin: 12px 0 12px; }
.page-heading h1 span { color: var(--blue); }
.page-heading p { margin: 0; color: var(--muted); max-width: 530px; font-size: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #886011; font-size: 12px; font-weight: 700; }
.eyebrow .ui-icon { width: 18px; height: 18px; }
.home-heading { max-width: none; }
.home-heading h1 { font-size: clamp(30px, 4vw, 44px); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: start; gap: 28px; }
.home-layout > * { min-width: 0; }
.surface-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px #18334b04; }
.offer-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px #18334b07; }
.offer-image-link { position: relative; display: block; overflow: hidden; background: #f0f4f6; color: #fff; text-decoration: none; }
.offer-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .25s ease; }
.offer-image-link:hover .offer-image { transform: scale(1.018); }
.offer-image-link:focus-visible { outline-offset: -5px; }
.offer-image-action { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 12px; background: #edf5ff; color: var(--blue); font-size: 13px; font-weight: 700; }
.offer-image-action .ui-icon { width: 16px; height: 16px; }
.offer-image-placeholder { min-height: 220px; aspect-ratio: 4/3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; color: var(--blue); padding: 32px; text-align: center; }
.offer-image-placeholder .ui-icon { width: 56px; height: 56px; }
.discount-badge { padding: 4px 8px; border-radius: 6px; background: #e6f5ed; color: #13694e; font-size: 11px; font-weight: 750; }
.offer-copy { padding: 22px; }
.offer-meta { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.sponsored-label { background: #f0f3f6; border-radius: 6px; padding: 4px 8px; color: #526170; font-weight: 550; }
.offer-title { margin: 12px 0; font-size: 23px; line-height: 1.3; }
.offer-title a { text-decoration: none; color: var(--ink); }
.offer-title a:hover { color: var(--blue); }
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin: 12px 0 18px; }
.offer-price del { font-size: 13px; color: var(--muted); }
.offer-price strong { color: var(--green); font-size: 31px; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.offer-price-note { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 14px; font-weight: 700; font-size: 15px; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 14px #0866bf19; }
.button-primary:hover { color: #fff; background: var(--blue-dark); }
.button-secondary { color: var(--blue); background: #edf5ff; border-color: #d8e9fc; }
.button-secondary:hover { background: #deedff; color: var(--blue-dark); }
.button:active { transform: scale(.985); }
.offer-cta { display: flex; width: 100%; }
.offer-destination { margin: 12px 0 0; display: flex; gap: 5px; align-items: flex-start; justify-content: center; color: var(--muted); font-size: 10px; text-align: center; overflow-wrap: anywhere; }
.offer-destination .ui-icon { width: 13px; height: 13px; margin-top: 1px; }
.offer-validity { margin: 7px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.section-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; }
.featured-offer > .section-link { margin-top: 10px; width: 100%; justify-content: center; }
.section-link:hover { text-decoration: underline; }
.participation-card { padding: 26px; scroll-margin-top: 100px; }
.section-kicker { display: flex; gap: 7px; align-items: center; margin-bottom: 12px; color: #856119; font-size: 12px; font-weight: 650; }
.section-kicker .ui-icon { width: 19px; height: 19px; }
.participation-card h2 { margin-bottom: 18px; font-size: 25px; }
.participation-card > p { color: var(--muted); font-size: 14px; }
.voucher-highlight { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, #fff2cd, #fff9e9); }
.voucher-highlight small { display: block; color: #75602a; font-size: 12px; }
.voucher-highlight strong { display: block; color: #6f4d08; font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.voucher-symbol { color: #9c731d; }
.voucher-symbol .ui-icon { width: 37px; height: 37px; }
.participation-description { margin-bottom: 4px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; padding: 6px 0; color: var(--blue); font-size: 13px; font-weight: 650; text-align: left; }
.attempts-info { display: flex; gap: 7px; align-items: center; margin: 16px 0; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #138363; }
.field-label { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.digit-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.numeric-only { width: 100%; min-width: 0; height: 58px; border: 1.5px solid #c5d6e6; border-radius: 11px; background: #fafdff; color: var(--ink); font-size: 27px; font-weight: 650; text-align: center; caret-color: var(--blue); }
.numeric-only:focus { border-color: var(--blue); outline: 3px solid #0866bf20; outline-offset: 1px; }
.numeric-only::placeholder { color: #a3b2bf; }
.button-participate { width: 100%; margin: 16px 0 8px; border: 1px solid #d9e5ee; color: var(--blue); background: #f1f7fe; }
.button-participate img { width: 32px; height: 32px; }
.button-participate:hover { background: #e6f1ff; }
fieldset:disabled .button-participate { opacity: .5; }
.participation-card > .section-link { margin-top: 8px; }
.participation-benefits { display: grid; gap: 12px; margin: 24px 0; font-size: 14px; }
.participation-benefits span { display: flex; gap: 8px; align-items: center; }
.participation-benefits .ui-icon { width: 18px; height: 18px; color: var(--green); }
.participation-card > .button { width: 100%; }
.sign-in-note { margin: 15px 0 0; text-align: center; font-size: 13px; }
.home-note { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 30px auto 0; padding: 10px; color: var(--muted); font-size: 12px; }
.home-note .ui-icon { color: #c07629; width: 18px; height: 18px; }
.home-note p { margin: 0; }
.empty-state { text-align: center; padding: 44px 28px; }
.empty-symbol { display: grid; width: 80px; height: 80px; place-items: center; border-radius: 26px; background: #fff1cc; color: #9a6b12; margin: 0 auto 24px; }
.empty-symbol .ui-icon { width: 36px; height: 36px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { max-width: 400px; margin: 12px auto 22px; color: var(--muted); font-size: 14px; }
.offers-empty { background: #eaf2fc; border: 1px dashed #c4d9f1; border-radius: var(--radius); padding-block: 65px; }
.offers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.catalog-note { margin: 28px auto 0; max-width: 620px; font-size: 12px; color: var(--muted); text-align: center; }
.notice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: 14px; padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }
.notice-success { background: #eefaf4; color: #146447; border-color: #c8e7d8; }
.notice-error { background: #fff2ef; color: #9a3324; border-color: #f2d0c9; }
.notice-info { background: #eef5ff; color: #244c79; border-color: #d3e2f5; }
.connection-status { padding: 12px 16px; border-radius: 12px; background: #fff1cd; color: #755207; font-size: 13px; margin-bottom: 18px; }
.reward-notice { padding: 24px 18px; border: 1px solid #c6e8d5; border-radius: 18px; background: #effbf3; text-align: center; animation: reward-entry .5s ease both; }
.reward-notice > span { display: block; color: #bd7c08; font-size: 50px; }
.reward-notice h3 { font-size: 20px; color: #146447; }
.reward-notice p { font-size: 13px; color: #315947; }
@keyframes reward-entry { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 80px; align-items: start; max-width: 1000px; margin: 12px auto; }
.auth-intro { position: sticky; top: 110px; padding-top: 24px; }
.auth-intro h1 { margin-top: 18px; font-size: 40px; }
.auth-intro p { color: var(--muted); }
.auth-panel { min-width: 0; padding: 32px; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { font-size: 28px; margin: 0 0 10px; }
.auth-heading h2 { font-size: 25px; }
.auth-heading p { color: var(--muted); margin-bottom: 0; font-size: 14px; }
.auth-panel form > .button { display: flex; width: 100%; margin-top: 24px; }
.field { margin-bottom: 18px; min-width: 0; }
.field > label { display: block; margin: 0 0 7px; font-size: 14px; color: var(--ink); font-weight: 650; }
.required-mark { color: #9e5428; }
.form-control { min-height: 48px; border: 1px solid #cbd8e3; border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--ink); font-size: 16px; }
.form-control:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px #0866bf18; color: var(--ink); }
.form-control.is-invalid { border-color: #b4412d; background-image: none; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; }
.field-error { display: block; color: #a83425; font-size: 12px; margin-top: 6px; }
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 88px; }
.password-toggle { position: absolute; top: 0; right: 2px; height: 48px; min-width: 80px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); font-size: 12px; font-weight: 650; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(76px, .3fr); gap: 14px; }
.form-section-title { font-size: 16px; margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-subheading { font-size: 20px; margin: 8px 0 18px; }
.login-options { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.checkbox-label { display: flex; align-items: center; gap: 9px; min-height: 44px; cursor: pointer; }
.checkbox-label input { width: 19px; height: 19px; accent-color: var(--blue); }
.auth-alternative { margin: 24px 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.auth-return { display: flex; margin-top: 12px; justify-content: center; font-size: 13px; }
.optional-fields { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.optional-fields summary { min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; }
.optional-fields .field { margin-top: 16px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.narrow-page { max-width: 700px; margin: 0 auto; }
.page-back { margin-bottom: 12px; }
.profile-summary { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: #e8f2ff; color: var(--blue); font-size: 24px; font-weight: 750; }
.profile-summary h2 { margin: 0; font-size: 20px; }
.profile-summary p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.voucher-tabs { display: flex; gap: 8px; margin: 0 0 26px; padding: 5px; border-radius: 14px; background: #e7eef7; }
.voucher-tabs a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px; border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 650; color: var(--muted); }
.voucher-tabs .is-active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px #18334b0a; }
.voucher-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.voucher-item { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.voucher-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.voucher-item small { font-size: 12px; color: var(--muted); }
.voucher-item h2 { font-size: 16px; letter-spacing: 0; margin: 4px 0 0; }
.voucher-value { color: var(--green); font-size: 26px; font-weight: 750; }
.status-pill { padding: 5px 9px; border-radius: 7px; font-size: 11px; background: #fff2cc; color: #78550f; font-weight: 650; }
.status-pill.received { background: #e7f7ee; color: #166348; }
.voucher-item p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.drawn-number { display: inline-block; padding: 8px 15px; border-radius: 10px; color: var(--blue); background: #edf5ff; font-size: 25px; font-weight: 750; letter-spacing: .1em; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 24px 0; }
.pager-current { font-size: 12px; color: var(--muted); text-align: center; }
.pager .button { font-size: 12px; padding-inline: 10px; }
.pager .ui-icon { width: 16px; height: 16px; }
.app-footer { padding: 20px 20px 30px; color: var(--muted); font-size: 11px; text-align: center; }
.app-footer a { color: var(--muted); }
.bottom-nav { display: none; }
.video-placeholder { aspect-ratio: 16/9; background: #eef4fc; border-radius: 16px; overflow: hidden; margin-top: 18px; }
.video-launch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; width: 100%; height: 100%; min-height: 160px; padding: 24px; color: var(--blue); background: transparent; font-size: 14px; font-weight: 650; }
.video-launch .ui-icon { width: 46px; height: 46px; }
.video-placeholder iframe { width: 100%; height: 100%; border: 0; }
.video-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.video-links a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #eef5ff; color: var(--blue); border-radius: 10px; font-size: 13px; text-decoration: none; }
.modal-content { border: 0; border-radius: 22px; }
.modal-header { border-bottom-color: var(--line); padding: 20px; }
.modal-body { padding: 20px; font-size: 14px; color: var(--muted); }
.btn-close { width: 24px; height: 24px; padding: 12px; }
.app-toast { position: fixed; z-index: 2000; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 13px 18px; border-radius: 14px; background: #18334b; color: #fff; font-size: 13px; box-shadow: 0 8px 24px #18334b25; }
.button.is-busy { cursor: progress; opacity: .75; }
@media (min-width: 992px) { .featured-offer .offer-image { max-height: 440px; } }
@media (max-width: 991.98px) {
    html { scroll-padding-top: 80px; }
    .header-inner { min-height: 66px; padding: 10px 20px; gap: 12px; }
    .desktop-nav { display: none; }
    .desktop-nav + .app-menu { margin-left: auto; }
    .brand { font-size: 22px; }
    .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
    .brand small { font-size: 9px; }
    .page-container { padding: 24px 20px 30px; }
    .home-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 620px; margin: 0 auto; }
    .home-heading { max-width: 620px; margin-inline: auto; }
    .home-heading h1 { font-size: 34px; }
    .offers-grid { gap: 20px; }
    .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 0; margin: 0 auto; }
    .auth-intro { display: none; }
    .auth-panel { padding: 28px; }
    .bottom-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: fixed; z-index: 1025; bottom: 0; left: 0; right: 0; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid #dfe7ef; background: #fff; box-shadow: 0 -4px 24px #18334b06; }
    .bottom-nav a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 4px; border-radius: 12px; color: #566c7e; font-size: 10px; font-weight: 650; text-decoration: none; }
    .bottom-nav .ui-icon { width: 22px; height: 22px; }
    .bottom-nav .is-active { background: #edf5ff; color: var(--blue); }
    .app-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .app-toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
    .keyboard-open .bottom-nav { display: none; }
    .keyboard-open .app-footer { padding-bottom: 24px; }
    .keyboard-open .app-toast { bottom: 16px; }
}
@media (max-width: 575.98px) {
    .header-inner { padding-inline: 16px; }
    .page-container { padding: 22px 16px 24px; }
    .page-heading { margin-bottom: 22px; }
    .page-heading h1 { font-size: 30px; }
    .page-heading p { font-size: 14px; }
    .eyebrow { font-size: 11px; }
    .home-heading h1 { margin-top: 10px; margin-bottom: 10px; }
    .surface-card, .participation-card { padding: 22px; border-radius: 21px; }
    .offer-card { border-radius: 21px; }
    .offer-image { aspect-ratio: 4 / 3; }
    .offer-copy { padding: 19px; }
    .offer-title { font-size: 21px; }
    .offer-price strong { font-size: 29px; }
    .offer-image-action { font-size: 12px; bottom: 10px; left: 10px; right: 10px; }
    .offer-destination { font-size: 10px; }
    .offers-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-note { font-size: 11px; align-items: flex-start; padding-inline: 12px; }
    .empty-state { padding: 34px 20px; }
    .offers-empty { padding-block: 44px; }
    .empty-state h2 { font-size: 22px; }
    .auth-panel { padding: 24px 20px; }
    .auth-heading h1 { font-size: 26px; }
    .participation-card h2 { font-size: 24px; }
    .voucher-highlight { padding: 16px; }
    .digit-inputs { gap: 6px; }
    .numeric-only { height: 54px; font-size: 26px; }
    .button-participate { font-size: 14px; padding-inline: 10px; }
    .button-participate .ui-icon { width: 18px; height: 18px; }
    .notice { padding: 13px; font-size: 13px; }
    .form-row { gap: 10px; }
    .profile-summary h2 { font-size: 18px; }
    .modal-dialog { margin: 16px; }
    .app-menu nav { right: -2px; }
}
@media (max-width: 359.98px) {
    .brand small { display: none; }
    .brand { font-size: 20px; }
    .surface-card, .participation-card { padding: 18px; }
    .home-heading h1 { font-size: 28px; }
    .numeric-only { height: 48px; font-size: 23px; border-radius: 9px; }
    .digit-inputs { gap: 4px; }
    .button-participate img { width: 26px; height: 26px; }
    .button-participate .ui-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Bright, playful Dia Feliz theme. All reactions are drawn with lightweight vectors. */
.brand-mark { background: #fff9a5; color: #1557c7; border: 1px solid #efcd00; }
.brand small { color: #254578; }
.app-menu summary { background: #fff9b4; border-color: #d9bd18; color: #154ea9; }
.desktop-nav > a { color: #21447d; }
.desktop-nav a:hover, .desktop-nav .is-active { color: #fff; background: var(--blue); }
.desktop-nav .nav-register { box-shadow: 0 3px 0 #154cb8; }
.home-heading .eyebrow, .page-heading > .eyebrow { background: #fffac1; border: 1px solid #efda51; color: #2953a4; border-radius: 99px; padding: 5px 10px; }
.page-heading h1 { color: #153f94; }
.surface-card, .offer-card { border-color: #e8dc8e; box-shadow: 0 5px 0 #d9bd2a0d, 0 10px 26px #204d9010; }
.offer-image-link { background: #fffdf2; }
.offer-image-action { background: var(--blue); color: #fff; }
.discount-badge { background: #ffe600; color: #173c82; border: 1px solid #ebcd00; }
.sponsored-label { background: #fff5bd; color: #72500b; }
.button-primary { background: var(--blue); box-shadow: 0 4px 0 #144cb9, 0 8px 18px #1e5bc01a; }
.button-primary:hover { background: #1d5fd8; }
.button-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #144cb9; }
.button-secondary { background: #fff5ae; color: #244e9c; border-color: #ecd448; }
.button-secondary:hover { background: #ffeb70; color: #173c82; }
.offer-cta { margin-bottom: 5px; }
.participation-card { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fffef4 100%); border: 2px solid #efda48; }
.participation-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #1657d6, #3483fa); }
.section-kicker { color: #2457bd; }
.voucher-highlight { background: linear-gradient(120deg, #ffe600, #fff38a); border: 1px solid #e6c800; box-shadow: 0 4px 0 #d4ac0012; }
.voucher-highlight small { color: #385184; }
.voucher-highlight strong { color: #164294; }
.voucher-symbol { color: #2465df; }
.numeric-only { border: 2px solid #a3bff3; background: #fff; color: #154cb6; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.numeric-only:focus { border-color: #2367e8; background: #fffbe0; outline: 3px solid #ffdf4b80; transform: translateY(-2px); }
.numeric-only.is-filled { background: #fff6bd; border-color: #d4b100; }
.numeric-only[aria-invalid="true"] { border-color: #bb6c12; background: #fff8df; }
.button-participate { min-height: 80px; gap: 12px; padding: 9px 16px; margin: 20px 0 8px; background: var(--blue); border: 2px solid #1d55c4; box-shadow: 0 5px 0 #123d9b, 0 10px 22px #2467e82b; color: #fff; }
.button-participate:hover { background: #1d5fde; }
.button-participate:active { transform: translateY(3px); box-shadow: 0 2px 0 #123d9b; }
.button-participate.is-busy { opacity: 1; }
.button-participate [data-participation-label] { flex: 1; min-width: 0; font-size: 16px; text-align: left; line-height: 1.35; }
.button-participate > .ui-icon { width: 22px; height: 22px; }
.participation-hint { color: #375b95; font-size: 12px; margin: 12px 0 0; text-align: center; }
.participation-receipt { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #edf4ff; border: 1px solid #b9cff8; }
.participation-receipt[hidden] { display: none; }
.participation-receipt p { margin: 0; font-size: 13px; color: #244d93; }
.participation-receipt .text-button { font-size: 12px; padding-bottom: 0; }
.bottom-nav { background: #fffef6; border-top-color: #e2d57b; }
.bottom-nav .is-active { color: #fff; background: var(--blue); box-shadow: 0 3px 0 #154db6; }
.auth-panel { border-top: 4px solid #f0d000; }
.empty-symbol { background: #fff06b; color: #2459bd; }
.offers-empty { background: linear-gradient(140deg, #fff59b, #fffce2); border-color: #dac751; }
.status-pill { background: #fff1a0; color: #5a4b0b; }
.voucher-tabs { background: #f4df6a66; }
.voucher-tabs .is-active { background: #2367e8; color: #fff; }

/* The face has independent eyes, eyebrows and mouth, instead of moving a static image. */
.happy-mascot { display: inline-flex; width: 60px; height: 60px; flex: 0 0 auto; vertical-align: middle; }
.happy-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot-face { transform-origin: 60px 58px; animation: mascot-float 3.8s ease-in-out infinite; }
.mascot-eye { transform-box: fill-box; transform-origin: center; animation: mascot-blink 4.8s infinite; }
.mascot-eye-right { animation-delay: .11s; }
.mascot-look { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .18s ease; }
.mascot-mouth { transform-box: fill-box; transform-origin: center top; animation: mascot-talk 5.2s ease-in-out infinite; }
.mascot-brow { transform-box: fill-box; transform-origin: center; transition: transform .22s ease; }
[data-mood="curious"] .mascot-brow-left { transform: translateY(-3px) rotate(-9deg); }
[data-mood="curious"] .mascot-brow-right { transform: translateY(-2px) rotate(8deg); }
[data-mood="curious"] .mascot-mouth { animation: mascot-curious 2s ease-in-out infinite; }
[data-mood="hello"] .mascot-eye-right, [data-mood="miss"] .mascot-eye-right { animation: mascot-wink 3.7s ease-in-out infinite; }
[data-mood="hello"] .mascot-face { animation: mascot-greet .7s ease-in-out 2; }
[data-mood="thinking"] .mascot-look { animation: mascot-looking 1.8s ease-in-out infinite; }
[data-mood="thinking"] .mascot-mouth { animation: mascot-thinking-mouth 1.3s ease-in-out infinite; }
[data-mood="thinking"] .mascot-brow-left { transform: translateY(-3px) rotate(-12deg); }
[data-mood="limit"] .mascot-eye { animation: mascot-sleepy 5s ease-in-out infinite; }
[data-mood="limit"] .mascot-mouth { animation: mascot-curious 4s ease-in-out infinite; }
[data-mood="happy"] .mascot-face { animation: mascot-cheer .65s ease-in-out 3; }
[data-mood="happy"] .mascot-mouth { animation: mascot-laugh .8s ease-in-out infinite; }
[data-mood="happy"] .mascot-brow { transform: translateY(-3px); }
.feedback-open .button-participate .happy-mascot * { animation-play-state: paused; }
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes mascot-blink { 0%, 40%, 46%, 88%, 94%, 100% { transform: scaleY(1); } 43%, 91% { transform: scaleY(.08); } }
@keyframes mascot-wink { 0%, 20%, 34%, 100% { transform: scaleY(1); } 24%, 29% { transform: scaleY(.06); } }
@keyframes mascot-talk { 0%, 46%, 66%, 100% { transform: scaleY(1); } 50%, 60% { transform: scaleY(.72); } 55%, 64% { transform: scaleY(.96); } }
@keyframes mascot-curious { 0%, 100% { transform: scale(.82, .7); } 50% { transform: scale(.9, .86); } }
@keyframes mascot-looking { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-4px, 1px); } 75% { transform: translate(4px, -1px); } }
@keyframes mascot-thinking-mouth { 0%, 100% { transform: scale(.48, .65); } 50% { transform: scale(.58, .85); } }
@keyframes mascot-sleepy { 0%, 70%, 100% { transform: scaleY(.72); } 80%, 84% { transform: scaleY(.08); } }
@keyframes mascot-laugh { 0%, 100% { transform: scale(1.02, 1.02); } 50% { transform: scale(1.08, .82); } }
@keyframes mascot-greet { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg) translateY(-2px); } 70% { transform: rotate(9deg) translateY(-2px); } }
@keyframes mascot-cheer { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(5deg); } }

/* Result overlay remains above the fold and also closes with Android/browser Back. */
body.feedback-open { overflow: hidden; }
.feedback-open .bottom-nav { pointer-events: none; }
.feedback-layer[hidden] { display: none !important; }
.feedback-layer { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.feedback-scrim { position: absolute; inset: 0; background: #0b2c6f9c; animation: feedback-dim .18s ease-out both; }
.feedback-panel { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); overflow: auto; overscroll-behavior: contain; padding: 22px 26px 26px; border-radius: 28px; border: 2px solid #fff5a4; background: linear-gradient(180deg, #fff06c 0, #fff9cf 235px, #fff 390px); box-shadow: 0 24px 80px #061f554d; text-align: center; animation: feedback-arrive .38s cubic-bezier(.18, .8, .3, 1.2) both; }
.feedback-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #174587; background: #fff9d2b3; font-size: 29px; line-height: 1; }
.feedback-character { position: relative; display: grid; place-items: center; width: 156px; height: 156px; margin: 0 auto 9px; }
.happy-mascot-feedback { width: 150px; height: 150px; z-index: 1; }
.feedback-halo { position: absolute; inset: -5px; border-radius: 50%; background: radial-gradient(circle, #fffef8 0, #fffbd1 46%, transparent 68%), repeating-conic-gradient(from 0deg, #fff59a70 0deg 12deg, transparent 12deg 30deg); }
.feedback-eyebrow { display: inline-block; color: #2a56a8; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.feedback-panel h2 { color: #14449d; margin: 11px 0 14px; font-size: 29px; line-height: 1.15; letter-spacing: -.04em; }
#feedback-message { color: #344a6b; font-size: 15px; line-height: 1.55; margin: 0; }
.feedback-detail { color: #355ea2; font-size: 13px; font-weight: 650; margin: 16px 0 0; }
.feedback-actions { display: grid; gap: 12px; margin-top: 24px; }
.feedback-actions .button { min-height: 49px; width: 100%; }
.feedback-actions [hidden], .feedback-prize[hidden] { display: none !important; }
.feedback-prize { display: grid; gap: 3px; padding: 14px; margin-top: 18px; border-radius: 17px; background: #ffe600; border: 1px solid #e8c900; }
.feedback-prize > span { font-size: 12px; color: #31518b; }
.feedback-prize > strong { font-size: 31px; font-weight: 850; color: #16429b; line-height: 1.2; }
.feedback-confetti { display: none; position: absolute; inset: 0 0 auto; height: 260px; overflow: hidden; pointer-events: none; border-radius: 26px 26px 0 0; }
[data-mood="happy"] .feedback-confetti { display: block; }
.feedback-confetti i { position: absolute; top: -25px; left: calc(7% + var(--particle) * 7.4%); width: 9px; height: 16px; border-radius: 2px; background: hsl(calc(var(--particle) * 37), 95%, 54%); animation: feedback-confetti 1.7s ease-out both; animation-delay: calc(var(--particle) * 35ms); }
@keyframes feedback-confetti { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(280px) rotate(330deg); } }
@keyframes feedback-arrive { from { opacity: 0; transform: translateY(22px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes feedback-dim { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 575.98px) {
    .button-participate { padding-inline: 12px; }
    .button-participate .happy-mascot { width: 55px; height: 55px; }
    .button-participate [data-participation-label] { font-size: 15px; }
    .feedback-panel { padding: 17px 22px 24px; }
    .feedback-panel h2 { font-size: 26px; }
    .feedback-character { width: 142px; height: 142px; }
    .happy-mascot-feedback { width: 138px; height: 138px; }
}
@media (max-height: 650px) {
    .feedback-panel { padding-top: 12px; }
    .feedback-character { width: 112px; height: 112px; margin-bottom: 0; }
    .happy-mascot-feedback { width: 110px; height: 110px; }
    .feedback-panel h2 { font-size: 25px; margin-block: 8px 10px; }
    .feedback-actions { margin-top: 18px; gap: 10px; }
    #feedback-message { font-size: 14px; }
    .feedback-detail { margin-top: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .happy-mascot *, .feedback-layer *, .numeric-only { animation: none !important; transition: none !important; }
    .feedback-confetti { display: none !important; }
}
