:root{color-scheme:dark;--bg:#090d0b;--surface:#151c17;--surface-raised:#1b271f;--primary:#205c46;--primary-hover:#2c7558;--accent:#95cfaa;--text:#f3f1df;--muted:#aebcb0;--border:#344b3c;--concert-border:#609c74;--danger:#ffb5a7;--radius:20px;--font:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;--content:1120px;--shadow:0 16px 50px #0005}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.65}button,input,select{font:inherit}a{color:var(--accent);text-underline-offset:4px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button,.button{min-height:46px;border:1px solid var(--border);border-radius:100px;padding:10px 20px;color:var(--text);background:var(--surface);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary,button[aria-pressed=true]{background:var(--primary);border-color:var(--concert-border);color:var(--text)}button:hover,.button:hover{background:var(--surface-raised)}.primary:hover{background:var(--primary-hover)}.shell{width:min(var(--content),100% - 40px);margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 0;gap:16px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:.03em}.brand img{width:42px;height:42px;border-radius:13px}.topbar a{font-size:14px;text-decoration:none}.hero{position:relative;isolation:isolate;min-height:285px;border:1px solid var(--border);border-radius:28px;overflow:hidden;padding:36px}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#090d0be8 0%,#090d0b8c 45%,transparent 75%),url('./assets/capybara-hero.webp') center/cover;z-index:-1}.eyebrow{font-size:13px;letter-spacing:.15em;color:var(--accent);font-weight:700}h1{font-size:clamp(30px,5vw,48px);line-height:1.25;letter-spacing:-.04em;margin:12px 0}h2{font-size:24px;line-height:1.4;margin:0}h3{font-size:20px;line-height:1.5;margin:12px 0}.hero p{color:var(--text);margin:0 0 20px}.period{display:inline-block;border:1px solid var(--concert-border);border-radius:100px;padding:7px 18px;background:#0a140dd9}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:24px 0}.filters{display:flex;gap:8px;flex-wrap:wrap}.toolbar input{min-width:180px;flex:1;border:1px solid var(--border);border-radius:100px;padding:12px 18px;background:var(--surface);color:var(--text)}.section{margin:0 0 28px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}.meta{font-size:14px;color:var(--muted)}.summary{border-left:3px solid var(--concert-border);padding:16px 22px;background:var(--surface);border-radius:0 16px 16px 0;margin-bottom:26px}.summary p{margin:4px 0}.concerts{border:2px solid var(--concert-border);border-radius:24px;padding:24px;background:linear-gradient(140deg,#14291b70,transparent)}.concerts h2{color:var(--accent)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;min-width:0}.card .description{color:var(--muted);margin:6px 0 16px}.card .actions{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}.card .actions button{padding:8px 14px}.card .date{font-size:14px;color:var(--accent);font-weight:700}.tag{font-size:13px;color:var(--accent);background:#23442f;padding:3px 10px;border-radius:100px;display:inline-block;width:fit-content}.deadline{color:var(--danger);font-size:14px;border-top:1px solid var(--border);padding-top:12px;margin:14px 0}.empty{padding:30px;border:1px dashed var(--border);border-radius:var(--radius);color:var(--muted)}.install{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:12px 16px}.install img{width:48px;height:48px;border-radius:13px;flex-shrink:0}.install h2{font-size:16px}.install p{margin:2px 0;color:var(--muted);font-size:14px}footer{padding:26px 0 115px;color:var(--muted);font-size:13px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#0d1510f5;border-top:1px solid var(--border);backdrop-filter:blur(20px);padding:10px 20px calc(10px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:24px;z-index:5}.bottom-nav button{border:0;background:transparent;border-radius:12px;min-width:80px;flex-direction:column;gap:0;font-size:14px;padding:4px 18px}.bottom-nav button[aria-pressed=true]{color:var(--accent);background:#1b3324}.bottom-nav span{font-size:20px}dialog{width:min(600px,calc(100% - 24px));max-height:85dvh;background:var(--surface);color:var(--text);border:1px solid var(--concert-border);border-radius:24px;padding:28px}dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-close{float:right}.dialog-content{clear:both;padding-top:12px}.dialog-content ul{padding-left:22px}.dialog-content a{overflow-wrap:anywhere}.list-row{display:grid;grid-template-columns:120px 1fr;gap:20px;padding:20px 0;border-bottom:1px solid var(--border)}.list-row h3{margin:0}.status{color:var(--danger)}[hidden]{display:none!important}@media(max-width:760px){.shell{width:calc(100% - 28px)}.topbar{padding:16px 0}.hero{padding:24px;min-height:260px}.hero:before{background-position:60% center}.hero h1{max-width:230px}.hero p{max-width:190px;font-size:14px}.grid{grid-template-columns:1fr 1fr}.concerts{padding:16px}.card{padding:18px}.section-head{align-items:flex-start;flex-direction:column;gap:4px}.toolbar{padding:18px 0}.toolbar input{width:100%;flex-basis:100%}.filters{gap:6px}.filters button{padding:8px 14px;font-size:14px}.bottom-nav{gap:12px}.list-row{grid-template-columns:85px 1fr;gap:12px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.hero{min-height:248px}.hero:before{background-position:58% center}.hero h1{font-size:32px}.card h3{font-size:21px}.concerts{padding:14px}.brand{font-size:16px}.topbar a{font-size:13px}.install{padding:12px;gap:10px}.install img{width:40px;height:40px;border-radius:11px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .18s,color .18s}}
 
.hero{background:url('./assets/capybara-night.png') center/cover}.hero:before{background:linear-gradient(90deg,#090d0bd9 0%,#090d0b80 40%,transparent 70%);z-index:-1}.hero h1,.hero p{color:#f3f1df}.hero .eyebrow{color:#b9e8c5}[data-hero-time=day] .hero{background-image:url('./assets/capybara-day.png');border-color:#609c74}[data-hero-time=day] .hero:before{background:linear-gradient(90deg,#0e3025db 0%,#143a2375 40%,transparent 70%)}@media(max-width:760px){.hero:before,[data-hero-time=day] .hero:before{background:linear-gradient(90deg,#090d0be0,#090d0b60 65%,transparent)}}@media(prefers-reduced-motion:reduce){}

.activity-theme{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--concert-border);border-radius:24px;padding:24px;background:var(--surface)}
.activity-theme:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--activity-art);background-position:center top;background-size:100% auto;background-repeat:no-repeat}
.activity-theme:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#09130cca 0%,#09130c50 55%,#09130c05 100%),linear-gradient(180deg,transparent 130px,#101b14c9 340px,#151c17 550px)}
.theme-concert{--activity-art:url('./assets/capybara-concert.png')}.theme-festival{--activity-art:url('./assets/capybara-festival.png')}.theme-exhibition{--activity-art:url('./assets/capybara-exhibition.png')}.theme-other{--activity-art:url('./assets/capybara-other.png')}
.activity-theme .section-head{min-height:160px;align-items:flex-start;justify-content:center;flex-direction:column;gap:8px;margin-bottom:20px;max-width:62%}
.activity-theme h2{color:#f3f1df;text-shadow:0 2px 12px #0008;font-size:clamp(24px,3vw,32px)}.activity-theme .section-head .meta{color:#d7e7d9;text-shadow:0 1px 8px #000}
.activity-theme .card{background:#101b14ed;backdrop-filter:blur(6px);border-color:#6b917666}.activity-theme .empty{background:#101b14e8;grid-column:1/-1;margin:0}
@media(max-width:760px){.activity-theme{padding:18px}.activity-theme:before{background-size:auto 290px;background-position:85% top}.activity-theme .section-head{min-height:160px;max-width:66%}.activity-theme:after{background:linear-gradient(90deg,#09130cdb,#09130c40 75%),linear-gradient(180deg,transparent 90px,#151c17 310px)}}
@media(max-width:480px){.activity-theme{padding:16px}.activity-theme .section-head{min-height:150px;max-width:68%}.activity-theme h2{font-size:24px}.activity-theme .section-head .meta{font-size:13px}}

.hero{background-position:78% center}
/* Layout follows available space, including folded, expanded and split-view screens. */
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom))}
body{overflow-wrap:anywhere}
.shell{width:100%;max-width:1160px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top)}
.topbar{flex-wrap:wrap}.brand{min-width:0}.topbar a{min-height:44px;display:inline-flex;align-items:center}
.hero{padding:clamp(20px,4vw,36px);min-height:285px}.hero h1{font-size:clamp(1.75rem,5vw,3rem);max-width:65%;line-height:1.3}.hero p{font-size:1rem;max-width:58%}.hero .eyebrow{letter-spacing:.08em;max-width:65%}.period{max-width:100%;font-size:.875rem}
.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}.grid>.card{max-width:100%}.card h3{font-size:1.25rem}.card .actions button{min-height:44px;max-width:100%}.tag{max-width:100%}
.toolbar,.filters{min-width:0}.toolbar input{min-width:0;font-size:1rem}.filters button{min-height:44px;font-size:.875rem}.filters{width:100%;gap:8px}
.activity-theme{padding:clamp(16px,3vw,24px)}.activity-theme .section-head{max-width:65%;min-height:160px}.activity-theme .section-head .meta{font-size:.875rem}
.bottom-nav{gap:clamp(4px,3vw,24px);padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.bottom-nav button{min-width:0;max-width:140px;flex:1;padding:4px 12px;min-height:48px}
footer{padding-bottom:calc(115px + env(safe-area-inset-bottom))}.install>div{min-width:0}.install p{font-size:.875rem}
dialog{width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:clamp(18px,4vw,28px);overflow:auto}.dialog-content h2{clear:both}.list-row{grid-template-columns:minmax(65px,100px) minmax(0,1fr)}
@media(min-width:761px){.toolbar input{flex-basis:100%}.activity-theme:before{background-size:max(100%,850px) auto;background-position:85% top}}
@media(max-width:599px){.hero{min-height:310px}.hero h1{max-width:75%}.hero p{max-width:64%}.hero .eyebrow{max-width:75%;font-size:.75rem}.activity-theme .section-head{max-width:72%;min-height:170px}.activity-theme:before{background-size:auto 290px;background-position:85% top}.activity-theme h2{font-size:1.5rem}.summary{padding:14px 16px}.empty{padding:20px}}
@media(max-width:359px){.hero{padding:18px;min-height:330px}.hero h1{max-width:88%}.hero p{max-width:80%}.hero .eyebrow{max-width:90%}.period{padding:6px 12px}.filters button{padding:8px 12px}.activity-theme .section-head{max-width:85%}.install{align-items:flex-start}.install img{width:36px;height:36px}}
@media(orientation:landscape) and (max-height:500px){.hero{min-height:235px}.bottom-nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}.bottom-nav button{flex-direction:row;gap:8px;min-height:44px}dialog{max-height:calc(100dvh - 16px)}}

