.timeline-room{--timeline-ink:#3e5261;--timeline-line:#bbc8ce;--timeline-paper:#fffdf7;--timeline-note:#f0f5f7;width:min(100%,1260px);margin-inline:auto;color:var(--timeline-ink);text-align:left}
.timeline-room .session-banner{text-align:left;margin:0 0 20px}
.game-shell .play .timeline-room :is(.session-banner>.meta,.timeline-instruction,.timeline-selected,.timeline-note-help){margin-inline:0;text-align:left}
.game-shell .timeline-room .timeline-instruction{text-align:left;font-size:.94rem;line-height:1.7;color:#5e6b73;margin:18px 0 24px;max-width:64rem}
.timeline-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.timeline-sort-work{min-width:0}
.timeline-sort-line{position:relative;list-style:none;padding:0;margin:0;display:grid;gap:13px}
.timeline-sort-line:before{content:'';position:absolute;left:18px;top:22px;bottom:22px;width:2px;background:#afc1cc;z-index:0}
.timeline-sort-line>li{display:grid;grid-template-columns:37px minmax(0,1fr);gap:15px;align-items:center;position:relative;min-width:0}
.timeline-slot-number{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border:1px solid #93acba;background:#e5eef2;border-radius:5px;font-size:.9rem;font-weight:750;font-variant-numeric:tabular-nums;z-index:1}
.timeline-sort-line button{width:100%;min-width:0;min-height:74px;padding:16px 20px;font:inherit;font-size:1rem;line-height:1.55;overflow-wrap:anywhere;text-align:left;color:var(--timeline-ink);background:var(--timeline-paper);border:1px solid #d4ccbb;border-radius:4px;box-shadow:0 2px 0 #d0c8b72b;cursor:pointer}
.timeline-sort-line button[aria-pressed="true"]{border:3px solid #8b754f;background:#fff7e4;padding:14px 18px}
.timeline-sort-line button[aria-pressed="true"]{animation:timeline-select .16s ease-out both}
@keyframes timeline-select{from{box-shadow:0 0 0 3px #b799613e}to{box-shadow:0 2px 0 #d0c8b72b}}
.game-shell .timeline-room .timeline-selected{text-align:left;font-size:.84rem;color:#6f6a60;line-height:1.55;min-height:44px;margin:20px 0 10px;overflow-wrap:anywhere}
.timeline-move-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.timeline-move-controls .button{min-height:48px;box-shadow:none;font-size:.86rem;background:#fff;border:1px solid #aabac3;color:var(--timeline-ink)}
.timeline-move-controls .button:disabled{cursor:not-allowed;background:#eaf0f2;color:#586e7b;border-color:#c3cfd6;box-shadow:none}
.timeline-clue-desk{min-width:0;border-top:2px solid #92a9b7;padding-top:16px}
.timeline-clue-desk h3{font-size:1.1rem;margin:0 0 15px}
.timeline-clue-notes{list-style:none;padding:0;margin:0}
.timeline-clue-notes>li{border-bottom:1px solid #d6e0e5;padding:0 0 14px;margin:0 0 16px}
.game-shell .timeline-room .timeline-clue-notes p{text-align:left;font-size:.94rem;line-height:1.7;margin:0 0 8px;color:var(--timeline-ink)}
.timeline-clue-notes button{min-height:44px;padding:9px 12px;border:1px solid #c0cbd0;border-radius:4px;background:#fff;color:#627078;font:inherit;font-size:.76rem;cursor:pointer}
.timeline-clue-notes button[aria-pressed="true"]{background:#e9f0f0;border-color:#8fa7a3;color:#506d65}
.game-shell .timeline-room .timeline-note-help{text-align:left;font-size:.8rem;line-height:1.6;color:#606c73;margin:18px 0}
.timeline-check-desk{border-top:2px solid #9aafb9;padding-top:18px;margin-top:30px}
.game-shell .timeline-room :is(.timeline-check-desk,.timeline-check-meta)>p{text-align:left;font-size:.9rem;line-height:1.65;margin:12px 0}
.timeline-check-meta [data-timeline-checks-used]{font-size:1.2rem;font-variant-numeric:tabular-nums;margin-left:7px}
.game-shell .timeline-room .timeline-previous-check{background:var(--timeline-note);border-left:4px solid #819ba9;padding:13px 16px}
.timeline-previous-check strong{margin-left:9px}
.game-shell .timeline-room .timeline-feedback{color:#8c693b;background:#fff5e5;border-left:4px solid #b18d55;padding:13px 16px}
.game-shell .timeline-room .timeline-feedback:empty{display:none}
.timeline-room button:focus-visible{outline:3px solid #7f9fac;outline-offset:4px}
.timeline-result-desk{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:42px;margin:26px 0}
.timeline-correct-line,.timeline-attempt-archive{min-width:0}
.timeline-correct-line>h3,.timeline-attempt-archive>h3{font-size:1.05rem;line-height:1.55;margin:0 0 18px}
.timeline-correct-line>ol{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.timeline-correct-line li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:14px;align-items:baseline;padding:15px 18px;border-left:4px solid #83a893;background:#f2f7f0;border-radius:3px;line-height:1.6;font-size:.93rem}
.timeline-correct-line li>span{font-size:.8rem;color:#576e63;font-variant-numeric:tabular-nums}
.timeline-attempt-record{border:1px solid #c2cfd6;border-radius:5px;padding:18px 22px;margin-bottom:24px;background:#fff}
.timeline-attempt-record>h4{font-size:1rem;margin:0 0 10px}
.game-shell .timeline-room .timeline-attempt-count{text-align:left;font-size:.85rem;line-height:1.6;color:#61717b;margin:10px 0 16px}
.timeline-submitted-line{list-style:none;padding:0;margin:0}
.timeline-submitted-line>li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:12px;align-items:baseline;border-top:1px solid #dce4e8;padding:13px 0;font-size:.88rem;line-height:1.55;min-width:0}
.timeline-submitted-line>li>span:first-child{font-size:.75rem;color:#647076;font-variant-numeric:tabular-nums}
.timeline-submitted-line>li>strong{overflow-wrap:anywhere;min-width:0}
.timeline-submitted-line>li>span:last-child{font-size:.72rem;max-width:100px;text-align:right}
.timeline-submitted-line>[data-timeline-slot-status="correct"]>span:last-child{color:#4c795d}
.timeline-submitted-line>[data-timeline-slot-status="wrong"]>span:last-child{color:#88693c}
.timeline-violations{padding-top:16px;margin-top:16px;border-top:1px solid #c9d6dc}
.timeline-violations h5{font-size:.88rem;line-height:1.6;margin:0 0 12px}
.timeline-violations ul{padding-left:20px;margin:0;font-size:.87rem;line-height:1.7;color:#8c693b}
.timeline-violations li{margin:9px 0}
.game-shell .timeline-room .timeline-violations p{text-align:left;font-size:.83rem;color:#6c8b76;line-height:1.6;margin:0}
@media(max-width:899px){.timeline-workspace{grid-template-columns:minmax(0,1fr);gap:28px}.timeline-result-desk{grid-template-columns:minmax(0,1fr);gap:30px}.timeline-clue-desk{padding-top:18px}.timeline-check-desk{margin-top:24px}}
@media(max-width:499px){.timeline-sort-line>li{grid-template-columns:29px minmax(0,1fr);gap:11px}.timeline-sort-line:before{left:14px}.timeline-slot-number{width:29px;height:33px;font-size:.8rem}.timeline-sort-line button{padding:14px 16px;min-height:76px;font-size:.92rem}.timeline-sort-line button[aria-pressed="true"]{padding:12px 14px}.timeline-move-controls{gap:9px}.timeline-move-controls .button{font-size:.78rem;padding:10px 8px}.game-shell .timeline-room .timeline-instruction{font-size:.87rem}.game-shell .timeline-room .timeline-clue-notes p{font-size:.9rem}.timeline-attempt-record{padding:16px}.timeline-submitted-line>li{grid-template-columns:18px minmax(0,1fr);gap:5px 10px}.timeline-submitted-line>li>span:last-child{grid-column:2;max-width:none;text-align:left}.timeline-correct-line li{padding:13px 15px;font-size:.88rem}.timeline-previous-check strong{display:block;margin:5px 0 0}}
@media(min-width:900px){
  .timeline-workspace{grid-template-areas:"sorting clues" "checking clues";gap:15px 40px;align-items:start}
  .timeline-sort-work{grid-area:sorting}
  .timeline-clue-desk{grid-area:clues}
  .timeline-check-desk{grid-area:checking;margin-top:0;padding-top:9px}
  .timeline-check-meta{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap;margin-bottom:6px}
  .timeline-clue-notes>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin:0;padding:9px 0}
  .game-shell .timeline-room .timeline-clue-notes p{margin:0}
  .game-shell .timeline-room .timeline-note-help{margin-block:12px}
  .timeline-check-desk>.actions{margin:12px 0 0;justify-content:flex-start}
  .game-shell .timeline-room :is(.timeline-check-desk,.timeline-check-meta)>p{margin:5px 0;padding-block:6px}
  .game-shell .timeline-room .timeline-check-meta>p{margin-block:0}
}
@media(min-width:1150px) and (max-height:800px){
  .game-shell.wide .timeline-room .session-banner{margin-bottom:8px}
  .game-shell.wide .timeline-room .timeline-instruction{margin-block:5px 12px}
  .game-shell.wide .timeline-workspace{row-gap:10px}
  .game-shell.wide .timeline-sort-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:10px;align-items:center}
  .game-shell.wide .timeline-sort-line{grid-column:1/-1;gap:6px}
  .game-shell.wide .timeline-sort-line button{min-height:48px;padding:9px 14px}
  .game-shell.wide .timeline-sort-line button[aria-pressed="true"]{padding:7px 12px}
  .game-shell.wide .timeline-room .timeline-selected{min-height:0;margin:0}
  .game-shell.wide .timeline-move-controls{margin:0;gap:7px}
  .game-shell.wide .timeline-move-controls .button{padding-inline:9px}
  .game-shell.wide .timeline-check-desk>.actions{margin-top:8px}
}
@media(prefers-reduced-motion:reduce){.timeline-room *{animation:none!important;transition:none!important}}

.page-game .game-shell.theme-timeline:has(.timeline-room) {
  --timeline-ink:#382c32;
  --timeline-berry:#773451;
  --timeline-muted:#60535a;
  --timeline-line:#bfa99e;
  --timeline-paper:#fffaf1;
  --timeline-note:#f2e3e8;
  color:var(--timeline-ink);
  background:radial-gradient(ellipse at 28% 19%,#fffaf3 0%,#f7eee2 70%,#f1e1d1);
}
.page-game .game-shell.theme-timeline:has(.timeline-room) .game-toolbar {
  color:var(--timeline-ink);
  background:#fbf1e6;
  border-bottom:1px solid var(--timeline-line);
}
.page-game .game-shell.theme-timeline:has(.timeline-room) .game-toolbar .button {
  min-height:44px;
  color:#64334d;
  background:#fff9f0;
  border-color:#a98e9a;
}
.timeline-room {
  --timeline-ink:inherit;
  --timeline-line:inherit;
  --timeline-paper:inherit;
  --timeline-note:inherit;
}
.game-shell .play .timeline-room .session-banner {
  max-width:none;
  margin:0;
  text-align:left;
}
.game-shell .play .timeline-room .session-banner>:is(h2,.meta) {
  max-width:none;
  margin-inline:0;
  text-align:left;
}
.game-shell .play .timeline-room .session-banner h2 {
  color:var(--timeline-ink);
  font-family:Georgia,'Noto Serif SC',serif;
  font-size:clamp(1.5rem,3.85vw,3.55rem);
  line-height:1.12;
}
.game-shell .play .timeline-room .session-banner>.meta {
  color:var(--timeline-berry);
  font-weight:760;
}
.game-shell .timeline-room .timeline-instruction {
  max-width:70ch;
  color:var(--timeline-muted);
  margin:10px 0 clamp(14px,2.4vw,24px);
}
.timeline-sort-line {gap:9px}
.timeline-sort-line::before {background:var(--timeline-berry)}
.timeline-slot-number {
  border-color:var(--timeline-berry);
  border-radius:50%;
  background:var(--timeline-berry);
  color:#fff8ee;
}
.timeline-sort-line>li:has([aria-pressed=true]) .timeline-slot-number {
  background:#fff5e5;
  color:var(--timeline-berry);
  box-shadow:inset 0 0 0 1px var(--timeline-berry);
}
.timeline-sort-line button {
  min-height:clamp(52px,7.6svh,75px);
  padding:10px clamp(10px,1.5vw,20px);
  border:1px solid #bea99c;
  border-radius:7px;
  color:var(--timeline-ink);
  background:var(--timeline-paper);
  font-family:Georgia,'Noto Serif SC',serif;
  font-size:clamp(1rem,1.55vw,1.25rem);
  font-weight:630;
  line-height:1.35;
}
.timeline-sort-line button:hover {background:#f9eee3}
.timeline-sort-line button[aria-pressed=true] {
  border:1px solid var(--timeline-berry);
  padding:10px clamp(10px,1.5vw,20px);
  background:#f2e1e9;
  box-shadow:inset 0 0 0 1px var(--timeline-berry);
  animation:timeline-chosen .18s ease-out;
}
@keyframes timeline-chosen {from {background-color:#fff4ee}}
.game-shell .timeline-room .timeline-selected {
  min-height:0;
  margin:9px 0 10px;
  color:var(--timeline-muted);
  font-weight:650;
}
.game-shell .play .timeline-room .timeline-move-controls .button {
  min-height:44px;
  background:#fff9f0;
  border-color:#a99389;
  color:var(--timeline-ink);
}
.game-shell .play .timeline-room .timeline-move-controls .button:disabled {
  background:#eee7de;
  border-color:#c1b3a6;
  color:#615650;
  opacity:1;
}
.timeline-clue-desk {
  padding:0 0 0 clamp(14px,2.25vw,30px);
  border-top:0;
  border-inline-start:1px solid var(--timeline-line);
}
.timeline-clue-desk h3 {
  display:flex;
  align-items:center;
  gap:12px;
  font:700 clamp(1.25rem,2.3vw,1.85rem)/1.2 Georgia,'Noto Serif SC',serif;
  margin:0 0 8px;
}
.timeline-clue-desk h3::after {content:"";flex:1;height:1px;background:#a4798b}
.timeline-clue-notes>li {border-bottom:1px dotted #bba89d}
.game-shell .timeline-room .timeline-clue-notes p {color:var(--timeline-ink);line-height:1.51}
.timeline-clue-notes button {
  background:#fff9f0;
  border-color:#b7a390;
  color:#594d47;
  font-size:.83rem;
  font-weight:650;
}
.timeline-clue-notes button[aria-pressed=true] {background:#f2e1e9;border-color:#9d7188;color:#63324c}
.game-shell .timeline-room .timeline-note-help {color:var(--timeline-muted);font-size:.84rem}
.timeline-check-desk {border-top:1px solid #aa8091}
.game-shell .play .timeline-room .timeline-check-desk>.actions {justify-content:flex-start;gap:.55rem}
.game-shell .play .timeline-room .actions .button:not(.secondary) {
  color:#fff8ed;
  background:var(--timeline-berry);
  border-color:var(--timeline-berry);
}
.game-shell .play .timeline-room .actions .button:not(.secondary):hover {background:#5e243f;border-color:#5e243f}
.game-shell .play .timeline-room .actions .button.secondary {color:#69334e}
.game-shell .timeline-room .timeline-previous-check {background:#f2e3e8;border-color:#9f6a84}
.game-shell .timeline-room .timeline-feedback {color:#663923;background:#fff0db;border-color:#aa7347}
.timeline-room button:focus-visible {outline-color:#414d79;outline-offset:3px}

.timeline-correct-line>h3,.timeline-attempt-archive>h3 {font:700 1.25rem/1.4 Georgia,'Noto Serif SC',serif}
.timeline-correct-line li {background:#edf2e3;border-color:#638067;color:#314837}
.timeline-attempt-record {background:var(--timeline-paper);border-color:#c5ada0;border-radius:7px}
.game-shell .timeline-room .timeline-attempt-count {color:var(--timeline-muted)}
.timeline-submitted-line>li,.timeline-violations {border-color:#cdb9aa}
.timeline-violations ul {color:#713f2e}
.game-shell .timeline-room .timeline-violations p {color:#3c624a}
.timeline-submitted-line>[data-timeline-slot-status=correct]>span:last-child {color:#3d644b;font-weight:700}
.timeline-submitted-line>[data-timeline-slot-status=wrong]>span:last-child {color:#844836;font-weight:700}
@media(max-width:899px) {
  .timeline-workspace {gap:20px}
  .timeline-clue-desk {padding:13px 0 0;border-inline-start:0;border-top:1px solid var(--timeline-line)}
  .timeline-clue-notes>li {padding-bottom:10px;margin-bottom:10px}
  .timeline-check-desk {margin-top:0;padding-top:8px}
}
@media(max-width:499px) {
  .timeline-slot-number {width:29px;height:29px}
  .timeline-sort-line button {font-size:1rem;padding:10px 11px}
  .timeline-sort-line button[aria-pressed=true] {padding:10px 11px}
}
@media(min-width:1150px) and (max-height:800px) {
  .game-shell.wide .timeline-room .timeline-sort-line button[aria-pressed=true] {padding:9px 14px}
}
