*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:#f4f2e9;color:#172824;font-family:Arial,'Malgun Gothic',sans-serif;font-size:18px}a{color:inherit;text-decoration:none}header{position:sticky;top:0;z-index:5;padding:22px 4vw;display:flex;justify-content:space-between;gap:20px;background:#f4f2e9f5;border-bottom:1px solid #cdd1c7}.brand{display:flex;gap:8px;align-items:center;font-size:22px;white-space:nowrap}nav{display:flex;gap:26px;align-items:center;font-size:16px;font-weight:700}main{max-width:1240px;margin:auto;padding:64px 32px}h1{font-size:clamp(36px,4.4vw,64px);letter-spacing:-3px;line-height:1.15;margin:15px 0 28px}h2{font-size:30px;letter-spacing:-1px}p{line-height:1.8}.eyebrow{font-size:12px;letter-spacing:2.8px;font-weight:700;color:#396b58}.intro{display:grid;grid-template-columns:1.6fr 1fr;gap:50px;align-items:center}.wallet{background:#173f32;color:#f5f5df;padding:38px;border-radius:24px}.wallet strong{display:block;font-size:60px;margin:26px 0}.wallet small{font-size:25px;color:#b4cbb5}.wallet p{font-size:15px}section{margin-bottom:60px}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:14px 23px;background:#1d6448;color:white;font-weight:700}button:disabled{opacity:.55;cursor:not-allowed}.login-buttons{display:flex;gap:14px;flex-wrap:wrap}[data-provider=kakao]{background:#f9de43;color:#302c20}[data-provider=naver]{background:#03a94b}[data-provider=apple]{background:#222}.note{font-size:14px;color:#657167}.section-heading{display:flex;align-items:end;justify-content:space-between;border-top:2px solid #25392c;padding-top:25px;margin-top:80px}.section-heading span{font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.empty{grid-column:1/-1;padding:36px;background:#e8e9df;border-radius:14px;color:#5c675d}.product{padding:22px;background:white;border:1px solid #d7dccf;border-radius:16px}.product img{width:100%;height:180px;object-fit:contain}.product h3{font-size:20px}.product button{width:100%}.claim{padding:26px;background:#e4ebc6;border-radius:16px}#status{color:#994226}footer{padding:30px 4vw;background:#183c31;color:#d8e1d2;display:flex;gap:25px;justify-content:space-between;font-size:14px}dialog{max-width:480px;width:92vw;border:0;border-radius:18px;padding:28px}dialog::backdrop{background:#10291bd0}dialog label{display:grid;gap:10px}dialog input{width:100%;padding:12px;border:1px solid #abbcb0;border-radius:7px}dialog p{font-size:15px}.actions{display:flex;justify-content:flex-end;gap:14px;margin-top:25px}.consent{display:flex;align-items:center;font-size:15px}.consent input{width:auto}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:13px;border-bottom:1px solid #cad3c8;font-size:15px}[hidden]{display:none!important}@media(max-width:720px){header{padding:16px;flex-direction:column;gap:15px}nav{gap:18px;justify-content:space-between;font-size:14px}main{padding:35px 20px}.intro{grid-template-columns:1fr;gap:14px}.wallet{padding:25px}.wallet strong{font-size:48px;margin:15px 0}.grid{grid-template-columns:1fr 1fr}.product{padding:14px}.product img{height:120px}.product h3{font-size:17px}h2{font-size:25px}footer{flex-wrap:wrap}table{display:block;overflow:auto}}

body{word-break:keep-all;overflow-wrap:anywhere}

