/* Quiet, bounded entrance motion: gameplay never inherits transforms. */
.app-header .icon-button { display: inline-grid; place-items: center; padding: 0; flex-shrink: 0; line-height: 1; }
.app-header .icon-button svg { display: block; }
.chess-battle-header { gap: 8px; padding: 10px 12px; }
.chess-battle-header .player-tag { font-size: 11px; font-weight: 600; padding: 3px 6px; line-height: 1.5; }
.chess-battle-header .captured-row { font-size: 10px; letter-spacing: 0; }
.chess-battle-header .streak-badge { font-size: 10px; padding: 3px 5px; }
.chess-battle-header .chess-score-col { min-width: 0; }
.records-heading { padding: 8px 0 24px; }
.records-heading h1 { font-size: clamp(28px, 6vw, 38px); margin: 10px 0; letter-spacing: -.05em; }
.records-heading p, .records-tools p { line-height: 1.8; font-size: 14px; }
.records-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.records-tools { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.records-tools h2 { font-size: 19px; }
.records-tools .dialog-actions { max-width: 440px; }
.records-reset { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.records-reset summary { cursor: pointer; color: #866b5e; font-size: 13px; }
.records-reset button { color: #974f43; }
.garden-hero { position: relative; overflow: hidden; border: 1px solid #d7dfcd; background: #e9eddf; }
.garden-hero .garden-mascot { aspect-ratio: 1; object-fit: contain; width: 100%; opacity: 1; }
.garden-hero h1 { text-wrap: balance; }
.garden-hero p { max-width: 32ch; }
.preview-card { border-left: 3px solid #82956c; }
.section-heading h2 { line-height: 1.4; }
.major-card { transition: border-color 160ms, background-color 160ms; }
.major-card:hover { background: #f5f6ef; }
button:focus-visible, a:focus-visible { outline: 2px solid #537047; outline-offset: 4px; }
.nav-icon svg { transition: stroke 160ms; }
.arrival-enter { animation: smalltalk-arrive 440ms cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--arrival-delay, 0ms); }
@keyframes smalltalk-arrive { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 480px) {
  .garden-hero { grid-template-columns: minmax(0,1fr) 86px; gap: 12px; }
  .arrival-enter { animation-duration: 340ms; }
}
@media (prefers-reduced-motion: reduce) {
  .arrival-enter { animation: none; }
  .major-card, .nav-icon svg { transition: none; }
}
