/* Cyber Scientific: colour assists distinct silhouettes, never carries the rule alone. */
.secret-code-game{--code-edge:rgba(125,205,222,.25);display:grid;gap:14px;width:100%;max-width:520px;margin:10px auto 0;contain:layout style}
.code-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:18px;color:#d9edf3}.code-budget{font-variant-numeric:tabular-nums;color:#8ee2e8}
.code-draft{display:grid;grid-template-columns:repeat(var(--code-length),minmax(0,1fr));gap:8px}
.code-slot,.code-symbol{appearance:none;padding:10px;border:1px solid var(--code-edge);border-radius:14px;background:linear-gradient(155deg,rgba(34,76,95,.6),rgba(10,31,48,.85));display:grid;place-items:center;min-width:0;min-height:58px;color:#b8d4df;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.code-slot[aria-pressed=true]{border-color:#8de2e8;box-shadow:inset 0 0 0 1px rgba(141,226,232,.42);background:rgba(42,104,122,.32)}
.secret-code-game svg{display:block;width:32px;height:32px;fill:var(--code-color);stroke:rgba(255,255,255,.6);stroke-width:.65;filter:drop-shadow(0 1px 3px rgba(0,0,0,.3));pointer-events:none}.code-slot>span{font-size:28px;line-height:1}
.code-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.code-symbol{min-height:54px}.code-symbol:active,.code-slot:active{background:rgba(73,153,172,.32)}.secret-code-game button:disabled{opacity:.4;cursor:default}.secret-code-game button:focus-visible{outline:2px solid #f6bd62;outline-offset:3px}
.code-tools{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px}.code-tools button{min-height:52px;margin:0;font-size:18px}.code-status{min-height:24px;margin:0;color:#c7dfe8;font-size:16px;line-height:1.45}.code-legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#c7dfe8;font-size:16px}.code-legend b{color:#8be0ce;margin-right:5px}.code-legend span:last-child b{color:#f6bd62}
.code-history{list-style:none;display:grid;gap:8px;padding:0;margin:0}.code-history-row{display:grid;grid-template-columns:18px minmax(0,1fr) 42px 42px;align-items:center;gap:6px;border:1px solid var(--code-edge);border-radius:12px;min-height:50px;padding:7px 9px;background:rgba(7,27,44,.6)}.code-history-index{font-size:14px;color:#b6cfd9;font-variant-numeric:tabular-nums}.code-history-values{display:flex;justify-content:space-around;gap:4px}.code-history-symbol svg{width:25px;height:25px}.code-count{display:flex;align-items:center;justify-content:center;gap:5px;font-size:17px;font-variant-numeric:tabular-nums;color:#8be0ce}.code-count.misplaced{color:#f6bd62}.code-history-row.solved{border-color:rgba(112,218,176,.65)}
.code-reveal{border:1px solid var(--code-edge);border-radius:12px;padding:12px;display:grid;gap:10px;color:#d3e8ef;font-size:16px}.code-reveal[hidden]{display:none}.code-reveal>div{display:flex;justify-content:center;gap:14px}
@media(max-width:360px){.secret-code-game{gap:12px}.code-draft,.code-palette{gap:6px}.code-slot{padding:8px;min-height:54px}.code-history-row{padding:7px 6px;gap:3px;grid-template-columns:16px minmax(0,1fr) 37px 37px}.code-history-symbol svg{width:23px;height:23px}.code-count{gap:3px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.secret-code-game *{animation:none!important;transition:none!important}}
