/* Copied from sejarah-t1/games/src/papan.css by site/build_games.py. Edit the source, not this copy. */
/* Papan Siasatan game. Brand tokens from sejarah-t1/CLAUDE.md (one committed look: the case file). */
.ds-papan {
  --teal: #1F4E5A; --teal-2: #2C6676; --ochre: #C98B2B; --cream: #F6EFE2; --paper: #FDFAF3;
  --ink: #22313A; --ink-soft: #5B6A72; --line: #E3D8C3; --red: #B22A2A; --ok: #3EA060;
  --p0: #168A96; --p1: #F09224; --p2: #3EA060; --p3: #3C96DC;
  color-scheme: light;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink); background: var(--cream);
  max-width: 980px; margin: 0 auto; padding: 16px; border-radius: 22px;
  line-height: 1.45; -webkit-tap-highlight-color: transparent;
}
.ds-papan * { box-sizing: border-box; }
.ds-papan button { font: inherit; color: inherit; }
.ds-papan :focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* header */
.dsp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--teal); color: #fff; border-radius: 16px; padding: 12px 16px; }
.dsp-mark { display: flex; align-items: center; gap: 10px; }
.dsp-mark svg { flex: none; }
.dsp-mark b { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; line-height: 1.05; }
.dsp-mark b span { color: #FFD678; }
.dsp-mark small { display: block; font-size: .72rem; opacity: .8; letter-spacing: .04em; }
.dsp-cases { display: flex; flex-wrap: wrap; gap: 6px; }
.dsp-case { border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff !important; border-radius: 999px;
  padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.dsp-case[aria-pressed="true"] { background: var(--ochre); border-color: var(--ochre); }

/* file tab + title */
.dsp-file { margin-top: 16px; background: var(--paper); border: 2px solid var(--line); border-radius: 4px 18px 18px 18px;
  padding: 16px; position: relative; }
.dsp-file::before { content: "FAIL KES"; position: absolute; top: -26px; left: -2px; background: #E9D3A6; color: #6B4A12;
  font-weight: 700; font-size: .7rem; letter-spacing: .12em; padding: 4px 14px 6px; border-radius: 10px 10px 0 0; }
.dsp-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.dsp-title h2 { margin: 0; font-size: clamp(1.1rem, 3.6vw, 1.45rem); font-weight: 700; color: var(--teal); text-wrap: balance; }
.dsp-title h2 em { font-style: normal; color: var(--red); margin-right: .35em; }
.dsp-score { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.dsp-score b { color: var(--ink); }
.dsp-how { margin: 6px 0 0; font-size: .86rem; color: var(--ink-soft); max-width: 62ch; }

/* clue steps */
.dsp-steps { display: flex; gap: 6px; margin: 14px 0 10px; list-style: none; padding: 0; }
.dsp-steps li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.dsp-steps li.done { background: var(--ok); }
.dsp-steps li.now { background: var(--ochre); }

.dsp-row-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dsp-row-h .ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--ochre);
  display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.dsp-row-h h3 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.dsp-row-h h3 u { text-decoration: none; color: #623496; font-weight: 800; }
.dsp-row-h small { color: var(--ink-soft); font-size: .78rem; }

/* period slots */
.dsp-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dsp-slot { display: flex; flex-direction: column; min-height: 132px; border-radius: 14px; background: #fff;
  border: 2px dashed var(--line); padding: 0; cursor: pointer; text-align: left; overflow: hidden; }
.dsp-slot .ph { background: var(--pc); color: #fff; font-weight: 700; font-size: .82rem; padding: 6px 10px; letter-spacing: .02em; }
.dsp-slot .body { flex: 1; padding: 8px 10px; font-size: .86rem; display: flex; align-items: center; }
.dsp-slot .body i { color: #A89C86; font-style: normal; font-size: .8rem; }
.dsp-slot.filled { border-style: solid; border-color: var(--pc); }
.dsp-slot.locked { border-style: solid; border-color: var(--ok); background: #F1F8F2; cursor: default; }
.dsp-slot.locked .body::after { content: "✔"; margin-left: auto; padding-left: 6px; color: var(--ok); font-weight: 800; }
.dsp-slot.target { border-color: var(--ochre); background: #FFF8EA; }
.dsp-slot.wrong { animation: dsp-shake .45s; border-color: var(--red); }
@keyframes dsp-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* tray */
.dsp-tray-h { margin: 16px 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.dsp-tray { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-height: 12px; }
.dsp-chip { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; text-align: left;
  font-size: .88rem; cursor: pointer; box-shadow: 0 2px 0 var(--line); transition: transform .12s, border-color .12s; }
.dsp-chip:hover { border-color: var(--teal-2); }
.dsp-chip[aria-pressed="true"] { border-color: var(--ochre); background: #FFF3DC; transform: translateY(-2px); box-shadow: 0 4px 0 var(--ochre); }

.dsp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.dsp-btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; background: var(--teal); color: #fff !important; }
.dsp-btn.alt { background: transparent; color: var(--teal) !important; border: 2px solid var(--teal); }
.dsp-btn:disabled { opacity: .4; cursor: not-allowed; }
.dsp-msg { font-size: .88rem; flex: 1 1 220px; min-height: 1.4em; }
.dsp-msg.good { color: var(--ok); font-weight: 600; }
.dsp-msg.bad { color: var(--red); font-weight: 600; }

/* end: full board */
.dsp-end { position: relative; }
.dsp-stamp { position: absolute; right: 8px; top: 16px; transform: rotate(-9deg); border: 4px solid var(--red); color: var(--red);
  font-weight: 800; letter-spacing: .08em; padding: 4px 14px; border-radius: 8px; font-size: 1.15rem; background: rgba(253,250,243,.85);
  animation: dsp-stamp .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes dsp-stamp { from { transform: rotate(-9deg) scale(2.2); opacity: 0; } }
.dsp-stars { font-size: 1.8rem; letter-spacing: .1em; color: var(--ochre); }
.dsp-stars .off { color: var(--line); }
.dsp-result { font-variant-numeric: tabular-nums; margin: 2px 0 12px; font-size: .92rem; }
.dsp-mn { display: inline-block; background: #623496; color: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.dsp-wrap { overflow-x: auto; border-radius: 14px; border: 2px solid var(--teal); }
.dsp-board { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--paper); font-size: .82rem; }
.dsp-board th, .dsp-board td { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.dsp-board thead th { color: #fff; font-weight: 700; border-color: rgba(255,255,255,.3); }
.dsp-board tbody th { background: var(--teal); color: #fff; font-weight: 600; width: 150px; }
.dsp-board tbody th small { display: block; font-weight: 400; opacity: .8; }
.dsp-note { font-size: .74rem; color: var(--ink-soft); margin: 12px 0 0; }

@media (max-width: 640px) {
  .ds-papan { padding: 16px; border-radius: 0; }
  .dsp-slots { grid-template-columns: 1fr 1fr; }
  .dsp-slot { min-height: 118px; }
  .dsp-tray { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .dsp-slots { grid-template-columns: 1fr; } .dsp-slot { min-height: 0; } .dsp-slot .body { min-height: 52px; } }
@media (prefers-reduced-motion: reduce) { .ds-papan * { animation: none !important; transition: none !important; } }