.wallet-link{display:block;font-weight:700;margin:18px 0;color:#e4f3bc}.wallet p{overflow-wrap:anywhere;word-break:break-all}.coupon-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.coupon-tabs button{background:#e5e9df;color:#385448;padding:11px 16px;border:1px solid #c4d1c2;font-size:15px}.coupon-tabs button[aria-pressed=true]{background:#173f32;color:white}.coupon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.coupon-card{background:white;border:1px solid #cdd8c8;border-radius:18px;padding:24px;min-width:0}.coupon-top{display:flex;gap:18px;align-items:center}.coupon-top img{width:80px;height:80px;object-fit:contain}.coupon-card h3{font-size:20px;margin:10px 0}.coupon-state{font-size:13px;background:#e8ede7;color:#40594a;border-radius:99px;padding:5px 12px;font-weight:700}.coupon-state.unused{background:#dff4cd;color:#2e5a18}.coupon-state.used{background:#e0e8f3;color:#365375}.coupon-card dl{font-size:14px;margin-top:22px}.coupon-card dl>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;padding:7px 0;border-bottom:1px solid #eef0eb}.coupon-card dt{color:#657167}.coupon-card dd{margin:0;word-break:break-all}.coupon-card button{width:100%;background:#e7eee3;color:#244e36}.pager{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px 0;font-size:14px}.pager button{padding:10px 18px}.activity-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #cdd8c8}.activity-row p{margin:5px 0;font-size:15px}.activity-row small{display:block;color:#657167;font-size:13px}.activity-row b{white-space:nowrap;font-size:16px}.activity-row .plus{color:#167b4d}.history-filter{display:flex;align-items:center;gap:15px;font-size:16px}.history-filter select{font:inherit;padding:10px;border:1px solid #b8c9ba;border-radius:8px;background:white}.activity-list,.coupon-grid{min-width:0}section, #wallet{scroll-margin-top:12px}
@media(max-width:720px){main{padding:24px 16px}.intro{gap:12px}h1{font-size:36px;letter-spacing:-1.5px}.intro>div>p:not(.eyebrow){font-size:16px}.wallet{margin-bottom:24px;padding:24px}.wallet strong{font-size:48px}.wallet p{font-size:13px}.section-heading{margin-top:40px;padding-top:20px}.section-heading h2{font-size:24px}.section-heading span{display:none}section{margin-bottom:36px}.coupon-grid{grid-template-columns:1fr}.coupon-card{padding:20px}.coupon-tabs{gap:7px}.coupon-tabs button{font-size:14px;padding:10px 13px;min-height:42px}.activity-row{align-items:flex-start;gap:12px}.activity-row>div{min-width:0}.activity-row b{font-size:14px}.product button{min-height:44px}.product h3{line-height:1.5}.login-buttons{display:grid;grid-template-columns:1fr}.shop-search{gap:12px}.empty{padding:24px;font-size:16px}.history-filter{justify-content:space-between}.history-filter select{max-width:65%}dialog{padding:20px;max-height:88dvh;overflow:auto}input,select,textarea{font-size:16px!important}.actions{gap:10px}.actions button{padding:12px 16px}.consent{line-height:1.6}footer{line-height:1.8}}

.shop-search{display:flex;gap:20px;margin:20px 0}.shop-search label{display:grid;gap:8px;flex:1}.shop-search input,.shop-search select{font:inherit;padding:13px;border:1px solid #bdc8ba;border-radius:8px;background:white;min-width:0;width:100%}#gift-detail{max-width:620px;max-height:88vh;overflow:auto}#detail-image{display:block;width:100%;height:230px;object-fit:contain}#detail-description{white-space:pre-wrap;font-size:16px;line-height:1.8;margin:24px 0}#detail-close{display:block;margin-left:auto;background:#e8e9df;color:#173f32}#detail-buy{width:100%}@media(max-width:500px){.shop-search{flex-direction:column}.product button{padding:12px 6px;font-size:15px}}

/* Private coupon viewer fills the mobile screen and keeps the original barcode image. */
#coupon-view{width:min(960px,96vw);max-width:100vw;height:94dvh;max-height:100dvh;padding:0;border:0;border-radius:16px;background:#fff;color:#141c25;overflow:auto}#coupon-view::backdrop{background:#101720dc}.coupon-toolbar{position:sticky;top:0;z-index:2;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #ddd}.coupon-toolbar strong{display:block;font-size:19px}.coupon-toolbar span{font-size:14px}.coupon-view-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px}#coupon-image-scroll{overflow:auto;min-height:200px;text-align:center;background:#f2f4f6}#coupon-view-image{display:block;width:auto;max-width:100%;height:auto;max-height:65dvh;margin:auto;object-fit:contain}#coupon-image-scroll.zoomed #coupon-view-image{max-height:none;max-width:none;width:max(100%,700px)}#coupon-view-message{padding:12px 18px;font-size:14px;line-height:1.6}#coupon-view:fullscreen{width:100vw;height:100dvh;border-radius:0;max-height:none}.coupon-open{width:100%;margin-bottom:8px;background:#101d27;color:#fff}.login-buttons [data-provider=google]{background:white;color:#252525;border:1px solid #a9afb5}@media(max-width:600px){#coupon-view{width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.coupon-toolbar{padding-top:max(12px,env(safe-area-inset-top))}.coupon-view-actions button{flex:1 1 40%;min-height:44px}.login-buttons{display:grid;grid-template-columns:1fr 1fr}.login-buttons button{min-height:48px;padding:12px}}

#coupon-view.expanded{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0}#coupon-view.expanded #coupon-view-image{max-height:calc(100dvh - 240px)}

#profile-dialog{width:min(520px,calc(100% - 24px));max-height:90dvh;border:0;border-radius:20px;padding:28px;color:#183d35;background:#fff;overflow:auto}#profile-dialog::backdrop{background:#102b32b3}#profile-dialog label{display:block;font-weight:700;margin:20px 0 8px}#nickname{display:block;width:100%;box-sizing:border-box;font:inherit;font-size:18px;padding:14px;border:1px solid #87a59a;border-radius:10px}.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}#profile-identity{font-size:13px;overflow-wrap:anywhere;color:#5b7469}#profile-status{color:#a42f38}#edit-profile{margin:14px 8px 0 0}#profile-dialog h2{font-size:26px}#profile-dialog p{line-height:1.6}

.shop-login-required{padding:28px;border:1px solid #d8e3df;border-radius:18px;background:#fff;text-align:center}.shop-login-required h3{font-size:23px}.shop-login-required a{display:inline-block;padding:14px 24px;border-radius:10px;background:#153e37;color:white;font-weight:700;text-decoration:none}#shop-content[hidden]{display:none!important}
