:root {
  --paper:#fffdf7; --surface:#ffffff; --ink:#2c4247; --muted:#657777;
  --green:#34785a; --green-dark:#235a42; --green-soft:#edf5e8; --coral:#e97667;
  --coral-dark:#b9473b; --peach:#fff0e4; --line:#e5e9df; --yellow:#f7cd68;
  --radius:22px; --shadow:0 8px 26px rgba(60,82,59,.055);
  --font:"Avenir Next","Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Noto Sans CJK JP","Yu Gothic",sans-serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-bottom:110px}
body {margin:0;background:#f1f5ea;color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.75;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere}
body:before {content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 4% 30%,#e5f0d7 0,transparent 45%),radial-gradient(ellipse at 98% 80%,#f5e8d8 0,transparent 43%)}
button,a,input,summary {-webkit-tap-highlight-color:transparent}
button,input,select {font:inherit}
button {color:inherit;cursor:pointer;touch-action:manipulation}
button {border:0;background:none}
a {color:var(--green)}
button:disabled {cursor:default}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible {outline:3px solid #478ba0;outline-offset:4px}
button:hover:not(:disabled) {filter:brightness(.985)}
button:active:not(:disabled) {transform:translateY(1px)}
img {display:block;max-width:100%;height:auto}
h1,h2,h3,p {margin:0}
h1,h2,h3 {line-height:1.5}
[hidden] {display:none!important}
.icon {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.svg-library {position:absolute;width:0;height:0;overflow:hidden}
.skip-link {position:fixed;top:-70px;left:12px;z-index:200;background:#fff;padding:12px;border-radius:10px}
.skip-link:focus {top:12px}
.app-shell {position:relative;max-width:560px;min-height:100dvh;margin:0 auto;background:var(--paper);box-shadow:0 0 90px #3c5d3610;border-inline:1px solid #dbe3d3}
.site-header {height:86px;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand {display:flex;align-items:center;gap:10px;padding:0;text-align:left;line-height:1}
.brand-mark {display:grid;place-items:center;width:43px;height:46px;border-radius:15px 15px 19px 19px;background:#eaf3dd;color:var(--green)}
.brand-mark .icon {width:29px;height:29px;stroke-width:1.6}
.brand-text small {display:block;font-size:10px;letter-spacing:.22em;font-weight:750;margin-bottom:4px}
.brand-text strong {font-size:23px;letter-spacing:.055em;font-weight:850}
.brand-period {color:#e99775}
.header-login {display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 11px;background:#fff;border:1px solid var(--line);border-radius:50px;font-size:12px;font-weight:700;white-space:nowrap}
.header-login .icon {width:15px;height:15px}
.header-account {display:flex;align-items:center;gap:7px;padding:4px 0 4px 8px;min-height:44px;font-size:12px;color:var(--green);font-weight:750}
.header-account img {width:38px;height:38px;border-radius:50%;object-fit:cover;object-position:50% 52%;background:#f3e9be;border:2px solid #fff}
#main-content {outline:none}
.tab-panel {padding:8px 24px 130px;animation:arrive .2s ease}
.campaign-card {background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.campaign-hero {position:relative;min-height:254px;padding:25px 24px 22px;isolation:isolate;overflow:hidden;background:linear-gradient(118deg,#fff0c8 3%,#fff6de 56%,#ffdece 100%)}
.campaign-hero:before {content:"";position:absolute;z-index:-1;width:230px;height:230px;right:-58px;top:38px;background:#fffbefbd;border-radius:50%}
.campaign-hero:after {content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 48% 14%,#fff 0 3px,transparent 4px),radial-gradient(circle at 85% 85%,#f4b694 0 3px,transparent 4px),radial-gradient(circle at 25% 84%,#fff 0 3px,transparent 4px)}
.campaign-brand {font-size:9px;font-weight:800;letter-spacing:.15em;color:#866e47;margin-bottom:12px}
.hero-copy {position:relative;z-index:2;width:67%;pointer-events:none}
.hero-copy h2 {font-size:21px;line-height:1.5;font-weight:800;letter-spacing:.01em}
.hero-amount {display:flex;align-items:baseline;gap:3px;margin-top:0;line-height:1.2;font-weight:800;color:#a74331;white-space:nowrap}
.hero-amount strong {font-size:64px;letter-spacing:-.065em;line-height:1.3;font-variant-numeric:tabular-nums}
.hero-amount span {font-size:15px;line-height:1.2;letter-spacing:0}
.hero-prize-badge {display:inline-flex;padding:3px 12px;border:1px solid #f3d3b4;border-radius:50px;background:#fff9eecf;font-size:11px;color:#815138;align-items:center;gap:5px;margin-top:6px}
.hero-prize-badge strong {font-size:16px}
.hero-cat {position:absolute;width:151px;right:11px;bottom:17px;z-index:1;filter:drop-shadow(0 7px 1px #bbaa8525);animation:breathe 6s ease-in-out infinite;transform-origin:center bottom}
.hero-kusu {position:absolute;right:20px;top:0;width:53px;z-index:0;transform:rotate(-7deg);transform-origin:top center;animation:sway 8s ease-in-out infinite}
.campaign-body {padding:18px 20px 19px}
.campaign-meta {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-bottom:15px}
.pill {display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:50px;font-size:11px;font-weight:700;line-height:1.8;background:var(--green-soft);color:var(--green);white-space:nowrap}
.pill:before {content:"";height:5px;width:5px;border-radius:50%;background:currentColor}
.pill.pill-neutral {background:#eff1ed;color:#63706b}
.pill.pill-coral {background:#fff0e7;color:#a8503f}
.pill.pill-no-dot:before {display:none}
.deadline {display:flex;align-items:center;gap:5px;font-size:12px;color:#586a69}
.deadline .icon {width:14px;height:14px}
.btn {min-height:50px;border-radius:13px;padding:12px 16px;font-size:14px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;text-decoration:none;line-height:1.55;transition:background .15s,box-shadow .15s}
.btn .icon {width:18px;height:18px}
.btn-primary {background:var(--green);color:#fff;box-shadow:0 3px 0 #23583d}
.btn-primary:hover:not(:disabled) {background:var(--green-dark)}
.btn-coral {background:var(--coral);color:#fff;box-shadow:0 3px 0 #c85d50}
.btn-secondary {background:#fff;border:1px solid #b7cdbd;color:var(--green)}
.btn-light {background:#eff5e9;color:var(--green)}
.btn-plain {background:#f4f4ef;color:var(--muted)}
.btn-danger {background:#b84b40;color:#fff}
.btn:disabled {background:#f0f3ed;color:#637a62;box-shadow:none;border:1px solid #e0e8db}
.btn + .btn {margin-top:11px}
.btn .btn-trailing {margin-left:auto}
.btn small {font-size:11px;font-weight:600}
.small-note {font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px}
.inline-details {border-bottom:1px solid var(--line);margin-top:9px}
summary {cursor:pointer;list-style:none;min-height:52px;display:flex;align-items:center;gap:9px;user-select:none;font-size:13px;font-weight:700}
summary::-webkit-details-marker {display:none}
summary .icon {width:17px;height:17px;color:#7a8e72}
summary:after {content:"+";margin-left:auto;font-size:20px;font-weight:400;color:#71826f;line-height:1}
details[open]>summary:after {content:"−"}
.details-content {padding:0 2px 19px;font-size:13px;color:#5d7069;line-height:1.9}
.details-content p+p {margin-top:9px}
.steps {display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.steps li {display:flex;gap:12px;align-items:flex-start}
.step-number {width:24px;height:24px;background:#eff4e8;color:var(--green);border-radius:50%;font-size:12px;display:grid;place-items:center;flex-shrink:0;font-weight:800}
.section {margin-top:30px}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.section-heading h2 {font-size:17px;font-weight:800;display:flex;gap:8px;align-items:center}
.section-heading h2 .icon {width:19px;height:19px;color:#67855c}
.section-heading .hint {font-size:11px;color:var(--muted)}
.empty-card {text-align:center;padding:29px 18px;border:1px dashed #d6dfce;border-radius:18px;background:#fcfdf8}
.empty-illustration {display:grid;place-items:center;width:45px;height:45px;margin:0 auto 11px;background:#edf4e5;border-radius:15px;color:#88a179;transform:rotate(-7deg)}
.empty-illustration .icon {width:24px;height:24px}
.empty-card h3 {font-size:14px;font-weight:700}
.empty-card p {font-size:12px;color:var(--muted);margin-top:6px;line-height:1.9}
.empty-card .btn {max-width:240px;margin:15px auto 0;min-height:44px;font-size:12px}
.history-list {display:flex;flex-direction:column;gap:10px}
.history-row {display:flex;align-items:center;gap:12px;padding:16px 14px;background:#fff;border:1px solid var(--line);border-radius:16px}
.history-icon {width:42px;height:46px;border-radius:12px;background:#fff2d5;color:#bf9650;display:grid;place-items:center;flex-shrink:0}
.history-icon .icon {width:22px;height:22px}
.history-info {flex:1;min-width:0}
.history-info h3 {font-size:13px;line-height:1.75;font-weight:750}
.history-meta {font-size:11px;color:var(--muted);display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:3px}
.history-status {font-size:10px;color:var(--green);background:#eef4e8;padding:1px 6px;border-radius:4px}
.history-status.ended {color:#788079;background:#f0f2ed}
.history-status.won {color:#a75c34;background:#fff0d7}
.icon-button {padding:11px;min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:12px;color:var(--green)}
.icon-button .icon {width:17px;height:17px}
.text-button {display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 8px;color:var(--green);font-size:12px;font-weight:700}
.text-button .icon {width:15px;height:15px}
.more-button {width:100%;margin-top:10px}
.event-hero {position:relative;background:linear-gradient(125deg,#edf6df,#e4f3ed);min-height:268px;padding:27px 23px;overflow:hidden;isolation:isolate}
.event-hero:before {content:"";position:absolute;inset:44% 0 0;z-index:-2;background:url('assets/scenery.webp') center center/cover;opacity:.45;mask-image:linear-gradient(transparent,black 32%)}
.event-hero:after {content:"";position:absolute;bottom:-32px;left:-15%;width:130%;height:101px;border-radius:50%;background:#d7e8b8;z-index:-1}
.event-hero .campaign-brand {color:#426849}
.event-hero h2 {position:relative;font-size:24px;color:#345c49;font-weight:800;line-height:1.65;z-index:2}
.event-hero .hero-cat {width:125px;right:14px;bottom:12px}
.event-hero .tiny-gift {position:absolute;right:118px;bottom:14px;z-index:2;transform:rotate(-7deg) scale(1.12);transform-origin:bottom center;animation:gift-sway 5s ease-in-out infinite}
.event-body {padding:20px}
.event-body h3 {font-size:17px;margin:11px 0 7px}
.event-body p {font-size:13px;color:var(--muted);line-height:1.95;margin-bottom:17px}
.event-history {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:18px 15px;background:#fff;border:1px solid var(--line);border-radius:16px;align-items:center}
.event-thumb {display:block;grid-column:1/-1;width:100%;padding:0;overflow:hidden;background:#fff8e8;aspect-ratio:16/9;border-radius:10px}
.event-thumb img {display:block;width:100%;height:100%;object-fit:contain}
.event-history h3 {font-size:13px;line-height:1.7}
.event-history p {font-size:11px;color:var(--muted);margin-top:3px}
.event-history>.icon-button {margin-left:auto}
.profile-strip {display:flex;align-items:center;gap:12px;margin:2px 0 21px}
.profile-avatar {width:47px;height:47px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #e4e6d6;object-fit:cover;background:#fff2d0}
.profile-name {font-weight:800;font-size:16px}
.profile-handle {font-size:11px;color:var(--muted);line-height:1.6}
.profile-strip .pill {margin-left:auto;font-size:10px}
.garden-card {border-radius:var(--radius);overflow:hidden;border:1px solid #dbe4d2;background:#fff;box-shadow:var(--shadow)}
.garden-scene {position:relative;height:280px;overflow:hidden;background:linear-gradient(#d5f1f3 0,#eaf8f1 40%,#c8e29d 65%,#d9e9b6 100%);isolation:isolate}
.garden-backdrop {position:absolute;top:23px;width:100%;height:132px;background:url('assets/scenery.webp') center center/cover;opacity:.72;mask-image:linear-gradient(transparent,black 25%,black 72%,transparent)}
.garden-ground {position:absolute;left:-20%;width:140%;height:175px;bottom:-45px;background:linear-gradient(#e0edbb,#d1e3a8);border-radius:50%;box-shadow:0 -3px 0 #c4db9b30}
.garden-ground:after {content:"";position:absolute;width:150px;height:130px;bottom:-25px;left:36%;background:#f8edcd;border-radius:60% 40% 0 0;transform:rotate(18deg);opacity:.95}
.garden-label {position:absolute;top:16px;left:16px;z-index:5;background:#fffefaeb;padding:4px 11px;border-radius:50px;display:flex;gap:5px;align-items:center;font-size:11px;color:#557153}
.garden-label .icon {width:13px;height:13px}
.garden-kusu {position:absolute;right:26px;top:-1px;width:53px;transform-origin:top center;animation:sway 9s ease-in-out infinite;opacity:.95}
.cat-interactive {position:absolute;width:131px;bottom:39px;left:calc(50% - 83px);padding:0;z-index:3;line-height:0;transform-origin:bottom center;animation:breathe 6s ease-in-out infinite;filter:drop-shadow(0 5px 1px #78875320);border-radius:42%}
.cat-interactive:hover {filter:drop-shadow(0 5px 1px #78875330)!important}
.cat-interactive.celebrate {animation:cat-jump .65s ease 2}
.cat-interactive img {width:100%;height:auto}
.cat-bubble {position:absolute;left:24%;bottom:191px;max-width:64%;background:#fffefa;padding:6px 12px;border-radius:14px;font-size:11px;color:#56734d;box-shadow:0 2px 8px #2e493918;z-index:6;pointer-events:none;opacity:0;transform:translateY(5px);transition:.2s}
.cat-bubble:after {content:"";position:absolute;bottom:-6px;left:27px;border-top:7px solid #fffefa;border-inline:5px solid transparent}
.cat-bubble.show {opacity:1;transform:translateY(0)}
.garden-seedling {position:absolute;width:50px;height:48px;bottom:27px;left:64%;color:#5f9a44;z-index:2}
.garden-seedling:after {content:"";position:absolute;width:59px;height:14px;border-radius:50%;background:#c5aa75;bottom:-5px;left:-5px;z-index:-1;box-shadow:0 3px 0 #b39b7044}
.garden-seedling .icon {width:46px;height:46px;stroke:#5c853e;fill:#a4cb67;stroke-width:1.1}
.garden-spark {position:absolute;width:6px;height:6px;border-radius:50%;background:#fffbe4;animation:twinkle 5s infinite}
.spark-a {left:20%;top:44%}.spark-b{right:19%;top:57%;animation-delay:1.8s}.spark-c{left:43%;top:20%;animation-delay:3s}
.tiny-gift {position:absolute;width:37px;height:35px;bottom:47px;left:18%;background:#ffe3a4;border:1.5px solid #d8b987;border-radius:4px;z-index:2;box-shadow:0 3px 0 #b19a6915}
.tiny-gift:before {content:"";position:absolute;inset:-5px -3px auto;height:10px;border:1.5px solid #d8b987;border-radius:3px;background:#ffecc2}
.tiny-gift:after {content:"";position:absolute;left:14px;top:-5px;width:7px;height:39px;background:#e78d82}
.gift-bow {position:absolute;width:13px;height:8px;top:-12px;left:5px;border:2px solid #d58075;border-radius:80% 80% 5% 80%;transform:rotate(20deg)}
.gift-bow:after {content:"";position:absolute;width:10px;height:5px;left:8px;top:-5px;border:2px solid #d58075;border-radius:80% 80% 80% 5%;transform:rotate(-35deg)}
.scene-flower {position:absolute;bottom:37px;left:10%;height:21px;width:5px;background:#78a951;border-radius:3px;z-index:4}
.scene-flower:before {content:"";position:absolute;width:9px;height:9px;left:-2px;top:-3px;background:#f4d773;border-radius:50%;box-shadow:0 -6px 0 1px #fff5dd,6px -2px 0 1px #fff5dd,4px 5px 0 1px #fff5dd,-4px 5px 0 1px #fff5dd,-6px -2px 0 1px #fff5dd}
.flower-2 {left:85%;bottom:45px;transform:scale(.85)}.flower-3{left:13%;bottom:65px;transform:scale(.68)}.flower-4{left:77%;bottom:24px;transform:scale(.8)}.flower-5{left:35%;bottom:21px;transform:scale(.8)}
.garden-progress {padding:17px 18px 19px}
.garden-progress-title {display:flex;justify-content:space-between;gap:8px;align-items:center}
.garden-progress-title h2 {font-size:15px;font-weight:800}
.garden-progress-title span {font-size:11px;color:#718464}
.guest-invite {padding:21px 18px;background:#fff;margin-top:16px;border:1px solid var(--line);border-radius:18px;text-align:center}
.guest-invite h2 {font-size:16px}
.guest-invite p {font-size:12px;color:var(--muted);margin:7px 0 16px;line-height:1.9}
.guest-invite .small-note {margin:11px 0 0;font-size:10px}
.points-card {background:linear-gradient(105deg,#fff7e5,#fffdf7);border:1px solid #eee4cb;border-radius:18px;padding:19px;margin-top:18px}
.points-top {display:flex;justify-content:space-between;align-items:center;gap:12px}
.points-label {font-size:12px;font-weight:700;color:#8b7646;display:flex;align-items:center;gap:5px}
.points-value {font-size:36px;font-weight:800;letter-spacing:-.045em;line-height:1.4;color:#796132;font-variant-numeric:tabular-nums}
.points-value small {font-size:14px;letter-spacing:0;margin-left:5px}
.coin {height:48px;width:48px;border-radius:50%;display:grid;place-items:center;background:#f9d47b;border:3px solid #ffe8ac;box-shadow:0 0 0 1px #e8c375,inset 0 0 0 1px #deb362;color:#b38739;transform:rotate(10deg)}
.coin .icon {width:25px;height:25px;stroke-width:1.5}
.points-bottom {border-top:1px solid #eee4cf;padding-top:12px;margin-top:12px;display:flex;justify-content:space-between;gap:9px;align-items:center;font-size:11px;color:#8b7f61}
.points-bottom .icon {width:14px;height:14px;color:#8a9f60}
.points-bottom strong {font-weight:700;font-size:12px;color:#647942}
.participation-total {display:flex;align-items:center;justify-content:space-between;margin-top:11px;padding:14px 17px;border-radius:15px;border:1px solid var(--line);background:#fff;font-size:13px}
.participation-total strong {font-size:21px;color:var(--green);letter-spacing:-.03em}
.participation-total strong small {font-size:12px;margin-left:4px;letter-spacing:0}
.points-table {width:100%;border-collapse:collapse;font-size:12px}
.points-table td {padding:8px 0;border-bottom:1px solid #e5eadf}
.points-table td:last-child {text-align:right;font-weight:800;color:var(--green);white-space:nowrap;padding-left:10px}
.points-ledger {list-style:none;padding:0;margin:13px 0 0}
.points-ledger li {display:flex;gap:12px;justify-content:space-between;padding:8px 0;font-size:11px;border-bottom:1px solid #edf0e7;color:#78856f}
.points-ledger strong {font-size:12px;color:#6a874f;font-weight:700}
.account-section {margin-top:27px}
.account-section h2 {font-size:15px;margin-bottom:10px}
.account-menu {background:#fff;border:1px solid var(--line);border-radius:17px;padding:0 16px}
.account-menu details+details {border-top:1px solid var(--line)}
.account-menu .inline-details {border-bottom:none;margin-top:0}
.account-menu summary {min-height:57px;font-size:13px}
.account-menu .details-content {padding-bottom:17px}
.account-detail-row {display:flex;gap:12px;justify-content:space-between;padding:6px 0;font-size:12px}
.account-detail-row span {color:#7b8876}
.account-detail-row strong {font-weight:600;text-align:right}
.legal-footer {border-top:1px solid var(--line);padding-top:15px;margin-top:20px}
.legal-links {display:flex;gap:8px 15px;flex-wrap:wrap}
.legal-links button {font-size:10px;color:#7c887d;min-height:36px;padding:0}
.legal-footer .legal-body {font-size:12px;line-height:1.9;color:#71806d;padding:16px 0;border-top:1px solid #e8eddf}
.legal-footer .legal-body h3 {font-size:13px;margin-bottom:6px}
.copyright {font-size:9px;color:#95a08e;letter-spacing:.07em;margin-top:16px}
.bottom-nav {position:fixed;z-index:30;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,560px);display:grid;grid-template-columns:repeat(3,1fr);background:#fffefaee;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid #e4e9dc;box-shadow:0 -5px 20px #304a3310;padding:8px 17px calc(9px + env(safe-area-inset-bottom));}
.bottom-nav button {min-height:59px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:700;color:#899487;border-radius:12px;white-space:nowrap}
.nav-icon {display:flex;align-items:center;justify-content:center;width:51px;height:30px;border-radius:15px;transition:background .2s,color .2s}
.nav-icon .icon {width:21px;height:21px;stroke-width:1.7}
.bottom-nav button[aria-selected="true"] {color:var(--green)}
.bottom-nav button[aria-selected="true"] .nav-icon {background:#eaf3df}
.toast {position:fixed;bottom:calc(99px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:min(calc(100% - 36px),480px);transform:translate(-50%,10px);padding:13px 18px;border-radius:14px;background:#2e5749;color:#fff;box-shadow:0 8px 20px #26453820;font-size:12px;text-align:center;opacity:0;pointer-events:none;transition:.2s;z-index:100}
.toast.show {opacity:1;transform:translate(-50%,0)}
dialog {width:min(calc(100vw - 34px),425px);border:0;border-radius:24px;padding:0;color:var(--ink);background:var(--paper);box-shadow:0 24px 80px #223d3d30;max-height:85dvh;overflow-y:auto}
dialog::backdrop {background:#203f4059;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.dialog-content {padding:30px 25px 25px;position:relative}
.dialog-close {position:absolute;right:9px;top:9px;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;color:#84947e}
.dialog-close .icon {width:18px;height:18px}
.dialog-mark {width:55px;height:55px;display:grid;place-items:center;border-radius:19px;background:#eaf3df;color:var(--green);margin-bottom:15px}
.dialog-mark .icon {width:28px;height:28px}
.dialog-content h2 {font-size:21px;font-weight:800;margin-bottom:9px}
.dialog-content>p {font-size:13px;line-height:1.95;color:#6b7c6a;margin-bottom:20px}
.dialog-content .dialog-fine {font-size:11px;margin:13px 0 0;color:#89947f}
.dialog-content .btn {margin-top:12px}
.dialog-art {height:116px;margin:2px auto 16px;width:auto;max-width:none}
.welcome-points {display:flex;align-items:baseline;justify-content:center;gap:6px;color:#9b7431;margin:10px 0;font-size:17px;font-weight:750}
.welcome-points strong {font-size:49px;letter-spacing:-.04em;line-height:1.3}
.dialog-centered {text-align:center}
.noscript {position:fixed;inset:20px 20px auto;padding:30px;background:#fff;z-index:100;border:1px solid #ccc}
.storage-warning {padding:12px 18px;background:#fff0e2;color:#89583a;font-size:12px;line-height:1.8}
@keyframes breathe {0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.012)}}
@keyframes sway {0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes gift-sway {0%,100%{transform:rotate(-9deg) scale(1.12)}50%{transform:rotate(3deg) scale(1.12)}}
@keyframes twinkle {0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.1)}}
@keyframes cat-jump {0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-13px) rotate(-4deg)}60%{transform:translateY(-3px) rotate(4deg)}}
@keyframes arrive {from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media (min-width:760px) {
  .app-shell {margin-top:28px;min-height:calc(100dvh - 28px);border-radius:25px 25px 0 0;overflow:hidden}
  .site-header {padding:19px 30px;height:94px}
  .tab-panel {padding:10px 30px 140px}
  .campaign-hero {min-height:270px;padding:28px}
  .hero-copy h2 {font-size:24px}
  .hero-amount strong {font-size:72px}
  .hero-cat {width:174px;right:20px}
  .hero-kusu {width:64px;right:31px}
  .bottom-nav {border-inline:1px solid #dbe3d3}
  .garden-scene {height:310px}
  .cat-interactive {width:150px;bottom:38px}
  .garden-backdrop {height:160px}
  .garden-kusu {width:62px}
  .event-hero {min-height:290px;padding:30px}
  .event-hero .hero-cat {width:147px;right:28px}
}
@media (max-width:374px) {
  .site-header {padding-inline:18px;height:79px}
  .tab-panel {padding-inline:18px}
  .brand-text strong {font-size:20px}
  .brand-mark {width:38px;height:42px}
  .brand {gap:7px}
  .header-login {font-size:10px;padding-inline:9px}
  .campaign-hero {min-height:226px;padding:21px 17px}
  .hero-copy h2 {font-size:18px}
  .hero-amount strong {font-size:54px}
  .hero-amount span {font-size:12px}
  .hero-cat {width:124px;right:7px;bottom:18px}
  .hero-kusu {width:43px;right:13px}
  .campaign-body {padding:16px 15px}
  .campaign-meta {font-size:11px;gap:5px}
  .deadline {font-size:11px}
  .event-hero {padding:23px 19px;min-height:252px}
  .event-hero h2 {font-size:21px}
  .event-hero .hero-cat {width:108px;right:9px}
}
@media print {.bottom-nav,.toast,dialog{display:none!important}.app-shell{max-width:none;margin:0;box-shadow:none}.tab-panel{padding-bottom:20px}.tab-panel[hidden]{display:none!important}}
/* Keep the prize and cat in separate visual columns on narrow screens. */
@media (min-width:375px) and (max-width:759px) {
  .hero-amount strong {font-size:60px}
  .campaign-hero>.hero-cat {width:132px;right:9px}
}
@media (max-width:340px) {
  .hero-amount strong {font-size:52px}
  .campaign-hero>.hero-cat {width:99px;right:2px}
  .hero-kusu {width:39px;right:10px}
}

/* v0.1.1: clickable artwork on every viewport; no device-specific behavior gate. */
.hero-cat.cat-button {padding:0;border:0;border-radius:42%;line-height:0;z-index:3;background:none}
.hero-cat.cat-button img {display:block;width:100%;height:auto}
.cat-button.celebrate {animation:cat-jump .65s ease 2}
.cat-button:focus-visible {outline:3px solid #478ba0;outline-offset:5px}
.hero-bubble {left:auto;right:10px;bottom:182px;max-width:49%;font-size:11px;z-index:6}
.hero-bubble:after {left:auto;right:34px}
.event-hero .hero-bubble {bottom:154px}
.touch-label {display:none}
@media (pointer:coarse) {.pointer-label {display:none}.touch-label {display:inline}}
@media (min-width:760px) {
  .hero-bubble {bottom:208px;right:20px}
  .event-hero .hero-bubble {bottom:183px}
  .garden-scene .cat-bubble {bottom:214px}
}
@media (max-width:374px) {.hero-bubble {bottom:155px}.event-hero .hero-bubble {bottom:141px}}
@media (max-width:340px) {.campaign-hero .hero-bubble {bottom:129px;font-size:10px}}


/* Consistent card actions and inline disclosure rows. */
.event-body > .pill {margin-bottom:15px}
.event-detail-link {margin-top:10px;min-height:44px;gap:8px}
.account-secondary {padding-top:0}
.account-secondary .account-link {display:flex;width:100%;min-height:46px;padding:8px 0;align-items:center;justify-content:flex-start;gap:9px;font-size:13px;color:var(--muted);text-align:left}
.account-secondary .account-link[data-action="withdraw"] .icon {margin-left:auto;width:16px;height:16px}

/* Tap reactions layer over the ongoing motion, without replacing it. */
.toy-button {padding:0;line-height:0;touch-action:manipulation}
.toy-button img {width:100%;height:auto;pointer-events:none}
.toy-button:focus-visible {outline:3px solid #478ba0;outline-offset:5px}
.garden-scene .tiny-gift {transform-origin:bottom center;animation:gift-sway 5.5s ease-in-out infinite}
/* Speech sits just above-left of the cat, not at the card corner. */
.campaign-hero .hero-bubble {left:auto;right:80px;top:38px;bottom:auto;max-width:100px;font-size:11px}
.campaign-hero .hero-bubble:after {left:auto;right:14px}
@media (min-width:760px) {
  .campaign-hero .hero-bubble {right:140px;top:auto;bottom:208px;max-width:180px}
}
@media (max-width:374px) {
  .campaign-hero .hero-bubble {right:64px;top:32px;max-width:96px;font-size:10px}
}
.garden-seedling {padding:0;line-height:0;text-align:left}
.garden-seedling:active:not(:disabled) {transform:none}
.garden-seedling .icon {display:block;transform-box:view-box;transform-origin:50% 91.6666667%}
/* The cat's transparent image bounds must not intercept gift taps. */
.tiny-gift.toy-button {z-index:4}

.event-history-info {min-width:0}
.event-history .event-history-description {font-size:13px;color:var(--ink);line-height:1.7}
