.tr-wrap { max-width: 680px; margin: 0 auto; padding: 18px 14px 60px; }
.tr-head { text-align: center; margin-bottom: 14px; }
.tr-tag {
  display: inline-block; background: var(--ma-red); color: #0a0a0a;
  font-weight: 800; font-size: 11px; letter-spacing: 2px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
  text-transform: uppercase;
}
.tr-head h1 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin-bottom: 4px; }
.tr-hint { font-size: 13px; color: var(--text-muted); }

.tr-status {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
}
.tr-status .lbl { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-right: 6px; }
.tr-status .val { font-family: monospace; font-weight: 800; color: var(--ma-red); }

.tr-trail {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.tr-step {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.tr-step__year {
  font-family: monospace; font-size: 12px; font-weight: 800;
  color: var(--ma-red); letter-spacing: 1px;
}
.tr-step__img {
  width: 56px; height: 56px; object-fit: contain;
}
.tr-step__name {
  font-size: 11px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

.tr-input-row { position: relative; margin-bottom: 10px; }
.tr-input {
  width: 100%; padding: 12px 14px; font-size: 15px;
  background: color-mix(in srgb, var(--text) 8%, var(--bg-card)); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit;
}
.tr-input:focus { outline: none; border-color: var(--ma-red); }
.tr-ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; max-height: 260px; overflow-y: auto; z-index: 10;
  display: none;
}
.tr-ac.show { display: block; }
.tr-ac div { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; }
.tr-ac div:hover { background: rgba(206,255,40,0.1); }
.tr-ac .m { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.tr-flash { min-height: 20px; text-align: center; font-size: 13px; font-weight: 700; margin: 10px 0; }
.tr-flash.ok  { color: #3ece5b; }
.tr-flash.bad { color: #ff5e5e; }

.tr-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.tr-result h2 { font-size: 20px; font-weight: 800; color: var(--ma-red); margin-bottom: 8px; text-transform: uppercase; }
.tr-result .reveal { font-size: 18px; font-weight: 800; margin: 8px 0 14px; }
.tr-result .actions { display: flex; gap: 10px; justify-content: center; }

.tr-how { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-top: 14px; }
.tr-how > summary { padding: 12px 16px; font-weight: 800; letter-spacing: 1px; color: var(--ma-red); cursor: pointer; text-transform: uppercase; font-size: 12px; }
.tr-how > summary::-webkit-details-marker { display: none; }
.tr-how > div { padding: 0 16px 14px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 500px) {
  .tr-trail { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .tr-step { padding: 6px 2px; }
  .tr-step__img { width: 40px; height: 40px; }
  .tr-step__name { font-size: 9px; }
  .tr-step__year { font-size: 10px; }
}
