/* Hunter Log: tactile sports surfaces. All UI colours follow the existing themes. */
:root { --sport-edge:var(--border); --sport-shadow:0 5px 0 var(--border-soft),0 12px 24px -16px #000; }
button,input,summary { touch-action:manipulation; }
button:focus-visible,summary:focus-visible,[role=button]:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.bar { background:var(--bg); backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom:0; }
.bar-title { font-weight:900; letter-spacing:-.055em; }
.screen { padding-left:18px; padding-right:18px; }
.panel { background:var(--panel); border:1px solid var(--border-soft); box-shadow:none; border-radius:22px; }
.section-title { font-weight:800; letter-spacing:-.025em; }
.today-head { margin-bottom:20px; }
.today-name { font-weight:850; font-size:25px; }
.today-meta { flex-wrap:wrap; }
.week-strip { padding:0 8px; margin-bottom:18px; }
.wk-dot { box-shadow:inset 0 2px 3px #0002; }
.wk.is-done .wk-dot { box-shadow:0 3px 0 var(--accent-dim); }
.today-card { display:flex; flex-direction:column; padding:23px; background:var(--panel); border:1px solid var(--border); box-shadow:var(--sport-shadow); isolation:isolate; }
.today-card-kicker { order:0; text-transform:uppercase; font-weight:800; font-size:12px; letter-spacing:.12em; }
.today-card-title { order:1; font-size:clamp(30px,9vw,42px); font-weight:900; line-height:1.03; letter-spacing:-.055em; max-width:100%; overflow-wrap:anywhere; margin-top:10px; }
.today-card-sub { order:2; margin-top:10px; line-height:1.5; }
.seal-stage { order:3; position:relative; display:flex; justify-content:center; align-items:center; min-height:150px; margin:4px 0; }
.seal-stage::before { content:''; position:absolute; width:158px; height:158px; border:1px solid var(--border); border-radius:50%; box-shadow:0 0 0 16px var(--panel),0 0 0 17px var(--border-soft); }
.hunter-seal { width:210px; height:165px; position:relative; z-index:1; overflow:visible; }
.seal-stage .seal-caption { position:absolute; bottom:0; right:0; font-size:11px; font-weight:800; letter-spacing:.06em; color:var(--text-dim); }
.seal-say { order:4; font-size:14px; line-height:1.45; color:var(--text); margin:4px 0 10px; text-align:center; }
.today-ex { order:6; margin-top:16px; gap:0; flex-direction:column; }
.today-ex span { border-radius:0; background:none; padding:8px 0; border-top:1px solid var(--border-soft); font-size:13px; color:var(--text-dim); overflow-wrap:anywhere; }
.today-card-go { order:5; display:flex; justify-content:center; min-height:54px; border-radius:16px; font-size:16px; font-weight:800; background:var(--cta-fill); color:var(--on-accent); box-shadow:0 5px 0 var(--accent-dim),inset 0 1px 0 #ffffff40; transition:transform .12s,box-shadow .12s; }
.today-card:active .today-card-go { transform:translateY(4px); box-shadow:0 1px 0 var(--accent-dim); }
.today-card:active .hunter-seal { transform:rotate(-5deg) translateY(-3px); }
.hunter-seal { transition:transform .2s ease-out; }
.seal-eye-rest { display:none; }
.is-rest .seal-eye { display:none; }
.is-rest .seal-eye-rest { display:block; }
.is-done .seal-flipper { transform:rotate(-17deg); transform-origin:165px 112px; }
.is-done .seal-stage::before { border-color:var(--good); }
.cta:not(.ghost):not(:disabled) { border-radius:16px; box-shadow:0 5px 0 var(--accent-dim),inset 0 1px 0 #ffffff40; font-weight:800; }
.cta:not(.ghost):not(:disabled):active { transform:translateY(4px); box-shadow:0 1px 0 var(--accent-dim); }
.cta:disabled { opacity:.5; box-shadow:none; }
.navbar { background:var(--bg-2); border:1px solid var(--border); border-radius:24px; box-shadow:0 5px 20px #0002; }
.nav-center { border-radius:19px; box-shadow:0 4px 0 var(--accent-dim),0 0 0 5px var(--bg); }
.navbtn.active svg { filter:none; }
.sport-heading { margin:0 0 18px; font-size:36px; line-height:1.08; letter-spacing:-.055em; font-weight:900; overflow-wrap:anywhere; }
.sport-rank { display:grid; grid-template-columns:1fr auto; gap:12px; padding:22px; margin-bottom:22px; border-radius:22px; background:var(--panel); border:1px solid var(--border); }
.sport-rank-label { color:var(--text-dim); font-size:13px; }
.sport-rank-title { margin-top:7px; font-weight:850; font-size:22px; letter-spacing:-.03em; }
.sport-rank-mark { font-size:58px; line-height:1; font-weight:950; font-style:italic; color:var(--accent); text-shadow:2px 3px 0 var(--accent-dim); }
.sport-rank-track { grid-column:1/-1; height:9px; overflow:hidden; border-radius:3px; background:var(--border-soft); box-shadow:inset 0 2px 3px #0002; }
.sport-rank-fill { height:100%; background:var(--accent); border-radius:3px; }
.sport-rank-note { grid-column:1/-1; font-size:13px; color:var(--text-dim); line-height:1.4; }
#screen-progress[data-progress-tab="ach"] #sport-rank { display:none; }
#screen-progress[data-progress-tab="records"] #sport-rank,#screen-progress[data-progress-tab="charts"] #sport-rank { display:none; }
#progress-tabs { border-radius:14px; padding:4px; gap:2px; }
#progress-tabs .scope-btn { min-width:0; min-height:44px; font-size:12px; padding:6px; border-radius:10px; white-space:normal; overflow-wrap:anywhere; }
.rec-row { flex-wrap:wrap; gap:10px; padding:16px 0; }
.rec-val b { font-size:20px; font-weight:850; }
.ach-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 10px; padding:12px 0; }
.ach { padding:6px 0; gap:12px; }
.ach-ico { width:68px; height:68px; border:3px solid var(--tier); background:radial-gradient(circle at 30% 20%,#ffffff80,transparent 55%),var(--tier); color:#20242b; box-shadow:0 6px 0 color-mix(in srgb,var(--tier) 55%,#20242b),0 10px 12px -7px #0008,inset 0 0 0 4px #ffffff40; transform:rotate(-8deg); transition:transform .18s; }
.ach:nth-child(even) .ach-ico { transform:rotate(8deg); }
.ach-ico svg { width:31px; height:31px; }
.ach:active .ach-ico,.ach.is-active .ach-ico { transform:translateY(3px) rotate(0); }
.ach.is-locked .ach-ico { border-color:var(--border); background:var(--panel-2); color:var(--text-faint); box-shadow:0 5px 0 var(--border-soft),inset 0 0 0 4px var(--panel); }
.ach-name { display:block; -webkit-line-clamp:unset; overflow:visible; font-size:12px; line-height:1.35; }
.ach-caption { padding:16px 8px 4px; line-height:1.5; }
.hero-cover { height:160px; }
.profile-seal { position:absolute; top:8px; left:calc(50% - 100px); width:200px; pointer-events:none; }
.hero-card:not(.has-cover-upload) .hero-cover > * { visibility:hidden; }
.hero-card:not(.has-cover-upload) .hero-cover { background:radial-gradient(ellipse at 50% 60%,var(--accent-soft),var(--panel) 70%); }
.hero-card.has-cover-upload .profile-seal { left:16px; top:26px; width:120px; }
.hero-card.has-cover-upload .profile-seal .hunter-seal { width:120px; }
.wf-done:not(.is-err) .wf-done-ico { display:none; }
.hero-content { margin-top:-24px; }
.hero-sigil { width:72px; height:72px; box-shadow:0 0 0 4px var(--panel); }
.hero-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:20px; border-top:1px solid var(--border-soft); }
.hero-stat-num { font-size:34px; font-weight:900; color:var(--text); background:none; -webkit-text-fill-color:currentColor; }
.hero-stat-label { font-size:12px; overflow-wrap:anywhere; }
.hero-card .xp-track { height:9px; }
.sport-history { color:var(--text-dim); font-size:13px; line-height:1.5; }
.sport-history-row { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; padding:12px 0; }
.sport-history-row + .sport-history-row { border-top:1px solid var(--border-soft); }
.sport-history-row time { font-variant-numeric:tabular-nums; }
.sport-history-row b { display:block; color:var(--text); font-weight:700; overflow-wrap:anywhere; }
.sport-history-row span { display:block; margin-top:3px; }
.wf-main { text-align:left; }
.wf-kicker { font-size:12px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; }
.wf-name { font-size:32px; font-weight:900; letter-spacing:-.045em; overflow-wrap:anywhere; }
.wf-target { justify-content:flex-start; gap:10px; }
.wf-target span { border-radius:14px; background:var(--panel); border:1px solid var(--border); padding:12px 16px; }
.wf-target b { font-size:29px; font-weight:900; }
.wf-center { min-height:155px; padding:18px 0; }
.wf-setno { font-size:100px; font-weight:950; font-style:italic; letter-spacing:-.08em; text-shadow:3px 4px 0 var(--border); }
.wf-setno small { margin-left:8px; font-size:30px; letter-spacing:-.04em; }
.wf-adj button,.wf-swap { min-height:44px; }
.wf-ring-fill { stroke:var(--flame); filter:none; }
.wf-ring-time { font-weight:900; font-size:58px; }
.wf-guide { margin-top:12px; padding:12px 14px; border-left:3px solid var(--accent); border-radius:0 12px 12px 0; background:var(--panel); font-size:13px; line-height:1.5; color:var(--text-dim); }
.wf-guide strong { color:var(--text); display:block; font-weight:750; }
.wf-guide p { margin:4px 0 0; }
.wf-reason summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--accent); }
.wf-reason summary::after { content:'+'; margin-left:auto; font-size:20px; }
.wf-reason[open] summary::after { content:'−'; }
.wf-technique-visual { height:140px; }
.wf-actions { position:sticky; bottom:0; z-index:3; background:var(--bg); padding:10px 0; flex-shrink:0; }
.wf-body > * { flex-shrink:0; }
.wf-technique-more { min-height:44px; }
.wf-li { padding:14px 4px; }
.wf-li.cur { background:var(--accent-soft); border-radius:12px; }
.wf-li-name { min-width:0; overflow-wrap:anywhere; }
.wf-li-meta { flex-shrink:0; }
.wf-done .hunter-seal { width:220px; height:175px; }
.wf-done-title { font-size:36px; letter-spacing:-.05em; }
.set-log input { min-height:48px; font-size:22px; font-weight:750; }
#toast.is-celebrate { border:2px solid var(--toast-c,var(--accent)); border-radius:22px; box-shadow:0 8px 0 var(--border-soft),0 15px 40px #0004; }
.award-medal { display:flex; justify-content:center; padding:8px 0 14px; }
.award-medal .ach-ico { width:76px; height:76px; }
@keyframes sport-award { 0%{transform:translateY(20px) scale(.7) rotate(-12deg);opacity:0} 65%{transform:translateY(-5px) scale(1.08) rotate(4deg)} 100%{transform:none;opacity:1} }
@media(prefers-reduced-motion:no-preference) { .award-medal,.wf-done .hunter-seal { animation:sport-award .65s cubic-bezier(.2,.8,.2,1) both; } }
@media(max-width:360px) { .today-card{padding:18px} .sport-heading{font-size:32px} .ach-ico{width:60px;height:60px} .hero-stat-num{font-size:29px} }
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
 .today-card:active .hunter-seal,.cta:active,.today-card:active .today-card-go,.ach:active .ach-ico { transform:none!important; }
}