/* Retired animation canvas must never participate in layout, even with stale JS. */
.hero canvas,.hero-breeze{display:none!important;position:absolute!important;inset:0;width:0!important;height:0!important;pointer-events:none}
/* Translucent activity cards retain fully opaque, readable content. */
.activity-theme .card{background:linear-gradient(145deg,rgba(8,22,14,.62),rgba(8,22,14,.78));-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);border-color:rgba(167,214,182,.28);box-shadow:0 8px 24px #0002;color:#f3f1df}
.activity-theme .card h3{color:#fffced;text-shadow:0 1px 6px #0008}.activity-theme .card .description,.activity-theme .card .meta{color:#e0e9df;text-shadow:0 1px 4px #0006}.activity-theme .card .date{color:#b8e7c7}.activity-theme .card .tag{background:#173e2ded;color:#c4edcf}.activity-theme .card .deadline{color:#ffc8b7;border-top-color:#a7d6b63d}.activity-theme .card .actions button{background:#10271eef;border-color:#6b9176aa}.activity-theme .card .actions .primary{background:#205c46}.activity-theme .card .actions button:hover{background:#2c7558}
.activity-theme:after{background:linear-gradient(90deg,#09130cb3 0%,#09130c30 60%,transparent 100%),linear-gradient(180deg,transparent 180px,#101b1455 380px,#151c17 620px)}
@media(max-width:760px){.activity-theme:before{background-size:auto 420px;background-position:85% top}}

/* Compact icon-only navigation; safe-area padding stays below the touch targets. */
.bottom-nav{gap:12px;padding-top:0;padding-bottom:env(safe-area-inset-bottom);min-height:44px;align-items:center}.bottom-nav button{min-height:44px;height:44px;flex-direction:row;gap:0;padding:0 16px;border-radius:10px;line-height:1}.bottom-nav svg{display:block;width:28px;height:28px;flex-shrink:0}.bottom-nav button[aria-pressed=true]{color:var(--accent);background:#1b3324}footer{padding-bottom:calc(76px + env(safe-area-inset-bottom))}html{scroll-padding-bottom:calc(60px + env(safe-area-inset-bottom))}
