/* ==========================================================================
   app-toys.css — the three things in /Applications nobody asked for.
   Drawn in the machine's own bevels, because that is what makes them read
   as shipped with it rather than added to it.
   ========================================================================== */

/* ---- solitaire ---- */
.sol-table {
  flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px;
  background: #2e4536;
  box-shadow: inset 0 0 60px rgba(0,0,0,.45);
  direction: rtl; scrollbar-width: thin;
}
.sol-table > * { direction: ltr; }
.sol-row { display: flex; gap: 7px; }
.sol-top { margin-bottom: 14px; }
.sol-gap { flex: 1 1 auto; min-width: 8px; }
.sol-pile, .sol-col { width: 48px; flex: 0 0 48px; }
.sol-col { min-height: 220px; }
.sol-card {
  position: relative; height: 66px; border-radius: 3px;
  background: var(--paper); color: #111;
  border: 1px solid #1d1d1d;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; line-height: 1; cursor: pointer;
  font-family: var(--ui);
}
.sol-card.red { color: #a01818; }
.sol-card.down {
  background: repeating-linear-gradient(45deg, #43506b, #43506b 3px, #354063 3px, #354063 6px);
  border-color: #10131c;
}
.sol-card.empty {
  background: transparent; border: 1px dashed rgba(255,255,255,.28);
  box-shadow: none; color: rgba(255,255,255,.4); font-size: 15px;
}
.sol-card.held { outline: 2px solid var(--amber); outline-offset: -2px; }
.sol-r { font-size: 15px; font-weight: 700; }
.sol-s { font-size: 13px; }

/* ---- maze ---- */
.mz-wrap {
  flex: 1 1 auto; min-height: 0; display: flex;
  align-items: center; justify-content: center;
  background: #06070a; padding: 8px; overflow: auto;
}
.mz-canvas {
  image-rendering: pixelated;
  border: 1px solid var(--lo); box-shadow: inset 1px 1px 0 #2a2620;
  outline: none; max-width: 100%;
}
.mz-canvas:focus { box-shadow: inset 1px 1px 0 #2a2620, 0 0 0 2px var(--amber-dim); }

/* ---- tiles ---- */
.tl-wrap {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 14px; background: var(--gray-dk);
}
.tl-board {
  display: grid; grid-template-columns: repeat(4, 84px); grid-auto-rows: 84px;
  gap: 1px; padding: 3px; background: #1a1714;
  border: 1px solid var(--lo); box-shadow: inset 1px 1px 0 var(--hi);
}
.tl-tile {
  background: var(--gray-lt) no-repeat; cursor: pointer;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.4), inset -1px -1px 0 rgba(0,0,0,.35);
}
.tl-tile.drawn {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 17px; color: #3d3a34;
}
.tl-tile.hole { background: #0d0b09; box-shadow: inset 0 0 12px #000; cursor: default; }
.tl-loose { display: flex; align-items: center; gap: 9px; min-height: 88px; }
.tl-loose .tl-tile.out {
  width: 84px; height: 84px; flex: 0 0 84px;
  transform: rotate(-4deg);
  box-shadow: 0 5px 12px rgba(0,0,0,.5);
}

@media (max-width: 560px) {
  .tl-board { grid-template-columns: repeat(4, 64px); grid-auto-rows: 64px; }
  .tl-loose .tl-tile.out { width: 64px; height: 64px; flex: 0 0 64px; }
}
