/* Interactable objects: lock, loot, shop, puzzle, trap and breakable windows, chat cards, the GM
   interaction editor and the preset palette. Loaded from index.html. */

:root {
  --c-pp: #dfe7f0; --c-gp: #e8c25a; --c-ep: #c9cf8a; --c-sp: #c3c9d3; --c-cp: #c97b4b;
}

.ix-pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ix-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.ix-kick { font: 700 8px var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.ix-title { display: block; font: 400 19px/1.2 var(--serif); letter-spacing: .05em; color: #eee7d9; }
.ix-hint { margin: 0; color: var(--dim); font-size: 11.5px; line-height: 1.5; }
.ix-none, .ix-empty { margin: 0; color: var(--dim); font-style: italic; font-size: 12px; }
.ix-empty { padding: 18px 0; text-align: center; border: 1px dashed var(--rule); border-radius: 4px; }
.ix-status { margin: 0; padding: 7px 10px; border-left: 2px solid var(--accent-dim); background: rgba(220, 179, 92, .05); font: italic 13px var(--serif); color: #e4dcc8; }
.ix-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ix-actions .ix-hint { margin-right: auto; }

/* window head: token disc + title */
.ix-head { display: flex; align-items: center; gap: 12px; }
.ix-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ix-head-main .ix-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-head-side { display: flex; align-items: center; gap: 8px; }
.ix-disc { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--accent-dim); box-shadow: 0 0 0 3px rgba(220, 179, 92, .07), 0 8px 20px rgba(0, 0, 0, .5); }
.ix-disc.blank { display: grid; place-items: center; font: 400 19px var(--serif); color: var(--accent); background: radial-gradient(circle at 35% 30%, rgba(220, 179, 92, .2), #0b101a 70%); }

/* coins */
.ix-coins { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ix-coin { --c: var(--c-gp); display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--c) 12%, #0d121c), rgba(6, 9, 15, .9)); line-height: 1; }
.ix-coin i { width: 14px; height: 14px; border-radius: 50%; flex: none; background: radial-gradient(circle at 34% 30%, #fff 0, color-mix(in srgb, var(--c) 92%, #fff) 18%, var(--c) 52%, color-mix(in srgb, var(--c) 55%, #000) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, #000), 0 1px 3px rgba(0, 0, 0, .6); }
.ix-coin b { font: 700 11px var(--mono); color: color-mix(in srgb, var(--c) 70%, #fff); }
.ix-coin small { font: 700 7.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ix-coin.big { padding: 4px 11px 4px 4px; border-radius: 14px; }
.ix-coin.big i { width: 20px; height: 20px; }
.ix-coin.big b { font-size: 13px; }
.c-pp { --c: var(--c-pp); } .c-gp { --c: var(--c-gp); } .c-ep { --c: var(--c-ep); } .c-sp { --c: var(--c-sp); } .c-cp { --c: var(--c-cp); }
.ix-price { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--c-gp) 40%, transparent); background: linear-gradient(145deg, rgba(64, 50, 20, .55), rgba(10, 9, 6, .9)); font: 700 10.5px var(--mono); color: #f1d999; white-space: nowrap; }
.ix-price i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, var(--c-gp) 45%, #6b5016); box-shadow: inset 0 0 0 1px #6b5016; }

/* item rows: plates that lift */
.ix-items, .ix-pack-list, .ix-list { display: flex; flex-direction: column; gap: 6px; }
.ix-items { min-height: 60px; padding: 3px; margin: -3px; border-radius: 6px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.ix-items.drop { border-color: var(--accent-dim); background: rgba(220, 179, 92, .05); }
.ix-item {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 7px 8px 7px 9px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  background: linear-gradient(145deg, var(--plate-a), var(--plate-b)); box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.ix-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .22s var(--ease); }
.ix-item:hover { transform: translateY(-2px); border-color: var(--accent-dim); box-shadow: 0 12px 26px rgba(0, 0, 0, .5), 0 0 16px color-mix(in srgb, var(--accent) 9%, transparent); }
.ix-item:hover::before { transform: scaleY(1); }
.ix-item[draggable=true] { cursor: grab; }
.ix-item.dragging { opacity: .45; }
.ix-item.out { opacity: .55; }
.ix-item.out:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.ix-item.small { grid-template-columns: 26px minmax(0, 1fr) auto auto; padding: 5px 7px; }
.ix-item.small .ix-mono { width: 26px; height: 26px; font-size: 12px; }
.ix-mono { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; border: 1px solid var(--accent-dim); background: radial-gradient(circle at 35% 25%, rgba(220, 179, 92, .2), #0b101a 75%); font: 400 15px var(--serif); color: var(--accent); }
.ix-item-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ix-item-main b { font: 600 13px var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-item-main small { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-qty { font: 700 11px var(--mono); color: var(--accent); }
.ix-item-btns { display: inline-flex; align-items: center; gap: 4px; }
.ix-item-btns .ix-qin { width: 46px; padding: 3px 4px; }
.ix-take { color: var(--accent); border-color: var(--accent-dim); }

/* loot */
.ix-purse { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px; border: 1px solid var(--rule-2); border-radius: 5px; background: radial-gradient(ellipse at 0 50%, rgba(220, 179, 92, .1), transparent 60%), rgba(5, 8, 13, .45); }
.ix-purse .ix-coin { padding: 4px 11px 4px 4px; border-radius: 14px; }
.ix-purse .ix-coin i { width: 20px; height: 20px; }
.ix-purse .ix-coin b { font-size: 13px; }
.ix-closed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px dashed var(--rule-2); border-radius: 5px; }
.ix-party { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ix-chars { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-char { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; text-align: left; border-radius: 22px; background: rgba(5, 8, 13, .5); border-color: var(--rule); color: var(--ink-2); max-width: 100%; }
.ix-char:hover:not(:disabled) { border-color: var(--accent-dim); }
.ix-char.on { border-color: var(--accent); background: linear-gradient(90deg, rgba(220, 179, 92, .16), rgba(220, 179, 92, .03)); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 14%, transparent); }
.ix-char.drop { border-color: var(--accent); transform: scale(1.04); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.ix-char-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ix-char-main b { font: 600 12px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-char .ix-coin { padding: 1px 6px 1px 2px; }
.ix-char .ix-coin i { width: 10px; height: 10px; }
.ix-char .ix-coin b { font-size: 9.5px; }
.ix-char .ix-coin small { display: none; }
.ix-av { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule-2); }
.ix-av.blank { display: grid; place-items: center; font: 600 12px var(--serif); color: var(--accent); background: #141b29; }
.ix-pack { border: 1px dashed var(--rule-2); border-radius: 4px; padding: 0 10px; }
.ix-pack > summary { cursor: pointer; padding: 8px 0; font: 700 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ix-pack[open] { padding-bottom: 10px; }
.ix-split-list { display: flex; flex-direction: column; gap: 6px; }
.ix-split-prev { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* shop */
.ix-shop { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ix-shop-top { padding-bottom: 0; gap: 10px; background: radial-gradient(ellipse at 10% 0, rgba(220, 179, 92, .08), transparent 60%); }
.ix-tabs { padding: 0; margin: 0 -16px; padding-left: 16px; }
.ix-list { padding-top: 12px; }
.ix-shop .ix-item { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.ix-shop-foot { flex: none; padding-top: 0; }
.ix-deal { font: 700 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border-radius: 10px; border: 1px solid var(--rule-2); color: var(--dim); }
.ix-deal.good { color: #8fe79a; border-color: #3c7a46; background: rgba(91, 191, 91, .07); }
.ix-deal.bad { color: #ff9b97; border-color: #7a3c3c; background: rgba(191, 67, 64, .08); }

/* lock / trap */
.ix-lock-hero { display: flex; align-items: center; gap: 14px; }
.ix-lockico { position: relative; width: 40px; height: 44px; flex: none; }
.ix-lockico::before { content: ""; position: absolute; left: 9px; top: 0; width: 22px; height: 24px; border: 4px solid var(--accent-dim); border-bottom: 0; border-radius: 12px 12px 0 0; box-sizing: border-box; }
.ix-lockico::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 36px; height: 26px; border-radius: 5px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 85%, #fff), color-mix(in srgb, var(--accent) 60%, #000)); box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent); }
.ix-lockico i { position: absolute; z-index: 1; left: 17px; bottom: 7px; width: 6px; height: 11px; border-radius: 3px 3px 1px 1px; background: #241a08; }
.ix-warn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid #7a3c3c; background: radial-gradient(circle, rgba(191, 67, 64, .25), #160a0b 75%); box-shadow: 0 0 22px rgba(191, 67, 64, .25); font: 700 18px var(--serif); color: #ff9b97; }
.ix-warn::first-line { color: inherit; }
.ix-trap .ix-warn { line-height: 1; }
.ix-trap.safe .ix-warn { border-color: #3c7a46; color: #8fe79a; background: radial-gradient(circle, rgba(91, 191, 91, .2), #0a140b 75%); box-shadow: 0 0 22px rgba(91, 191, 91, .2); }
.ix-opts { display: flex; flex-direction: column; gap: 6px; }
.ix-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; text-align: left; overflow: hidden; background: linear-gradient(145deg, var(--plate-a), var(--plate-b)); }
.ix-opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(.3); transition: transform .22s var(--ease); }
.ix-opt:hover:not(:disabled) { transform: translateX(3px); }
.ix-opt:hover::before { transform: scaleY(1); }
.ix-opt b { font: 400 15px var(--serif); letter-spacing: .03em; color: #eee7d9; }
.ix-opt small { font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ix-opt.warn::before { background: var(--blood); }

/* breakables */
.ix-hp { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; background: rgba(5, 8, 13, .6); font: 10px var(--mono); }
.ix-hp::before { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 100%); background: linear-gradient(90deg, rgba(191, 67, 64, .55), rgba(224, 120, 80, .45)); transition: width .4s var(--ease); }
.ix-hp > * { position: relative; }
.ix-hp span { letter-spacing: .2em; color: var(--ink-2); }
.ix-hp b { color: #fff; }
.ix-break.broken .ix-disc { filter: grayscale(1) brightness(.6); }
.ix-codebox { display: flex; align-items: center; gap: 8px; }
.ix-dmg { width: 80px; }

/* puzzles */
.ix-puzzle.is-solved { box-shadow: inset 0 0 60px color-mix(in srgb, var(--accent) 7%, transparent); }
.ix-prompt { margin: 0; padding: 10px 14px; border-left: 2px solid var(--accent-dim); background: rgba(220, 179, 92, .04); font: italic 15px/1.6 var(--serif); color: #e4dcc8; white-space: pre-wrap; }
.ix-code { flex: 1; font: 16px var(--serif); letter-spacing: .08em; padding: 9px 12px; }
.ix-runes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ix-rune { min-width: 74px; padding: 14px 12px; font: 400 14px var(--serif); letter-spacing: .06em; color: #eee7d9; background: radial-gradient(circle at 50% 30%, rgba(220, 179, 92, .12), transparent 70%), linear-gradient(160deg, var(--plate-a), var(--plate-b)); border-color: var(--accent-dim); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.ix-rune:hover:not(:disabled) { transform: translateY(-3px); color: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .5), 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent); }
.ix-rune:active:not(:disabled) { transform: translateY(1px) scale(.96); }
.ix-runes.small { justify-content: flex-start; gap: 5px; }
.ix-runes.small .ix-rune { min-width: 0; padding: 6px 10px; font-size: 12px; }
.ix-presses { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 30px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(5, 8, 13, .45); }
.ix-press { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 11px; border: 1px solid var(--accent-dim); font: 12px var(--serif); color: var(--ink); animation: ixPop .2s var(--ease); }
.ix-press i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #1b1408; font: 700 8.5px var(--mono); font-style: normal; }
@keyframes ixPop { from { transform: scale(.6); opacity: 0; } }
.ix-seq, .ix-dialset { display: flex; flex-direction: column; gap: 12px; }
.ix-dials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ix-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ix-dial-btn { width: 64px; padding: 2px 0; font-size: 10px; color: var(--dim); }
.ix-dial-win { position: relative; width: 64px; height: 92px; overflow: hidden; border: 1px solid var(--accent-dim); border-radius: 6px; background: linear-gradient(180deg, #05070b, #141b29 30%, #1b2333 50%, #141b29 70%, #05070b); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .8), inset 0 -6px 14px rgba(0, 0, 0, .8), 0 6px 16px rgba(0, 0, 0, .45); cursor: ns-resize; }
.ix-dial-win::before, .ix-dial-win::after { content: ""; position: absolute; left: 4px; right: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-dim), transparent); z-index: 1; }
.ix-dial-win::before { top: 31px; } .ix-dial-win::after { bottom: 31px; }
.ix-dial-reel { display: flex; flex-direction: column; align-items: center; }
.ix-dial-reel span { height: 30px; display: grid; place-items: center; width: 100%; padding: 0 3px; font: 400 12px var(--serif); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-dial-reel .side { opacity: .35; font-size: 10px; color: var(--dim); }
.ix-dial-reel .cur { height: 32px; font-size: 14px; color: #f3e6c4; text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }
.ix-dial-reel.down { animation: ixReelDown .22s var(--ease); }
.ix-dial-reel.up { animation: ixReelUp .22s var(--ease); }
@keyframes ixReelDown { from { transform: translateY(30px); } }
@keyframes ixReelUp { from { transform: translateY(-30px); } }
.ix-solved { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 6px; animation: ixPop .35s var(--ease); }
.ix-solved b { font: 400 22px var(--serif); letter-spacing: .3em; text-transform: uppercase; color: #f3e6c4; text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.ix-seal { width: 56px; height: 56px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--accent); background: radial-gradient(circle, rgba(220, 179, 92, .25), #0a0e17 70%); box-shadow: inset 0 0 22px rgba(220, 179, 92, .2), 0 0 40px rgba(220, 179, 92, .3); margin-bottom: 6px; }
.ix-seal span { transform: rotate(-45deg); font: 22px var(--serif); color: var(--accent); }

/* unreadable writing */
.ix-glyphs { align-items: center; text-align: center; }
.ix-runes-text { padding: 16px 18px; border: 1px solid var(--rule-2); border-radius: 4px; background: radial-gradient(ellipse at 50% 40%, rgba(220, 179, 92, .07), transparent 70%), #0a0e16; font: 20px/1.7 var(--serif); letter-spacing: .18em; color: color-mix(in srgb, var(--accent) 70%, #6b6255); text-shadow: 0 0 8px rgba(220, 179, 92, .2); word-break: break-all; filter: blur(.3px); }

.ix-shake { animation: ixShake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes ixShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

/* chat cards */
.ix-chat { position: relative; margin-top: 3px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; background: linear-gradient(160deg, rgba(25, 32, 46, .92), rgba(8, 11, 18, .96)); font-size: 12px; color: var(--ink-2); }
.ix-chat::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ix-chat-ico { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent-dim); color: var(--accent); font: 700 13px var(--serif); background: rgba(220, 179, 92, .06); }
.ix-chat-ico.ok { color: #8fe79a; border-color: #3c7a46; background: rgba(91, 191, 91, .07); }
.ix-chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ix-chat-main b { font: 400 15px var(--serif); letter-spacing: .03em; color: #eee7d9; }
.ix-chat-main small { color: var(--dim); font-size: 11px; }
.ix-chat-btns { display: flex; gap: 4px; flex: none; }
.ix-done { font: 700 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ---------- GM editor ---------- */
.ix-ed { padding: 6px 14px 14px; display: flex; flex-direction: column; }
.ix-sec { border-bottom: 1px solid var(--rule); }
.ix-sec:last-child { border-bottom: 0; }
.ix-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0 10px; font: 700 9px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); user-select: none; }
.ix-sec > summary::-webkit-details-marker { display: none; }
.ix-sec > summary::before { content: "›"; display: inline-block; width: 10px; font: 400 14px var(--serif); color: var(--dim); transition: transform .15s; letter-spacing: 0; }
.ix-sec[open] > summary::before { transform: rotate(90deg); }
.ix-sec > summary:hover { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.ix-sec-extra { margin-left: auto; font: 700 8px var(--mono); letter-spacing: .12em; color: var(--dim); padding: 2px 7px; border: 1px solid var(--rule-2); border-radius: 9px; }
.ix-sec-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 14px; }
.ix-sec-body > .ix-kick { margin-top: 4px; }
.ix-sec-body .grid2 { align-items: end; }
.ix-ed-foot { flex: none; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-top: 1px solid var(--rule); background: rgba(5, 8, 13, .5); }
.ix-pickrow { display: flex; gap: 4px; }
.ix-pickrow select { flex: 1; min-width: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.ix-sec-body label > div > select, .ix-sec-body label > div > input { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ix-cd { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ix-cd .ix-kick { margin-right: 4px; color: var(--dim); }
.ix-cd input { width: 64px; padding: 3px 5px; }

.ix-imgs { display: flex; flex-direction: column; gap: 6px; }
.ix-imgs > .ix-kick { color: var(--dim); }
.ix-imgrow { display: flex; gap: 10px; flex-wrap: wrap; }
.ix-imgslot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ix-imgslot.cur { color: var(--accent); }
.ix-imgbtn { width: 58px; height: 58px; padding: 0; border-radius: 6px; border-style: dashed; background: #0a0e16 center / cover no-repeat; font: 300 20px var(--sans); color: var(--dim); }
.ix-imgslot.cur .ix-imgbtn { border-color: var(--accent-dim); border-style: solid; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 15%, transparent); }
.ix-imgslot .x { position: absolute; top: -6px; right: -8px; padding: 0 4px; font-size: 13px; }

.ix-ilist { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.ix-ilist > button { align-self: flex-start; }
.ix-irow { display: grid; grid-template-columns: minmax(0, 1.4fr) 56px 56px minmax(0, 1fr) 24px; gap: 5px; align-items: center; }
.ix-irow.shop { grid-template-columns: minmax(0, 1.6fr) 70px 56px 22px 56px 24px; }
.ix-irow.head { font: 700 7.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2); padding-bottom: 2px; border-bottom: 1px solid var(--rule); }
.ix-irow input.num { width: 100%; padding: 5px 4px; }
.ix-irow input[type=checkbox] { justify-self: center; }
.ix-coin-edit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ix-coin-edit label { gap: 3px; }
.ix-coin-edit label > span { display: inline-flex; align-items: center; gap: 4px; color: color-mix(in srgb, var(--c) 75%, #fff); }
.ix-coin-edit label i { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, var(--c) 50%, color-mix(in srgb, var(--c) 55%, #000)); }
.ix-coin-edit input { text-align: center; }
.ix-checks { display: flex; flex-direction: column; gap: 4px; max-height: 150px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(5, 8, 13, .35); }
.ix-dial-edit { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.ix-dial-edit > button { align-self: flex-start; }
.ix-dial-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 110px 24px; gap: 6px; align-items: center; }
.ix-pend { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid var(--accent-dim); border-radius: 4px; background: rgba(220, 179, 92, .05); }

/* action editor */
.ix-acts { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ix-acts > button { align-self: flex-start; }
.ix-act { border: 1px solid var(--rule-2); border-left: 2px solid var(--accent-dim); border-radius: 4px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 8px; background: rgba(5, 8, 13, .35); }
.ix-act-head { display: flex; align-items: center; gap: 6px; }
.ix-act-head select { max-width: 240px; }
.ix-act-n { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(220, 179, 92, .12); border: 1px solid var(--accent-dim); font: 700 9px var(--mono); color: var(--accent); }
.ix-act textarea { min-height: 44px; }

/* palette */
.ix-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ix-tile { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 10px 10px 12px; text-align: left; overflow: hidden; background: linear-gradient(145deg, var(--plate-a), var(--plate-b)); color: var(--ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.ix-tile::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; transform: scaleX(.25); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: transform .25s var(--ease); }
.ix-tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 18px color-mix(in srgb, var(--accent) 9%, transparent); }
.ix-tile:hover::before { transform: scaleX(1); }
.ix-tile-glyph { width: 30px; height: 30px; flex: none; display: grid; place-items: center; transform: rotate(45deg) scale(.85); border: 1px solid var(--accent-dim); background: radial-gradient(circle, rgba(220, 179, 92, .12), #0a0e17 70%); margin: 0 3px; }
.ix-tile-glyph span { transform: rotate(-45deg); font: 18px var(--serif); color: var(--accent); line-height: 1; }
.ix-tile-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ix-tile-main b { font: 400 14px var(--serif); letter-spacing: .03em; color: #eee7d9; }
.ix-tile-main small { font-size: 10.5px; line-height: 1.35; color: var(--dim); font-weight: 400; }

@media (max-width: 620px) {
  .ix-palette { grid-template-columns: 1fr; }
  .ix-coin-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
