.change-trail { box-sizing: border-box; width: min(100%, 1230px); margin: 28px auto 18px; overflow: hidden; border: 2px solid #263a32; border-radius: 16px; color: #263a32; background: #f9f4e8; box-shadow: 8px 9px 0 #b4c5aa; scroll-margin-top: 18px; }
.change-trail * { box-sizing: border-box; }
.change-trail [hidden] { display: none !important; }
.change-trail :is(button,a):focus-visible { outline: 3px solid #087d9a; outline-offset: 3px; }
.change-trail :is(h2,h3,h4,p,strong) { overflow-wrap: anywhere; }
.change-trail button, .change-trail a { min-height: 44px; border-radius: 6px; font: 800 .82rem/1.3 Inter, ui-sans-serif, sans-serif; }
.change-trail button { padding: 11px 14px; border: 2px solid #263a32; color: #fffdf3; background: #315943; cursor: pointer; }
.change-trail button:hover { background: #426e52; }
.change-trail button:disabled { border-color: #9ca69b; color: #4e5d51; background: #dce0d5; cursor: not-allowed; }
.change-trail-top, .change-trail-kicker, .change-trail-before-after span, .change-trail-timeline button span, .change-trail-puzzle-head p, .change-trail-result > span, .change-trail-limit strong, #change-trail-role-kicker { font: 850 .67rem/1.35 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.change-trail-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 3vw, 30px); border-bottom: 2px solid #263a32; color: #efe9d5; background: #263a32; }
.change-trail-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); gap: clamp(16px, 3vw, 36px); align-items: end; padding: clamp(20px, 3.5vw, 38px); background: radial-gradient(circle at 95% 0, #e9d49e, transparent 32%), #f9f4e8; }
.change-trail-kicker { margin: 0; color: #89583b; }
.change-trail h2 { max-width: 15ch; margin: 10px 0 14px; font-size: clamp(2.3rem, 5vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.change-trail-intro > div > p:last-child { max-width: 66ch; margin: 0; font-size: .96rem; line-height: 1.55; }
.change-trail-before-after { display: grid; gap: 7px; align-self: stretch; align-content: end; }
.change-trail-before-after div { padding: 15px 17px; border: 2px solid #708b77; border-radius: 5px; background: #e9e9dd; }
.change-trail-before-after div:last-child { border-color: #315943; background: #dcebd7; box-shadow: 4px 4px 0 #a6bd9f; }
.change-trail-before-after span { display: block; margin-bottom: 5px; color: #7c5136; }
.change-trail-before-after strong { font-size: .92rem; line-height: 1.35; }
.change-trail-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px clamp(20px, 3.5vw, 38px); border-top: 2px solid #263a32; background: #e7ecdf; }
.change-trail-entry p { max-width: 50ch; margin: 0; font-size: .84rem; line-height: 1.45; }
.change-trail-entry button { min-width: 220px; }
.change-trail-inside { padding: clamp(20px, 3.5vw, 38px); border-top: 2px solid #263a32; }
.change-trail-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.change-trail-timeline button { display: flex; min-width: 0; min-height: 91px; flex-direction: column; align-items: start; justify-content: space-between; gap: 8px; color: #263a32; background: #eee5d2; text-align: left; transition: transform 160ms ease, background 160ms ease; }
.change-trail-timeline button:hover, .change-trail-timeline button[aria-pressed="true"] { color: #263a32; background: #f5d894; transform: translateY(-3px); }
.change-trail-timeline button strong { font-size: .96rem; }
.change-trail-role-detail { margin-top: 12px; padding: 20px; border: 2px solid #738f76; border-radius: 6px; background: #e9efe4; }
#change-trail-role-kicker { margin: 0; color: #576e50; }
.change-trail-role-detail h3 { margin: 7px 0 8px; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
.change-trail-role-detail > p:not(:first-child) { max-width: 76ch; margin: 0; font-size: .88rem; line-height: 1.5; }
#change-trail-role-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#change-trail-role-links a, .change-trail-footer a { display: inline-flex; align-items: center; padding: 9px 12px; border: 2px solid #315943; color: #315943; text-decoration: none; }
#change-trail-role-links a:hover, .change-trail-footer a:hover { color: #fffdf3; background: #315943; }
.change-trail-puzzle { margin-top: 24px; padding: clamp(18px, 3vw, 28px); border: 2px solid #915f42; border-radius: 8px; background: #fff9eb; }
.change-trail-puzzle-head { display: flex; align-items: center; gap: 14px; }
.change-trail-question-mark { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border: 2px solid #915f42; border-radius: 50%; color: #915f42; font: 900 1.8rem/1 Georgia, serif; transform: rotate(-10deg); }
.change-trail-puzzle-head p { margin: 0; color: #915f42; }
.change-trail-puzzle h3 { margin: 4px 0 0; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.04em; }
.change-trail-guesses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 12px; }
.change-trail-guesses button { min-width: 0; color: #263a32; background: #f4e7cd; text-align: left; }
.change-trail-guesses button:hover, .change-trail-guesses button[aria-pressed="true"] { color: #263a32; background: #f5d894; box-shadow: inset 0 0 0 2px #986441; }
.change-trail-answer { display: grid; gap: 11px; margin-top: 20px; }
.change-trail-guess-feedback { margin: 0; padding: 11px 14px; border-left: 4px solid #986441; background: #f8e9ca; font-size: .85rem; line-height: 1.4; }
.change-trail-result { padding: 18px; border: 2px solid #315943; border-radius: 5px; background: #e4f0df; }
.change-trail-result > span { color: #315943; }
.change-trail-result h4 { margin: 7px 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.change-trail-result p { max-width: 83ch; margin: 0 0 13px; font-size: .86rem; line-height: 1.55; }
.change-trail-result a { display: inline-flex; align-items: center; color: #254b35; text-underline-offset: 3px; }
.change-trail-limit { margin: 0; padding: 15px 18px; border: 2px dashed #a3644b; border-radius: 5px; background: #f6e5d8; font-size: .86rem; line-height: 1.5; }
.change-trail-limit strong { display: block; margin-bottom: 5px; color: #8b4f37; }
.change-trail-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.change-trail-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #c9c3ae; }
.change-trail-next p { flex-basis: 100%; margin: 0; color: #805235; font: 850 .67rem/1.35 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.change-trail-next button:last-child { border-color: #304967; background: #304967; }
.change-trail-next button:last-child:hover { background: #466585; }
@media (max-width: 740px) {
  .change-trail { width: 100%; margin: 20px 0 18px; box-shadow: 5px 6px 0 #b4c5aa; }
  .change-trail-top { flex-wrap: wrap; }
  .change-trail-intro { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .change-trail h2 { max-width: none; font-size: clamp(2rem, 9vw, 3rem); }
  .change-trail-before-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .change-trail-before-after div { min-width: 0; padding: 11px; }
  .change-trail-before-after strong { font-size: .78rem; }
  .change-trail-entry { flex-direction: column; align-items: stretch; padding: 16px; }
  .change-trail-entry button { min-width: 0; }
  .change-trail-inside { padding: 16px; }
  .change-trail-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .change-trail-guesses { grid-template-columns: minmax(0, 1fr); }
  .change-trail-guesses button { min-height: 48px; }
  .change-trail-footer { display: grid; }
  .change-trail-next { display: grid; }
}
@media (max-width: 360px) { .change-trail-timeline { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .change-trail * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
