.search-game { --signal-purple: #6153d8; --signal-light: #eeebff; --signal-ink: #252037; max-width: 1140px; margin: 0 auto; padding: 10px 0 32px; }
.search-game button, .search-game input, .search-game select { font: inherit; }
.search-game .search-settings-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); }
.search-game .search-settings-summary { min-height: 44px; padding-block: 12px; cursor: pointer; font-size: .8rem; font-weight: 700; }
.search-game .search-settings { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 4px 0 14px; }
.search-game .search-settings label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; }
.search-game .search-settings select { min-height: 44px; min-width: 150px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 12px; color: var(--ink); background: var(--surface); }
.search-game .search-settings-note { flex-basis: 100%; font-size: .75rem; }
.search-game .search-replace { margin-top: 16px; padding: 16px; }
.search-game .search-replace p { margin-top: 0; }
.search-game .search-replace > div { display: flex; flex-wrap: wrap; gap: 10px; }
.search-game .search-scale-note { font-size: .7rem; line-height: 1.5; margin: -14px 0 16px; }
.search-game.search-wide-range .search-range { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.search-game button { cursor: pointer; }
.search-game [hidden] { display: none !important; }
.search-game .search-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.search-game h1 { margin: 5px 0 12px; font-family: var(--font-display, sans-serif); font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1; letter-spacing: -.055em; }
.search-game h1 > span { color: var(--signal-purple); }
.search-game .search-intro { margin: 0; color: var(--muted, #625e6d); font-size: 1rem; line-height: 1.65; }
.search-game .search-mode { display: flex; padding: 5px; border: 1px solid var(--line, #dedbd4); border-radius: 99px; background: var(--surface, #fffdf8); flex-shrink: 0; }
.search-game .search-mode button { min-height: 44px; border: 0; background: transparent; color: var(--muted, #625e6d); padding: 9px 18px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.search-game .search-mode button[aria-pressed="true"] { background: var(--signal-ink); color: #fff; }
.search-game .search-mode-note { font-size: .78rem; margin: 22px 0 16px; }
.search-game .search-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); gap: 22px; align-items: start; }
.search-game .search-instrument { background: var(--signal-light); border: 1px solid #d9d3f5; border-radius: 24px; padding: clamp(22px, 3vw, 38px); color: var(--signal-ink); position: relative; overflow: hidden; }
.search-game .search-instrument-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.search-game .search-instrument-top .eyebrow { color: #625988; }
.search-game .search-live { display: inline-flex; align-items: center; gap: 7px; font-size: .73rem; font-weight: 700; }
.search-game .search-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal-purple); box-shadow: 0 0 0 4px #6153d817; }
.search-game .search-range { display: flex; justify-content: space-between; align-items: center; font-size: clamp(3.7rem, 7.5vw, 6rem); font-weight: 750; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; margin: 37px 0 16px; }
.search-game .search-range-connector { font-size: .35em; color: #aaa0d5; font-weight: 400; margin: 0 10px; }
.search-game .search-range-description { color: #625988; font-size: .86rem; margin: 0 0 30px; }
.search-game .search-spectrum { display: grid; grid-template-columns: repeat(100, minmax(0, 1fr)); gap: 2px; height: 85px; align-items: center; }
.search-game .search-spectrum span { height: 75%; min-width: 1px; border-radius: 4px; background: var(--signal-purple); transition: background .25s, height .3s, opacity .3s; }
.search-game .search-spectrum span:nth-child(3n) { height: 90%; }
.search-game .search-spectrum span:nth-child(7n) { height: 100%; }
.search-game .search-spectrum span.is-out { height: 20%; background: #cbc3e9; }
.search-game .search-spectrum span.was-guessed { background: #8b7cae; }
.search-game .search-spectrum span.is-target { height: 100%; background: #302646; box-shadow: 0 0 0 4px var(--lime, #d6f479); z-index: 1; }
.search-game .search-ruler { display: flex; justify-content: space-between; margin: 13px 0 27px; color: #756b96; font-size: .65rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.search-game .search-feedback { min-height: 62px; background: #ffffff70; border-radius: 12px; padding: 15px 18px; font-size: .9rem; line-height: 1.55; font-weight: 600; }
.search-game .search-form { margin-top: 24px; }
.search-game .search-form label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 9px; }
.search-game .search-input-row { display: flex; gap: 10px; }
.search-game input { min-width: 0; width: 45%; height: 58px; border: 1px solid #c5bde4; border-radius: 12px; background: #fffefa; color: var(--signal-ink); font-size: 1.5rem; padding: 10px 15px; font-variant-numeric: tabular-nums; }
.search-game input::placeholder { color: #827790; opacity: 1; font-size: 1.12rem; }
.search-game .search-submit, .search-game .search-replay { background: var(--signal-ink); color: #fff; border: 1px solid var(--signal-ink); display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 58px; border-radius: 12px; padding: 12px 19px; font-weight: 700; }
.search-game .search-submit { flex: 1; white-space: nowrap; }
.search-game .search-submit:hover, .search-game .search-replay:hover { background: #43365f; }
.search-game .search-submit span, .search-game .search-replay span { font-size: 1.3rem; }
.search-game .search-input-hint { margin: 10px 0 0; font-size: .74rem; color: #625988; }
.search-game .search-error { color: #a12935; font-size: .8rem; font-weight: 650; min-height: 1.2em; margin: 6px 0 0; }
.search-game input[aria-invalid="true"] { border-color: #a12935; }
.search-game .search-side { display: grid; gap: 18px; }
.search-game .search-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-game .search-stats > div { padding: 22px; background: var(--surface, #fffdf8); border: 1px solid var(--line, #dedbd4); border-radius: 18px; }
.search-game .search-stats .eyebrow { font-size: .65rem; display: block; }
.search-game .search-stats strong { display: block; font-family: var(--font-display, sans-serif); font-size: 2.8rem; line-height: 1; margin-top: 14px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.search-game .search-benchmark { display: flex; align-items: flex-start; gap: 15px; padding: 24px 22px; background: #eaf1d5; border: 1px solid #d5dfb9; border-radius: 18px; }
.search-game .search-benchmark-icon { flex-shrink: 0; width: 43px; height: 43px; background: #d4e3a8; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 750; color: #344025; }
.search-game .search-benchmark .eyebrow { font-size: .64rem; margin: 1px 0 9px; color: #526039; }
.search-game .search-benchmark h2 { font-size: 1.04rem; margin: 0 0 9px; letter-spacing: -.025em; }
.search-game .search-benchmark p:not(.eyebrow) { color: #4e5940; font-size: .8rem; line-height: 1.6; margin: 0; }
.search-game .search-benchmark .search-benchmark-note { padding-top: 13px; margin-top: 13px !important; border-top: 1px solid #cedab3; font-size: .73rem !important; overflow-wrap: anywhere; }
.search-game .search-history { background: var(--surface, #fffdf8); border: 1px solid var(--line, #dedbd4); border-radius: 18px; padding: 22px; }
.search-game .search-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.search-game .search-history-heading h2 { font-size: .92rem; margin: 0; }
.search-game .search-history-total { color: var(--muted, #625e6d); font-size: .68rem; }
.search-game .search-empty { line-height: 1.7; font-size: .82rem; margin: 22px 0 3px; }
.search-game .search-trail { list-style: none; padding: 0; margin: 14px 0 0; max-height: 265px; overflow-y: auto; }
.search-game .search-trail:empty { display: none; }
.search-game .search-trail:focus-visible { outline: 3px solid var(--signal-purple); outline-offset: 4px; border-radius: 4px; }
.search-game .search-trail li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line, #dedbd4); font-size: .8rem; }
.search-game .search-trail strong { min-width: 33px; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.search-game .search-trail small { margin-left: auto; font-size: .7rem; color: var(--muted, #625e6d); white-space: nowrap; }
.search-game .search-trail-found { color: #4c426f; font-weight: 700; }
.search-game .search-result { margin-top: 24px; }
.search-game .search-result h2 { font-size: 1.5rem; letter-spacing: -.04em; margin: 0 0 10px; }
.search-game .search-result-copy { font-size: .86rem; color: #625988; line-height: 1.65; margin-bottom: 20px; }
.search-game .search-replay { width: 100%; }
.search-game.search-complete .search-live i { background: #4f6b25; box-shadow: 0 0 0 4px #4f6b2515; }
.search-game.search-complete .search-range { justify-content: center; }
.search-game.search-complete :is(.search-high, .search-range-connector) { display: none; }
.search-game .search-explainer { margin-top: 25px; border-block: 1px solid var(--line, #dedbd4); }
.search-game .search-explainer summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 66px; padding: 18px 3px; cursor: pointer; font-size: .9rem; font-weight: 650; list-style: none; }
.search-game .search-explainer summary::-webkit-details-marker { display: none; }
.search-game .search-details-plus { font-size: 1.5rem; color: var(--signal-purple); }
.search-game .search-explainer[open] .search-details-plus { transform: rotate(45deg); }
.search-game .search-explainer > div { max-width: 800px; padding: 0 3px 20px; font-size: .86rem; line-height: 1.7; color: var(--muted, #625e6d); }
.search-game :is(button, input, select, summary):focus-visible { outline: 3px solid var(--signal-purple); outline-offset: 4px; }
.search-game .search-result-title:focus-visible { outline: 2px solid var(--signal-purple); outline-offset: 5px; }
.search-game.search-reduced-motion * { transition: none !important; }
@media (max-width: 850px) {
  .search-game .search-layout { grid-template-columns: minmax(0, 1.3fr) minmax(235px, 1fr); gap: 16px; }
  .search-game .search-instrument { padding: 24px; }
  .search-game .search-range { font-size: 4.3rem; }
  .search-game .search-benchmark { padding: 20px; gap: 10px; }
  .search-game .search-benchmark-icon { width: 33px; height: 33px; font-size: 1rem; }
  .search-game .search-input-row { flex-wrap: wrap; }
  .search-game input { width: 100%; }
  .search-game .search-submit { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .search-game .search-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .search-game .search-mode { width: 100%; }
  .search-game .search-mode button { flex: 1; }
  .search-game .search-layout { grid-template-columns: minmax(0, 1fr); }
  .search-game .search-instrument { padding: 24px 20px; border-radius: 20px; }
  .search-game .search-range { margin-top: 30px; font-size: clamp(3.8rem, 14vw, 5.5rem); }
  .search-game .search-spectrum { gap: 1px; height: 65px; }
  .search-game .search-range-description { margin-bottom: 20px; }
  .search-game .search-feedback { min-height: auto; }
  .search-game .search-input-row { flex-wrap: nowrap; }
  .search-game input { width: 38%; }
  .search-game .search-submit { flex-basis: auto; padding-inline: 13px; font-size: .88rem; }
  .search-game .search-mode-note { line-height: 1.6; }
  .search-game .search-stats > div { padding: 20px; }
}
@media (max-width: 350px) {
  .search-game .search-input-row { flex-wrap: wrap; }
  .search-game input { width: 100%; }
  .search-game .search-submit { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .search-game * { transition: none !important; } }
