.tray-room{--tray-felt:#335b54;--tray-wood:#b99a72;--tray-paper:#fffdf6;--tray-ink:#33443d;--tray-line:#b6c7bc;width:min(100%,1240px);margin-inline:auto;color:var(--tray-ink);text-align:left}
.tray-room .session-banner{text-align:left;margin:0 0 20px}
.game-shell .play .tray-room .session-banner .meta{margin-inline:0}
.tray-observe-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 20px}
.tray-observe-heading .session-banner{margin:0}
.tray-observe-heading .table-clock{margin:0;flex:none}
.game-shell .play .tray-room .memory-tray{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:16px;width:100%;max-width:none;list-style:none;padding:25px 22px;border:9px solid var(--tray-wood);border-radius:12px;background:var(--tray-felt);box-shadow:inset 0 2px 6px #142f2d55,0 3px 0 #8b6e4f;margin:20px 0}
.game-shell .play .tray-room .memory-tray>li{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;background:transparent;border:0;border-radius:0;padding:0;min-width:0;min-height:0;text-align:center}
.tray-object-visual{display:block;aspect-ratio:1;width:100%;max-width:120px;flex:none}
.tray-object-name{display:block;background:var(--tray-paper);color:#33443d;padding:5px 7px;min-width:0;max-width:100%;border-radius:3px;font-size:.85rem;line-height:1.35;font-weight:650;overflow-wrap:anywhere;text-align:center}
.tray-lid{display:flex;align-items:center;justify-content:center;width:min(100%,990px);height:clamp(180px,28vh,310px);margin:24px auto;border:8px solid #aa8a63;border-radius:13px;background:repeating-linear-gradient(0deg,#c3a880 0,#c3a880 12px,#bea079 13px,#bea079 14px);box-shadow:inset 0 2px 10px #7a5c3b38,0 5px 0 #81674933}
.tray-lid>span{display:block;width:clamp(110px,24%,220px);height:27px;border-radius:8px;background:#a08057;border-top:2px solid #d8c29f;border-bottom:4px solid #87683f;box-shadow:0 4px 7px #6e523440}
.game-shell .play .tray-room .tray-cue{text-align:left;font-size:.98rem;line-height:1.7;margin:20px 0;max-width:48rem}
.tray-surviving h3{font-size:1rem;font-weight:700;margin:22px 0 0}
.tray-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 14px}
.game-shell .tray-room .tray-choice-heading p{text-align:left;margin:0;font-size:1rem;line-height:1.5}
.tray-choice-heading>strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:1.2rem}
.game-shell .tray-room .tray-selecting>.actions,.game-shell .tray-room[data-tray-phase="review"]>.actions{
  justify-content:flex-start;margin-inline:0;
}
.game-shell .tray-room .tray-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px;max-width:990px;justify-content:start;margin:16px 0 24px}
.game-shell .tray-room .tray-picks>button{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;min-height:44px;padding:12px 10px;border:1px solid #a9bdb1;border-radius:6px;background:#fff;color:var(--tray-ink);box-shadow:none;font:inherit;cursor:pointer}
.game-shell .tray-room .tray-picks>button[aria-pressed="true"]{border:3px solid #3b6c52;background:#eff8f0;padding:10px 8px}
.game-shell .tray-room .tray-picks>button[aria-pressed="true"]:after{display:none}
.tray-picks .tray-object-visual{max-width:95px}
.tray-picks .tray-object-name{background:transparent;padding:0}
.tray-choice-state{font-size:.75rem;color:#687e70;line-height:1.4;text-align:center}
.tray-room button:focus-visible,.tray-room summary:focus-visible{outline:3px solid #336d51;outline-offset:4px}
.tray-review-statuses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0}
.tray-review-statuses>section{border-top:4px solid #6b9676;padding:16px;background:#f5f9f4;border-radius:4px;min-width:0}
.tray-review-statuses>[data-tray-status="missed"]{border-color:#ae8b4d;background:#fff9eb}
.tray-review-statuses>[data-tray-status="wrong"]{border-color:#a66a61;background:#fff4f0}
.tray-review-statuses h4{font-size:.95rem;margin:0 0 12px;line-height:1.5}
.tray-result-names{list-style:none;padding:0;margin:0;display:flex;gap:7px 16px;flex-wrap:wrap;font-size:.95rem;font-weight:650;line-height:1.6}
.game-shell .tray-room .tray-none{text-align:left;margin:0;color:#687e70;font-size:.9rem}
.tray-comparison{margin:28px 0;border-top:1px solid var(--tray-line);padding-top:14px}
.tray-comparison>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650;line-height:1.5}
.tray-evidence-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:16px 0}
.tray-evidence-pair>section{min-width:0}
.tray-evidence-pair h4{font-size:.95rem;margin:12px 0 0;line-height:1.5}
.game-shell .play .tray-room .tray-evidence-pair .memory-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px;border-width:6px;margin:14px 0}
.tray-evidence-pair .tray-object-visual{max-width:95px}
.tray-evidence-pair .tray-object-name{font-size:.75rem;padding:4px 5px}
.tray-candidate-evidence{margin:24px 0}
.tray-candidate-evidence h4{font-size:.95rem;margin:0 0 14px}
.tray-candidate-evidence>ul{list-style:none;display:flex;flex-wrap:wrap;gap:10px 20px;padding:0;margin:0}
.tray-candidate-evidence li{display:grid;gap:5px;border-left:2px solid #c8d5cb;padding-left:10px;font-size:.87rem}
.tray-candidate-evidence li span{font-size:.75rem;color:#687e70}
.game-shell .tray-room .tray-final-score{text-align:left;font-size:1rem;line-height:1.6;margin:20px 0}
.tray-final-score strong{font-size:2.5rem;font-variant-numeric:tabular-nums;margin-left:12px}
.tray-archive{border-top:2px solid #7d9b81;margin-top:28px;padding-top:20px}
.tray-archive>h3{font-size:1.1rem;margin:0 0 18px}
.tray-archive>.tray-round-record{border:1px solid var(--tray-line);border-radius:6px;padding:14px 20px;margin:16px 0;background:#fff}
.tray-round-record>summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:650;line-height:1.6}
@media(min-width:960px){
  .game-shell.wide .tray-choice-layout{
    display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:start;gap:32px;
  }
  .game-shell.wide .play .tray-room .tray-surviving .memory-tray{grid-template-columns:repeat(4,minmax(0,1fr))}
  .game-shell.wide .tray-room .tray-picks{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:no-preference){
  .tray-room[data-tray-phase="covered"] .tray-lid{animation:tray-settle .24s ease-out}
}
@keyframes tray-settle{from{transform:translateY(-5px)}}
@media(max-width:699px){
  .tray-observe-heading{gap:14px}
  .tray-observe-heading h2{font-size:1.3rem}
  .game-shell .play .tray-room .memory-tray{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 9px;padding:16px 12px;border-width:6px;margin:18px 0}
  .tray-object-name,.tray-evidence-pair .tray-object-name{font-size:.75rem;padding:4px 3px}
  .tray-lid{height:190px;border-width:6px}
  .game-shell .tray-room .tray-picks{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:9px}
  .game-shell .tray-room .tray-picks>button{padding:10px 7px}
  .game-shell .tray-room .tray-picks>button[aria-pressed="true"]{padding:8px 5px}
  .tray-choice-heading{gap:10px}
  .game-shell .tray-room .tray-choice-heading p{font-size:.87rem}
  .tray-choice-heading>strong{font-size:1rem}
  .tray-review-statuses{grid-template-columns:minmax(0,1fr);gap:10px}
  .tray-review-statuses>section{padding:12px 15px}
  .tray-review-statuses h4{margin-bottom:7px}
  .tray-evidence-pair{grid-template-columns:minmax(0,1fr);gap:12px}
  .game-shell .play .tray-room .tray-evidence-pair .memory-tray{padding:12px 10px;gap:10px 7px}
  .tray-archive>.tray-round-record{padding:12px}
  .tray-candidate-evidence>ul{gap:12px 18px}
}
@media(prefers-reduced-motion:reduce){.tray-room *{animation:none!important;transition:none!important}}

.page-game .game-shell.theme-tray:has(.tray-room) {
  --tray-accent:#385b38;
  background:radial-gradient(ellipse at 34% 0,#fffaf1,#f1e4cf 92%);
}
.page-game .game-shell.theme-tray:has(.tray-room) .game-toolbar {
  background:#f5ead8;color:#483925;border-color:#beab8c;
}
.theme-tray:has(.tray-room) .game-toolbar .button {
  background:#fff8eb;color:#385436;border-color:#a99b7f;
}
.game-shell .play .tray-room {
  --tray-felt:#506040;
  --tray-wood:#b17b47;
  --tray-ink:#302a20;
  --tray-paper:#fff8e8;
  --tray-line:#c1af90;
  --tray-sprite-size:clamp(110px,19dvh,204px);
}
.game-shell.theme-tray .tray-room .session-banner h2 {
  color:#3b2f22;
  font-family:Georgia,"Noto Serif SC","Songti SC",SimSun,serif;
}
.game-shell.theme-tray .tray-room .session-banner .meta {color:#6b4f31}
.game-shell .play .tray-room .memory-tray {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(10px,1.5vw,21px);
  padding:clamp(12px,2vw,26px);
  border-width:clamp(6px,1vw,14px);
  border-radius:17px;
  background:
    repeating-linear-gradient(32deg,#ffffff0b 0 1px,transparent 1px 4px),
    repeating-linear-gradient(132deg,#0000000e 0 1px,transparent 1px 5px),
    radial-gradient(ellipse at 45% 25%,#6a7750,var(--tray-felt) 75%);
  box-shadow:inset 0 0 0 2px #ddc89b65,inset 0 6px 19px #18231975,
    0 -1px 0 1px #d3aa76,0 5px 0 #7d512f,0 13px 20px #53381c39;
}
.game-shell .play .tray-room .memory-tray > li {gap:5px}
.memory-tray .tray-object-visual {
  max-width:var(--tray-sprite-size);
  filter:drop-shadow(2px 4px 3px #18271380);
}
.memory-tray .tray-object-name {
  border:1px solid #ac8652;
  background:linear-gradient(#fff5da,#e8cc96);
  color:#362719;
  padding:.29em .62em;
  box-shadow:0 2px 0 #442d19a1;
}
.tray-lid {
  border-color:#a66b3e;
  border-radius:17px;
  background:
    repeating-linear-gradient(2deg,#532a141c 0 1px,transparent 1px 5px),
    repeating-linear-gradient(0deg,#fff1b919 0 4px,transparent 5px 18px),
    linear-gradient(166deg,#d6a06a,#a4673c);
  box-shadow:inset 0 0 0 2px #fae0ae75,0 5px 0 #754b2e,0 12px 24px #67421e33;
}
.tray-lid > span {
  height:24px;
  background:linear-gradient(#c99152,#6d4528);
  box-shadow:0 8px 10px #6e431780;
}
.game-shell .play .tray-room .tray-observe-heading .table-clock {
  box-sizing:border-box;
  width:clamp(76px,12vmin,114px);
  min-width:0;
  aspect-ratio:1;
  padding:6px;
  border:3px solid #957047;
  border-radius:50%;
  background:radial-gradient(circle,#fff8e5,#ecd1a1 67%,#b59058 70%,#e8bd7e 100%);
  color:#33220f;
  box-shadow:inset 0 0 0 2px #dfbd7e,0 4px 10px #523d252b;
}
.game-shell .play .tray-room .tray-observe-heading .table-clock strong {font-size:clamp(1.7rem,5vmin,3.5rem)}
.game-shell .play .tray-room .tray-observe-heading .table-clock span {font-size:clamp(.65rem,1.3vmin,.8rem)}
.game-shell .play .tray-room .tray-observe-heading .table-clock progress {width:46%;height:4px;accent-color:#765a38}
.tray-observe-heading .table-clock progress::-webkit-progress-bar {background:#d9bc8a}
.tray-observe-heading .table-clock progress::-webkit-progress-value {background:#76512b}
.tray-observe-heading .table-clock progress::-moz-progress-bar {background:#76512b}
.game-shell .play .tray-room .tray-picks > button {border-color:#baa17b;background:#fff9eb}
.game-shell .play .tray-room .tray-picks > button:hover {background:#f3ead4}
.game-shell .play .tray-room .tray-picks > button[aria-pressed="true"] {
  background:#e3efd9;border-color:var(--tray-accent);
}
.game-shell .play .tray-room .tray-picks > button[aria-pressed="true"] .tray-choice-state {color:#244629;font-weight:750}
.tray-choice-state {color:#5e5443}
.theme-tray .tray-room .button:not(.secondary):not(:disabled) {background:var(--tray-accent);color:white;border-color:var(--tray-accent)}
.theme-tray .tray-room .button:not(.secondary):not(:disabled):hover {background:#2d4a2e}
.theme-tray .tray-room .button.secondary {color:#385436}
.theme-tray .tray-room .button:disabled {background:#e5dfcf;color:#5b5748;border-color:#bfb39a;opacity:1}
.tray-room .button {min-height:44px}
.game-shell .play .tray-room .tray-evidence-pair .memory-tray {border-radius:9px}
.tray-round-record .tray-review-statuses>section {background:#ebf1e2}
.tray-round-record .tray-review-statuses>[data-tray-status="missed"] {background:#fff3d7}
.tray-round-record .tray-review-statuses>[data-tray-status="wrong"] {background:#f8e7de}
@media(max-width:699px) {
  .game-shell .play .tray-room .memory-tray {gap:12px 7px}
  .game-shell .play .tray-room .tray-observe-heading {margin-bottom:10px}
  .game-shell .play .tray-room .tray-picks {margin-block:10px 16px}
}
