.rally-entry{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;margin-top:.45rem;color:inherit;font-weight:700;text-underline-offset:.22em}
.rally-entry[hidden],.rally-book[hidden],.rally-by-pref[hidden],.rally-date[hidden]{display:none}
.rally-book{position:relative;isolation:isolate;margin:0 0 1rem;padding:clamp(1rem,3vw,1.65rem);border:1px solid #d9cfbf;border-radius:14px;color:#382a20;background:#faf6ec;scroll-margin-top:1rem}
.rally-book::after{content:"";position:absolute;inset:6px;border:1px dashed #e8dbca;border-radius:9px;z-index:-1;pointer-events:none}
.rally-top{display:flex;align-items:center;gap:clamp(.55rem,2vw,1rem)}
.rally-seal{width:clamp(3rem,10vw,4.5rem);height:auto;flex:none;transform:rotate(-11deg);color:#914f34;fill:none;stroke:currentColor;stroke-width:2.1}
.rally-top h2{margin:0;line-height:1.3;font-size:clamp(1.24rem,3vw,1.65rem)}
.rally-top p{margin:.25rem 0 0;font-size:.9rem;line-height:1.55}
.rally-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1rem 0 .65rem}
.rally-scores div{padding:.5rem .65rem;border:1px solid #e0d4c5;border-radius:7px;background:#fffcf5}
.rally-scores span{display:block;margin-bottom:.16rem;font-size:.77rem;font-weight:700}
.rally-scores strong{color:#754027;font-size:clamp(1.36rem,4vw,1.9rem);line-height:1.2;font-variant-numeric:tabular-nums}
.rally-scores small{font-size:.73rem;color:#625143;white-space:nowrap}
#rally-progress{display:block;width:100%;height:.48rem;border:0;border-radius:1rem;overflow:hidden;background:#e8ded0;accent-color:#834a32}
#rally-progress::-webkit-progress-bar{background:#e8ded0;border-radius:1rem}
#rally-progress::-webkit-progress-value{background:#834a32;border-radius:1rem}
#rally-progress::-moz-progress-bar{background:#834a32;border-radius:1rem}
.rally-goal{margin:.38rem 0 .78rem;font-size:.81rem;color:#5f4838}
.rally-controls{display:flex;flex-wrap:wrap;gap:.5rem}
.rally-controls button,.station .rally-stamp{min-height:44px;line-height:1.25;padding:.42rem .67rem;border:1px solid #b38670;border-radius:7px;color:#723c29;background:transparent}
.rally-controls button:first-child{border-color:#743e2a;background:#743e2a;color:#fffaf3}
.rally-controls button[aria-pressed=true],.station .rally-stamp[aria-pressed=true]{border-color:#647b6c;background:#e4eee5;color:#294637}
.rally-note{margin:.7rem 0 0;color:#65574a;font-size:.77rem;line-height:1.6}
.rally-by-pref{margin:.7rem 0 0;padding:.4rem 0;border-top:1px solid #e1d5c4;font-size:.84rem}
.rally-by-pref summary{cursor:pointer;color:#6d3f2b;font-weight:700;min-height:34px;padding:.33rem 0}
.rally-by-pref ul{list-style:none;margin:.2rem 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.4rem .8rem}
.rally-by-pref li{display:flex;justify-content:space-between;gap:.3rem;padding:.36rem .5rem;background:#fffcf5;border-radius:4px}
.rally-card-row{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin:.55rem 0 0;padding-top:.45rem;border-top:1px dashed #ded4c5}
.station .rally-stamp{font-size:.8rem;min-width:7.4rem}
.rally-date{font-weight:600;font-size:.77rem;color:#615445;font-variant-numeric:tabular-nums}
.rally-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#rally-current:not([hidden]){border-color:#6f826f;background:#edf1e9;color:#304d3b}
@media(max-width:380px){.rally-controls>*{flex:1 1 100%}.rally-scores div{padding:.45rem}.rally-scores small{font-size:.69rem}}
