/* Maimo in your photo (/with.html). */
.with-stage { position: relative; margin: 16px auto 8px; max-width: 520px; border: var(--edge); box-shadow: 5px 5px 0 var(--ink); background: #e9e4d6; }
#with-canvas { display: block; width: 100%; height: auto; cursor: grab; }
#with-canvas.moving { touch-action: none; cursor: move; outline: 3px dashed var(--accent); outline-offset: -3px; }
.with-pick { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; cursor: pointer; background: rgba(244, 241, 232, .82); }
.with-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.with-pick b { padding: 12px 22px; border: var(--edge); background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--accent); font: 400 20px var(--dot); }
.with-pick small { margin-top: 10px; max-width: 30em; font: 700 11px var(--mono); letter-spacing: .04em; color: var(--muted); }
.with-pick:focus-within b { outline: 3px solid var(--accent); outline-offset: 3px; }
.with-hint { max-width: 520px; margin: 0 auto 6px; font-size: 12px; color: var(--muted); text-align: center; }
.with-tools { max-width: 520px; min-width: 0; margin: 0 auto; }
.passport.with { min-width: 0; }
.with-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.with-label { margin: 18px 0 6px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.with-label small { margin-left: 8px; font: 400 12px var(--dot); letter-spacing: 0; color: var(--muted); text-transform: none; }
.chip { min-height: 36px; padding: 4px 12px; border: var(--edge); background: var(--card); color: var(--ink); font: 700 12px var(--mono); letter-spacing: .04em; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* (A row that scrolls sideways must not widen the page: it asks for no width of its own and takes what there is.) */
.with-strip { display: flex; gap: 8px; width: 0; min-width: 100%; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.with-strip.chips { flex-wrap: wrap; overflow: visible; width: auto; min-width: 0; }
.with-tile { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 82px; padding: 4px 2px 5px; border: var(--edge); background: var(--card); color: var(--ink); cursor: pointer; }
.with-tile img { width: 68px; height: 68px; object-fit: contain; image-rendering: auto; }
.with-tile.souvenir img { width: 54px; height: 54px; margin: 7px 0; image-rendering: pixelated; }
.with-tile span { font: 700 9px var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.with-tile[aria-pressed="true"] { background: var(--lit, #ffcf5a); box-shadow: 3px 3px 0 var(--ink); }
.with-tile:disabled { cursor: default; background: transparent; border-style: dashed; color: var(--muted); }
.with-size { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.with-size small { font: 400 12px var(--dot); color: var(--muted); letter-spacing: 0; text-transform: none; }
.with-size input { flex: 1; min-width: 100px; accent-color: var(--ink); }
.with-tools input[type="text"] { width: 100%; min-height: 44px; padding: 8px 12px; border: var(--edge); background: var(--card); font: 400 16px var(--dot); color: var(--ink); }
.with-tools input[type="text"] + .with-label { margin-top: 16px; }
.with-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.with-actions .btn { flex: 1 1 130px; }
.with-ways { display: grid; gap: 14px; padding-left: 1.4em; max-width: 46em; }
.with-ways li { line-height: 1.6; }
.with-kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.with-cut { display: block; border: var(--edge); background: repeating-conic-gradient(#e9e4d6 0% 25%, #f4f1e8 0% 50%) 50% / 20px 20px; }
.with-cut img { display: block; width: 100%; height: auto; }
.with-cut:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px, -1px); }
