:root {
  --navy: #14213d;
  --navy-2: #0b1326;
  --gray: #8a8f98;
  --paper: #f4f1ea;
  --white: #fffdf7;
  --ink: #141820;
  --mint: #a8e6cf;
  --coral: #ff8066;
  --acid: #dff56a;
  --line: rgba(20, 24, 32, .14);
  --shadow: 0 18px 50px rgba(11, 19, 38, .16);
}

* { box-sizing: border-box; }
html { background: var(--navy-2); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: ui-rounded, "Arial Rounded MT Bold", "SF Pro Rounded", system-ui, sans-serif; }
button { color: inherit; font: inherit; }
button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.noise { position: fixed; inset: 0; opacity: .045; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.app-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: 0 20px 112px; position: relative; overflow: hidden; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 0; font-size: .86rem; font-weight: 900; letter-spacing: .08em; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px 11px 11px 4px; color: var(--navy); background: var(--mint); font-size: 1.25rem; font-style: italic; }
.mini-score { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .95rem; background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.coin { color: var(--coral); }
.eyebrow { margin: 0 0 8px; font-size: .72rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hero-copy { padding: 22px 4px 25px; }
.hero-copy h1, .page-view > h1 { margin: 0; font-size: clamp(3.25rem, 15vw, 5rem); line-height: .83; letter-spacing: -.075em; font-weight: 950; }
.hero-copy h1 em { color: var(--coral); font-style: normal; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.hero-copy > p:last-child { max-width: 390px; margin: 23px 0 0; font: 600 1rem/1.55 system-ui, sans-serif; }
.balance-card { position: relative; padding: 22px; color: var(--white); background: var(--navy); border: 2px solid var(--ink); border-radius: 28px 28px 28px 8px; box-shadow: 7px 7px 0 var(--coral); }
.balance-card > div:first-child span { display: block; color: var(--mint); font-size: .72rem; letter-spacing: .11em; font-weight: 900; }
.balance-card strong { display: block; margin-top: 3px; font-size: 3.25rem; line-height: 1; }
.balance-card strong small { font-size: 1rem; }
.level-badge { position: absolute; top: 20px; right: 18px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; text-align: right; font-size: .67rem; font-weight: 900; }
.level-badge span { display: block; margin-bottom: 3px; color: var(--acid); font-size: .56rem; }
.level-badge b { display: block; }
.progress-head { display: flex; justify-content: space-between; margin-top: 23px; font-size: .78rem; }
.progress-track, .success-progress { height: 10px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress-track i, .success-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--acid); transition: width .65s cubic-bezier(.2,.9,.2,1); }
.balance-card > p { margin: 10px 0 0; color: rgba(255,255,255,.72); font: 500 .78rem/1.4 system-ui, sans-serif; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.04em; }
.section-heading > span { font-size: .72rem; font-weight: 800; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 492px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(11,19,38,.94); box-shadow: 0 18px 55px rgba(0,0,0,.32); backdrop-filter: blur(18px); }
.bottom-nav button { min-height: 55px; border: 0; border-radius: 16px; color: rgba(255,255,255,.58); background: transparent; font-size: .62rem; font-weight: 900; letter-spacing: .07em; cursor: pointer; }
.bottom-nav button span { display: block; margin-bottom: 2px; font-size: 1.1rem; }
.bottom-nav button.active { color: var(--navy); background: var(--mint); }
.bottom-nav .nav-scan { color: var(--white); }
.bottom-nav .nav-scan span { color: var(--acid); }
.scan-launch { width: 100%; margin-top: 29px; padding: 15px 17px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 13px; border: 2px solid var(--ink); border-radius: 19px 19px 19px 6px; color: var(--white); background: var(--coral); box-shadow: 5px 6px 0 var(--ink); text-align: left; cursor: pointer; }
.scan-launch-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid var(--ink); border-radius: 15px; color: var(--ink); background: var(--acid); font-size: 1.75rem; }
.scan-launch small, .scan-launch b { display: block; }
.scan-launch small { margin-bottom: 3px; font-size: .75rem; letter-spacing: .08em; }
.scan-launch b { font-size: 1rem; letter-spacing: .02em; }
.scan-launch i { color: var(--ink); font-size: 1.4rem; font-style: normal; }
.happy-strip { margin: 27px -4px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; transform: rotate(-1deg); }
.happy-strip span { padding: 7px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); box-shadow: 2px 2px 0 var(--ink); font-size: .61rem; font-weight: 950; letter-spacing: .06em; }
.happy-strip span:nth-child(2) { color: var(--white); background: var(--navy); transform: rotate(2deg); }
.happy-strip span:nth-child(3) { background: var(--acid); transform: rotate(-1deg); }
.mascot-section { position: relative; margin-top: 42px; }
.mascot-heading { align-items: center; }
.mascot-heading h2 { font-size: clamp(2rem, 10vw, 3rem); line-height: .9; }
.doodle-star { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50% 46% 55% 42%; color: var(--navy); background: var(--coral); box-shadow: 3px 4px 0 var(--ink); font-size: 1.35rem !important; transform: rotate(8deg); }
.mascot-list { display: grid; gap: 16px; }
.mascot-card { width: calc(100% - 5px); min-height: 186px; padding: 16px 17px; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 15px; align-items: center; border: 2px solid var(--ink); border-radius: 27px 27px 27px 8px; box-shadow: 6px 7px 0 var(--ink); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.mascot-card:hover { transform: translate(-2px, -4px) rotate(-.5deg); box-shadow: 9px 11px 0 var(--ink); }
.mascot-card:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.mascot-card.bobi { color: var(--white); background: var(--navy); transform: rotate(-.6deg); }
.mascot-card.mimo { margin-left: 5px; color: var(--white); background: var(--gray); transform: rotate(.7deg); }
.mascot-card.ruru { background: var(--white); transform: rotate(-.35deg); }
.mascot-card.bobi:hover, .mascot-card.mimo:hover, .mascot-card.ruru:hover { transform: translate(-2px, -4px) rotate(0); }
.mascot-visual { position: relative; display: grid; place-items: center; width: 100px; height: 118px; border: 2px solid var(--ink); border-radius: 47% 53% 44% 56% / 42% 40% 60% 58%; color: var(--ink); background: var(--mint); box-shadow: 4px 5px 0 var(--coral); }
.mimo .mascot-visual { background: var(--acid); transform: rotate(3deg); }
.ruru .mascot-visual { background: #dfe2e6; transform: rotate(-3deg); }
.mascot-emoji { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 rgba(20,24,32,.12)); animation: mascotBob 3.1s ease-in-out infinite; }
.mimo .mascot-emoji { animation-delay: -.7s; }
.ruru .mascot-emoji { animation-delay: -1.4s; }
@keyframes mascotBob { 50% { transform: translateY(-6px) rotate(5deg); } }
.mini-bubble { position: absolute; top: -14px; right: -17px; padding: 6px 8px; border: 1.5px solid var(--ink); border-radius: 12px 12px 12px 2px; color: var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; font-size: .56rem; font-weight: 950; transform: rotate(4deg); }
.mascot-info { min-width: 0; display: flex; flex-direction: column; }
.mascot-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 1.52rem; font-weight: 950; line-height: 1; letter-spacing: -.04em; }
.mascot-name i { font: 800 .58rem/1.2 system-ui, sans-serif; letter-spacing: 0; opacity: .72; }
.mascot-type { width: fit-content; margin-top: 7px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: .58rem; font-weight: 950; letter-spacing: .1em; }
.mascot-description { margin-top: 10px; font: 650 .76rem/1.38 system-ui, sans-serif; opacity: .87; }
.mascot-action { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px dashed currentColor; font-size: .63rem; font-weight: 950; letter-spacing: .07em; }
.mascot-action b { font-size: 1rem; }
.sorting-note { margin: 22px 2px 0; padding: 13px 14px; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; border: 1.5px dashed var(--ink); border-radius: 16px; background: rgba(255,255,255,.55); font: .72rem/1.4 system-ui, sans-serif; }
.sorting-note span { grid-row: 1 / 3; font-size: 1.3rem; }
.sorting-note b { display: block; font-size: .76rem; }
.front-rewards { margin-top: 43px; }
.front-rewards .section-heading button { border: 0; padding: 8px 0; background: transparent; font-size: .8rem; font-weight: 900; cursor: pointer; }
.reward-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: end; }
.reward-ticket { min-height: 176px; padding: 14px 10px 12px; display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 18px 18px 18px 5px; box-shadow: 3px 4px 0 var(--ink); color: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.reward-ticket:nth-child(2) { min-height: 177px; transform: rotate(1.5deg); }
.reward-ticket:nth-child(3) { min-height: 190px; transform: rotate(-1deg); }
.reward-ticket:hover { transform: translateY(-5px) rotate(0); box-shadow: 5px 8px 0 var(--ink); }
.reward-ticket:active { transform: translateY(2px); box-shadow: 1px 2px 0 var(--ink); }
.reward-ticket.mint { background: var(--mint); }
.reward-ticket.coral { background: var(--coral); }
.reward-ticket.navy { color: var(--white); background: var(--navy); }
.reward-ticket > span { font-size: 1.85rem; font-weight: 950; letter-spacing: -.05em; line-height: 1; }
.reward-ticket small { margin-top: 2px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.reward-ticket b { margin-top: auto; font-size: .84rem; line-height: 1.15; }
.reward-ticket i { margin-top: 8px; font-size: 1.1rem; font-style: normal; }
.reward-ticket em { margin-top: 4px; font-size: .62rem; font-style: normal; font-weight: 900; opacity: .72; }
.page-view { padding-top: 34px; }
.page-view > h1 { font-size: clamp(3.6rem, 17vw, 5.4rem); color: var(--navy); }
.page-intro { margin: 18px 0 28px; font: 500 1rem/1.5 system-ui, sans-serif; }
.reward-list, .activity-list { display: grid; gap: 13px; }
#rewards-view .reward-list { margin-top: 30px; }
.reward-card { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px 14px; align-items: center; padding: 17px; border: 2px solid var(--ink); border-radius: 20px 20px 20px 6px; color: inherit; background: rgba(255,255,255,.62); box-shadow: 4px 5px 0 var(--ink); text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.reward-card:hover { transform: translateY(-3px); box-shadow: 6px 8px 0 var(--ink); }
.reward-card.locked { opacity: .68; filter: grayscale(.25); }
.reward-card.available { background: var(--white); box-shadow: 5px 6px 0 var(--coral); }
.reward-card > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 1.15rem; font-weight: 950; }
.reward-card .reward-card-copy { width: auto; height: auto; display: block; border-radius: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; }
.reward-card small { display: block; font-size: .72rem; letter-spacing: .1em; }
.reward-card-copy strong { display: block; margin: 1px 0 4px; font-size: 1.08rem; }
.reward-card-copy > span { display: block; color: rgba(20,24,32,.65); font: .875rem/1.4 system-ui, sans-serif; }
.reward-card > b { font-size: 1.35rem; }
.reward-card > i { grid-column: 2 / 4; padding-top: 8px; border-top: 1px dashed var(--gray); font-size: .7rem; font-style: normal; font-weight: 950; letter-spacing: .06em; }
.activity-empty, .activity-item { padding: 20px; border: 2px solid var(--ink); border-radius: 20px 20px 20px 6px; background: var(--white); }
.activity-empty strong { display: block; margin-bottom: 5px; font-size: 1.1rem; }
.activity-empty p { margin: 0; font: .9rem/1.5 system-ui, sans-serif; }
.activity-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.activity-item .activity-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mint); font-size: 1.3rem; }
.activity-item b { display: block; font-size: .9rem; }
.activity-item small { color: rgba(20,24,32,.6); font: .75rem system-ui, sans-serif; }
.activity-item > strong { color: var(--navy); font-size: 1rem; }
.profile-view { padding-bottom: 20px; }
.profile-card { margin-top: 28px; padding: 21px; display: grid; grid-template-columns: 72px 1fr; gap: 15px; align-items: center; border: 2px solid var(--ink); border-radius: 27px 27px 27px 8px; color: var(--white); background: var(--navy); box-shadow: 7px 8px 0 var(--coral); }
.profile-avatar { display: grid; place-items: center; width: 70px; height: 70px; border: 2px solid var(--ink); border-radius: 48% 52% 43% 57%; color: var(--ink); background: var(--acid); box-shadow: 3px 4px 0 var(--mint); font-size: 2.1rem; transform: rotate(-4deg); }
.profile-identity { min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name-row h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 1.35rem; line-height: 1.05; }
.profile-name-row button { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.38); border-radius: 9px; color: var(--white); background: rgba(255,255,255,.1); cursor: pointer; }
.profile-identity p { margin: 7px 0 4px; color: var(--acid); font-size: .76rem; font-weight: 950; letter-spacing: .06em; }
.profile-email { display: block; width: fit-content; max-width: 100%; margin: 6px 0; overflow: hidden; color: var(--white); text-overflow: ellipsis; white-space: nowrap; font: 700 .8rem/1.3 system-ui, sans-serif; text-underline-offset: 3px; }
.profile-email.missing { color: var(--mint); }
.profile-identity small { display: block; color: rgba(255,255,255,.62); font-size: .72rem; }
.profile-name-form { grid-column: 1 / -1; padding: 13px; border: 1px dashed rgba(255,255,255,.4); border-radius: 14px; }
.profile-name-form label { display: block; margin: 12px 0 7px; color: var(--mint); font-size: .8rem; font-weight: 900; }
.profile-name-form label:first-child { margin-top: 0; }
.profile-name-form input { min-width: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 11px; font: 700 1rem system-ui, sans-serif; }
.profile-name-form input { width: 100%; }
.profile-name-form p { margin: 8px 0 0; color: rgba(255,255,255,.62); font: .75rem/1.4 system-ui, sans-serif; }
.profile-name-form button { width: 100%; min-height: 46px; margin-top: 13px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 11px; background: var(--acid); font-size: .78rem; font-weight: 950; cursor: pointer; }
.profile-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profile-stats > div { padding: 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.08); }
.profile-stats strong { display: block; color: var(--mint); font-size: 1.65rem; line-height: 1; }
.profile-stats span { display: block; margin-top: 5px; font-size: .67rem; font-weight: 900; letter-spacing: .07em; }
.profile-menu { margin-top: 30px; display: grid; gap: 10px; }
.profile-menu > button { width: 100%; min-height: 74px; padding: 12px 14px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; border: 2px solid var(--ink); border-radius: 18px 18px 18px 6px; background: var(--white); box-shadow: 3px 4px 0 var(--ink); text-align: left; cursor: pointer; }
.profile-menu > button[aria-expanded="true"] { background: var(--mint); }
.profile-menu .menu-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: 13px; color: var(--white); background: var(--navy); font-size: 1.15rem; font-weight: 950; }
.profile-menu button > span:nth-child(2) b { display: block; font-size: .95rem; }
.profile-menu button > span:nth-child(2) small { display: block; margin-top: 3px; color: rgba(20,24,32,.6); font-size: .8rem; line-height: 1.3; }
.profile-menu button > i { font-size: 1.1rem; font-style: normal; transition: transform .2s; }
.profile-menu > button[aria-expanded="true"] > i { transform: rotate(180deg); }
.profile-panel { margin: -2px 3px 5px; padding: 15px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 18px 6px; background: rgba(255,255,255,.55); }
.how-list { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.how-list li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.how-list li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--acid); font-size: .85rem; font-weight: 950; }
.how-list b { font-size: .9rem; }
.how-list p { margin: 3px 0 0; font: .875rem/1.45 system-ui, sans-serif; }
.faq-list details { padding: 13px 3px; border-bottom: 1px dashed var(--gray); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { font-size: .9rem; font-weight: 900; cursor: pointer; }
.faq-list p { margin: 9px 0 0; font: .875rem/1.5 system-ui, sans-serif; }
.profile-menu > .logout-button { margin-top: 8px; color: var(--white); background: var(--coral); }
.profile-menu > .logout-button small { color: rgba(255,255,255,.76) !important; }
.my-rewards-list { display: grid; gap: 10px; }
.my-reward-item { padding: 13px; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--white); }
.my-reward-item > span { font-size: 1.4rem; }
.my-reward-item b { display: block; font-size: .9rem; }
.my-reward-item small { display: block; margin-top: 3px; color: rgba(20,24,32,.6); font-size: .78rem; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(5,7,11,.72); backdrop-filter: blur(9px); }
.reward-modal, .logout-modal { position: relative; width: min(100%, 470px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 23px 23px; border: 2px solid var(--ink); border-radius: 30px 30px 30px 9px; background: var(--paper); box-shadow: 9px 10px 0 var(--coral); animation: pop .3s cubic-bezier(.2,1.3,.4,1); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: var(--white); font-size: 1.35rem; font-weight: 900; cursor: pointer; }
.reward-modal-icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 3px 0 25px; border: 2px solid var(--ink); border-radius: 46% 54% 58% 42%; background: var(--mint); box-shadow: 5px 6px 0 var(--navy); font-size: 2.7rem; transform: rotate(-3deg); }
.reward-modal h2, .logout-modal h2 { margin: 0; max-width: 360px; color: var(--navy); font-size: clamp(2.2rem, 11vw, 3.4rem); line-height: .88; letter-spacing: -.055em; }
.reward-cost { margin-top: 18px; display: flex; align-items: flex-end; gap: 7px; }
.reward-cost strong { font-size: 2rem; line-height: 1; }
.reward-cost span { padding-bottom: 2px; font-size: .76rem; font-weight: 950; letter-spacing: .08em; }
.reward-modal > p:not(.eyebrow), .logout-modal > p:not(.eyebrow) { margin: 14px 0 0; font: 1rem/1.55 system-ui, sans-serif; }
.reward-includes { margin-top: 18px; padding: 14px; border: 1.5px dashed var(--ink); border-radius: 15px; background: var(--white); }
.reward-includes span { display: block; color: var(--coral); font-size: .7rem; font-weight: 950; letter-spacing: .09em; }
.reward-includes b { display: block; margin-top: 5px; font: 800 .9rem/1.4 system-ui, sans-serif; }
.reward-modal .primary-button:disabled { justify-content: center; color: var(--ink); background: #d7d7d7; }
.logout-modal { text-align: center; }
.logout-face { margin-bottom: 12px; font-size: 3.5rem; }
.logout-modal h2 { margin-inline: auto; }
.modal-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.modal-actions button { min-height: 50px; border: 2px solid var(--ink); border-radius: 14px; font-size: .75rem; font-weight: 950; cursor: pointer; }
.modal-actions button:first-child { background: var(--white); }
.modal-actions button:last-child { color: var(--white); background: var(--navy); }
body.modal-open { overflow: hidden; }
.scan-view { min-height: calc(100vh - 76px); padding-top: 5px; }
.scanner-view { min-height: calc(100vh - 76px); padding-top: 5px; }
.scanner-heading { padding: 12px 4px 19px; }
.scanner-heading h1 { margin: 0; color: var(--navy); font-size: clamp(3.5rem, 17vw, 5.3rem); line-height: .82; letter-spacing: -.075em; }
.scanner-heading > p:last-child { margin: 16px 0 0; max-width: 390px; font: 600 1rem/1.5 system-ui, sans-serif; }
.camera-card { position: relative; padding: 15px; overflow: hidden; border: 2px solid var(--ink); border-radius: 27px 27px 27px 8px; background: var(--navy-2); box-shadow: 7px 8px 0 var(--coral); }
.camera-status { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 2px 4px 11px; color: var(--white); font-size: .78rem; letter-spacing: .08em; }
.camera-status span { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(223,245,106,.12); }
#reader { min-height: 282px; overflow: hidden; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 18px; color: var(--white); background: #05070b; }
#reader video { width: 100% !important; min-height: 282px; object-fit: cover; border-radius: 18px; }
#reader img { max-width: 70px !important; margin-top: 70px; filter: grayscale(1) invert(1); opacity: .65; }
#reader__dashboard_section, #reader__dashboard { padding: 16px !important; color: var(--white); }
#reader button, #reader select { min-height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; font: 700 .82rem system-ui, sans-serif; }
.camera-card .primary-button { margin-top: 15px; color: var(--ink); background: var(--acid); box-shadow: 4px 5px 0 var(--coral); }
.upload-qr { display: block; padding: 16px 4px 5px; color: var(--mint); text-align: center; text-decoration: underline; text-underline-offset: 4px; font-size: .8rem; font-weight: 800; cursor: pointer; }
.scanner-message { min-height: 35px; margin: 10px 5px 0; color: rgba(255,255,255,.68); text-align: center; font: .78rem/1.4 system-ui, sans-serif; }
.camera-guide { position: absolute; z-index: 4; pointer-events: none; top: 99px; left: 50%; width: 190px; height: 190px; transform: translateX(-50%); }
.camera-guide i { position: absolute; width: 36px; height: 36px; border-color: var(--acid); border-style: solid; }
.camera-guide i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 9px 0 0; }
.camera-guide i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 9px 0 0; }
.camera-guide i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 9px; }
.camera-guide i:nth-child(4) { right: 0; bottom: 0; border-width: 0 4px 4px 0; border-radius: 0 0 9px; }
.back-button { border: 0; background: transparent; padding: 10px 2px; font-size: .76rem; font-weight: 900; cursor: pointer; }
.scan-card { margin-top: 15px; padding: 28px 24px 25px; text-align: center; border: 2px solid var(--ink); border-radius: 34px 34px 34px 9px; background: var(--white); box-shadow: 9px 10px 0 var(--navy); }
.verified-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .61rem; font-weight: 900; letter-spacing: .08em; }
.verified-pill span { width: 7px; height: 7px; border-radius: 50%; background: #32b878; box-shadow: 0 0 0 4px rgba(50,184,120,.14); }
.scan-mascot { display: grid; place-items: center; width: 126px; height: 126px; margin: 26px auto 20px; border: 2px solid var(--ink); border-radius: 42% 58% 55% 45%; background: var(--mint); box-shadow: 7px 8px 0 var(--coral); font-size: 4rem; transform: rotate(-3deg); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(3deg) translateY(-7px); } }
.scan-card h1 { margin: 0; font-size: clamp(2.55rem, 13vw, 4rem); letter-spacing: -.075em; line-height: .9; }
.scan-category { width: fit-content; margin: 10px auto 0; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--acid); font-size: .66rem; font-weight: 950; letter-spacing: .11em; }
.scan-copy { min-height: 48px; margin: 14px auto 18px; max-width: 330px; font: 500 .9rem/1.5 system-ui, sans-serif; }
.scan-rule { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; border-top: 1px dashed var(--gray); border-bottom: 1px dashed var(--gray); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.scan-rule b { color: var(--coral); font-size: 1.15rem; }
.primary-button { width: 100%; min-height: 58px; margin-top: 22px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 2px solid var(--ink); border-radius: 17px; color: var(--white); background: var(--navy); box-shadow: 4px 5px 0 var(--coral); font-size: .8rem; font-weight: 950; letter-spacing: .06em; cursor: pointer; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.claim-note { margin: 15px 0 0; color: rgba(20,24,32,.56); font: .68rem system-ui, sans-serif; }
.success-sheet { position: absolute; z-index: 30; inset: 88px 4px auto; min-height: 535px; padding: 40px 28px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 2px solid var(--ink); border-radius: 36px 36px 36px 9px; color: var(--white); background: var(--navy); box-shadow: 10px 12px 0 var(--coral); animation: pop .38s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(30px); } }
.success-sheet .burst { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; color: var(--navy); background: var(--acid); font-size: 2.2rem; box-shadow: 0 0 0 13px rgba(223,245,106,.11); }
.success-sheet p { margin: 28px 0 0; color: var(--mint); font-size: .72rem; letter-spacing: .12em; font-weight: 900; }
.success-sheet > strong { margin-top: 5px; font-size: 7rem; line-height: .9; letter-spacing: -.08em; }
.success-sheet > span { font-size: 1.1rem; font-weight: 900; }
.success-progress { width: 100%; margin-top: 28px; }
.success-sheet > small { margin-top: 10px; color: rgba(255,255,255,.66); font: .75rem system-ui, sans-serif; }
.success-sheet .primary-button { margin-top: auto; color: var(--ink); background: var(--mint); box-shadow: 4px 5px 0 var(--coral); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 96px; transform: translate(-50%, 20px); min-width: 230px; padding: 13px 17px; border-radius: 14px; color: var(--white); background: var(--ink); text-align: center; font-size: .75rem; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  body { padding: 34px 0; }
  .app-shell { min-height: calc(100vh - 68px); border: 2px solid var(--ink); border-radius: 34px; background: var(--paper); box-shadow: 18px 22px 0 rgba(255,128,102,.75); }
}
@media (max-width: 380px) {
  .mascot-card { grid-template-columns: 86px minmax(0, 1fr); padding: 15px 13px; gap: 13px; }
  .mascot-visual { width: 82px; height: 104px; }
  .mascot-emoji { font-size: 2.7rem; }
  .mini-bubble { right: -12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
