/* Neuriosity — Order It playfield.
   Shared chrome lives in ../_shared/game-kit.css */

.oi-game .neu-status:empty { display: none; }

/* ---------- the clues ---------- */

/* Drawn, not written — see the note at the top of order-it.js. */
.oi-clues {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(var(--gu) * 1) calc(var(--gu) * 2.4);
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
}

.oi-clue {
  display: flex;
  align-items: center;
  gap: calc(var(--gu) * 0.8);
  padding: calc(var(--gu) * 0.7) calc(var(--gu) * 1.4);
  background: #fff;
  border: calc(var(--gu) * 0.3) solid rgba(140, 105, 135, 0.3);
  border-radius: calc(var(--gu) * 1.2);
}

.oi-mark {
  color: #8c6987;
  font-size: calc(var(--gu) * 3.4);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.oi-mark--next { font-size: calc(var(--gu) * 3.8); }

/* "is 3" — the only clue that carries a word, and it is two letters. */
.oi-clue .oi-mark:not(.oi-mark--next) { letter-spacing: 0.02em; }

.oi-slotno {
  color: #8c6987;
  font-size: calc(var(--gu) * 3.2);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- a shape ---------- */

.oi-chip {
  display: block;
  width: calc(var(--gu) * 5.6);
  height: calc(var(--gu) * 5.6);
}

.oi-chip svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- the row being built ---------- */

.oi-slots {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: calc(var(--gu) * 1);
  flex: 0 0 auto;
  width: 100%;
}

.oi-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gu) * 0.2);
  flex: 0 1 calc(var(--gu) * 17);
  min-width: 46px;
  /* --gu is about 2.5px in a 4:3 frame at phone width, so the --gu height has
     to have a thumb-sized floor under it. Same lesson as the results screen. */
  min-height: max(44px, calc(var(--gu) * 15));
  padding: calc(var(--gu) * 0.8);
  font: inherit;
  background: #f4f0f3;
  border: calc(var(--gu) * 0.35) dashed rgba(140, 105, 135, 0.45);
  border-radius: calc(var(--gu) * 1.2);
  cursor: pointer;
}

.oi-slot.is-full { background: #fff; border-style: solid; }
.oi-slot .oi-slotno { font-size: calc(var(--gu) * 2.2); }
.oi-slot:focus-visible { outline: calc(var(--gu) * 0.5) solid #8c6987; outline-offset: calc(var(--gu) * 0.2); }

.oi-slot.is-right { background: rgba(14, 168, 90, 0.16); border-color: var(--green, #0ea85a); border-style: solid; }
.oi-slot.is-wrong { background: rgba(241, 95, 109, 0.16); border-color: var(--coral, #f15f6d); border-style: solid; }

/* ---------- the pieces still to place ---------- */

.oi-tray {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gu) * 1.2);
  flex: 0 0 auto;
  min-height: calc(var(--gu) * 13);
  width: 100%;
}

.oi-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: calc(var(--gu) * 0.8);
  background: #fff;
  border: calc(var(--gu) * 0.35) solid rgba(140, 105, 135, 0.35);
  border-radius: calc(var(--gu) * 1.2);
  cursor: pointer;
}

.oi-tile:hover { border-color: #8c6987; }
.oi-tile:active { transform: scale(0.97); }
.oi-tile:focus-visible { outline: calc(var(--gu) * 0.5) solid #8c6987; outline-offset: calc(var(--gu) * 0.2); }

/* The tray empties as the row fills, which leaves this row free for the one
   control the game needs. */
.oi-check {
  min-height: 44px;
  padding: 0 calc(var(--gu) * 4);
  color: #fff;
  font: inherit;
  font-size: calc(var(--gu) * 3.2);
  font-weight: 800;
  background: #8c6987;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.oi-check:hover { background: #7a5a76; }
.oi-check:focus-visible { outline: calc(var(--gu) * 0.5) solid var(--navy, #062b63); outline-offset: calc(var(--gu) * 0.3); }

.oi-answer { display: flex; align-items: center; gap: calc(var(--gu) * 1.2); }

@media (prefers-reduced-motion: reduce) {
  .oi-tile:active { transform: none; }
}
