/* GrokGames AdvKit panels (shared/advkit.js). Green RTWL desk look with a futuristic console touch. */
.kit { margin-top: 12px; border-radius: 16px; border: 1px solid rgba(25,193,85,.45); background: linear-gradient(180deg, #f7fff9, #effbf2); box-shadow: 0 0 0 1px rgba(25,193,85,.08), 0 8px 24px rgba(14,122,54,.08); overflow: hidden; }
.kit-tabs { display: flex; gap: 4px; padding: 6px; background: #0b2418; border-bottom: 1px solid #0e7a36; overflow-x: auto; }
.kit-tab { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 7px 14px; min-height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #a6d8bb; position: relative; flex: 1 0 auto; }
.kit-tab.on { background: rgba(61,255,138,.14); color: #e6fff0; border-color: rgba(61,255,138,.4); box-shadow: 0 0 12px rgba(61,255,138,.18) inset; }
.kit-tab:focus-visible { outline: 2px solid #3dff8a; }
.kit-tab.dot::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ffcf6b; box-shadow: 0 0 6px #ffcf6b; }
.kit-body { padding: 12px; min-height: 120px; }
.kit-muted { color: rgba(20,73,54,.65); margin: .3em 0; }
.kit-muted.small, .kit .small { font-size: .82rem; }
.kit-lab { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); font-weight: 600; margin-right: 4px; }
.kit-chip { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 5px 11px; min-height: 34px; border-radius: 999px; border: 1px solid var(--brand); background: #fff; color: var(--ink); }
.kit-chip.on { background: var(--brand); color: #fff; }
.kit-chip.placed { border-style: dashed; }
.kit-chip.locked { opacity: .55; border-style: dashed; }
.kit-chip:focus-visible, .kit-cell:focus-visible, .kit-room:focus-visible, .kit-block:focus-visible, .kit-choice:focus-visible, .kit-key:focus-visible, .kit-reg:focus-visible { outline: 3px solid rgba(25,193,85,.6); outline-offset: 1px; }
.kit-link { font: inherit; background: none; border: 0; color: var(--brand-deep); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.kit-exits, .kit-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
/* map */
.kit-regions { display: grid; gap: 4px; margin-bottom: 8px; }
.kit-reg { font: inherit; font-size: .72rem; font-weight: 600; line-height: 1.15; cursor: pointer; padding: 5px 4px; min-height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); overflow-wrap: anywhere; }
.kit-reg.unknown { background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 6px, #ececec 6px, #ececec 12px); color: #999; cursor: default; }
.kit-reg.here { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(25,193,85,.35); }
.kit-reg.sel { background: rgba(25,193,85,.16); }
.kit-map { overflow: auto; border-radius: 12px; background: #0b2418; padding: 6px; max-height: 360px; }
.kit-map:focus-visible { outline: 3px solid rgba(61,255,138,.6); }
.kit-map-inner { position: relative; margin: 0 auto; }
.kit-map-lines { position: absolute; inset: 0; }
.kit-map-lines line { stroke: #3dff8a; stroke-width: 3; stroke-opacity: .55; }
.kit-map-lines line.locked { stroke-dasharray: 5 5; stroke-opacity: .35; }
.kit-room { position: absolute; font: inherit; font-size: .74rem; font-weight: 600; line-height: 1.1; padding: 4px; border-radius: 10px; border: 1px solid rgba(61,255,138,.4); background: #123526; color: #d3f5de; cursor: default; overflow: hidden; }
.kit-room.near { cursor: pointer; background: #17533a; border-color: #3dff8a; }
.kit-room.near:hover { background: #1f6b4b; }
.kit-room.here { background: #19c155; color: #04150d; border-color: #7dffa8; box-shadow: 0 0 14px rgba(61,255,138,.7); }
.kit-room.stub { background: transparent; border-style: dashed; color: #7aa48c; font-size: 1rem; }
.kit-room.loop { border-color: #ffcf6b; }
.kit-me { position: absolute; top: 1px; right: 3px; font-size: .9rem; }
/* puzzles */
.kit-phead { display: flex; gap: 8px; align-items: center; }
.kit-phead h4 { font-family: Chango, Georgia, serif; font-weight: 400; margin: 0; font-size: 1.1rem; }
.kit-badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eef2f0; color: var(--ink); }
.kit-badge.ok { background: var(--brand); color: #fff; }
.kit-plabel { margin: 4px 0 8px; font-weight: 600; }
.kit-warn { margin: 4px 0 8px; color: #8a4b00; background: #fff4dc; border: 1px solid #f2c46d; border-radius: 10px; padding: 6px 10px; }
.kit-parea { margin: 6px 0; }
.kit-prow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.kit-prow .btn { padding: 8px 16px; }
.kit-cmdprev { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; background: #08150f; color: #7dffa8; padding: 4px 8px; border-radius: 8px; overflow-wrap: anywhere; max-width: 100%; }
.kit-legend { font-size: .84rem; margin: 6px 0; }
.kit-palette { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.kit-block { font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; padding: 7px 12px; min-height: 38px; border-radius: 10px; border: 0; color: #fff; background: #3b82f6; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.kit-block:disabled { opacity: .4; cursor: default; }
.t-start { background: #19c155; } .t-loop, .t-end { background: #a855f7; } .t-move { background: #f59e0b; } .t-draw { background: #3b82f6; }
.t-battery { background: #16a34a; } .t-fuse { background: #dc2626; } .t-switch { background: #2563eb; } .t-motor { background: #7c3aed; } .t-lamp { background: #ca8a04; }
.t-booster { background: #475569; } .t-tank { background: #0891b2; } .t-upper { background: #2563eb; } .t-cargo { background: #ca8a04; } .t-capsule { background: #e11d48; }
.kit-program { list-style: none; margin: 0; padding: 8px; min-height: 52px; border: 2px dashed rgba(25,193,85,.5); border-radius: 12px; background: #fff; display: grid; gap: 5px; counter-reset: step; }
.kit-step { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 9px; color: #fff; font-weight: 700; counter-increment: step; }
.kit-step::before { content: counter(step); font-size: .75rem; opacity: .8; min-width: 1.2em; }
.kit-step.drag { opacity: .6; outline: 2px dashed #144936; }
.kit-step.dropat { box-shadow: 0 -3px 0 #144936; }
.kit-grip { cursor: grab; padding: 4px 6px; font-size: 1.1rem; user-select: none; }
.kit-steplab { flex: 1 1 auto; }
.kit-mini { font: inherit; font-weight: 700; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255,255,255,.25); color: #fff; }
.kit-empty { color: rgba(20,73,54,.5); font-style: italic; padding: 8px; }
.kit-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-choice { font: inherit; font-weight: 700; cursor: pointer; min-width: 72px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--brand); background: #fff; color: var(--ink); }
.kit-choice.on { background: var(--brand); color: #fff; }
.kit-slider { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) 72px; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; font-size: .9rem; }
.kit-slider output { display: none; }
.kit-slider input[type=range] { width: 100%; height: 32px; accent-color: #19c155; }
.kit-num { margin-top: 0 !important; padding: 6px 8px !important; }
.kit-preview { margin-top: 6px; background: #eaf6ff; border-radius: 10px; }
.kit-prev-svg { display: block; width: 100%; max-height: 160px; }
.kit-grid { display: grid; gap: 4px; justify-content: start; align-items: center; }
.kit-gl { font-size: .75rem; font-weight: 700; text-align: center; color: var(--brand-deep); }
.kit-cell { font: inherit; font-weight: 700; aspect-ratio: 1; min-width: 30px; min-height: 30px; border-radius: 8px; border: 1px solid rgba(20,73,54,.25); background: #fffdf2; color: var(--ink); cursor: pointer; padding: 0; }
.kit-cell.start { box-shadow: inset 0 0 0 2px #19c155; }
.kit-cell.goal { box-shadow: inset 0 0 0 2px #e5484d; }
.kit-cell.on { background: #19c155; color: #fff; }
.kit-cell.rock { background: #8a8f98; color: #fff; cursor: not-allowed; }
.kit-cell.hid { background: #3b82f6; color: #fff; }
.kit-cell.ice { background: #9fd8ff; color: #144936; }
.kit-ring { display: block; width: min(100%, 320px); margin: 0 auto; touch-action: manipulation; }
.kit-slot circle { fill: #fff; stroke: #144936; stroke-width: 1.5; cursor: pointer; }
.kit-slot.on circle { fill: #19c155; }
.kit-slot.bad circle { fill: #ffb4a8; stroke: #e5484d; }
.kit-slot text { pointer-events: none; font-family: Gluten, sans-serif; fill: #144936; }
.kit-slot:focus { outline: none; } .kit-slot:focus circle { stroke: #3dff8a; stroke-width: 4; }
table.kit-tap { border-collapse: separate; border-spacing: 4px; font-size: .8rem; }
table.kit-tap th { color: var(--brand-deep); text-align: center; }
table.kit-tap .kit-cell { width: 48px; }
.kit-display { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .2em; background: #08150f; color: #7dffa8; border-radius: 10px; padding: 6px 12px; text-align: center; max-width: 240px; }
.kit-keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; margin-top: 8px; }
.kit-key { font: inherit; font-weight: 700; font-size: 1.1rem; height: 48px; border-radius: 12px; border: 1px solid var(--brand); background: #fff; cursor: pointer; }
.kit-key:active { background: rgba(25,193,85,.2); }
/* pictures */
.kit-pic { margin: 8px 0; }
.kit-pic-svg svg { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(20,73,54,.15); }
.kit-pic.small .kit-pic-svg svg { max-width: 300px; }
.kit-pic figcaption { font-weight: 700; margin-top: 4px; }
.kit-alt { font-size: .8rem; color: rgba(20,73,54,.7); margin: 2px 0 0; }
/* builds */
.kit-res { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 700; margin-bottom: 8px; }
.kit-builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.kit-build { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: #fff; }
.kit-build.built { border-color: var(--brand); background: rgba(25,193,85,.08); }
.kit-bhead { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.kit-bar { height: 8px; border-radius: 4px; background: #e5efe8; margin: 6px 0; overflow: hidden; }
.kit-bar i { display: block; height: 100%; background: linear-gradient(90deg, #19c155, #3dff8a); }
.kit-pieces { list-style: none; margin: 0 0 6px; padding: 0; font-size: .85rem; }
.kit-pieces li.have { color: var(--brand-deep); font-weight: 600; }
.kit-build .btn { padding: 6px 14px; margin-top: 4px; }
/* dead-end banner */
.kit-stall { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; border: 2px solid #ff8a7a; background: #fff1ee; }
.kit-stall p { margin: .3em 0; }
@media (max-width: 560px) { .kit-body { padding: 9px; } .kit-slider { grid-template-columns: 1fr 72px; } .kit-slider input[type=range] { grid-column: 1 / -1; grid-row: 2; } .kit-keypad { grid-template-columns: repeat(3, 1fr); } .kit-room { font-size: .66rem; } }
