



.pkbLayer { position: fixed; inset: 0; z-index: 80; background: rgba(6, 9, 11, .93);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pkbIn .18s ease-out; }
@keyframes pkbIn { from { opacity: 0; } }
.pkb { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink, #e8ede9);
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom))
           max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 40%, #16201f 0%, #0b1013 55%, var(--bg, #06090b) 100%); }
.pkbLayer .pkb { background: transparent; }
.pkbTop { position: relative; flex: 0 0 auto; height: 40px; display: flex; align-items: center; justify-content: center; }
.pkbTtl { margin: 0; font: 700 17px/1 var(--title, 'DVCinzel', Georgia, serif); letter-spacing: .14em;
  text-transform: uppercase; color: var(--goldHi, #f1d79c); }
.pkbHome { position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; box-sizing: border-box;
  border: 1px solid var(--edge2, #3b4a4d); background: rgba(19, 26, 29, .85); display: grid; place-items: center;
  color: var(--dim, #93a29d); text-decoration: none; cursor: pointer; padding: 0; }
.pkbHome svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pkbHome:hover { border-color: var(--gold, #dcb46e); color: var(--parch, #e6d5a8); }
.pkbGrid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: calc((100% - 10px) / 2); gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.pkbTile { position: relative; overflow: hidden; border-radius: 8px; padding: 0; cursor: pointer; text-align: left;
  background: var(--pane, #131a1d); border: 2px solid #4a3d22; color: inherit; font: inherit; text-decoration: none;
  box-shadow: inset 0 0 0 1px #000, 0 5px 12px rgba(0, 0, 0, .65); min-height: 0; isolation: isolate; }
.pkbArt { position: absolute; inset: 0; background-size: cover; background-position: 50% 14%;
  filter: saturate(.85) brightness(.85); transition: filter .2s; }
.pkbTile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 9, 11, 0) 45%, rgba(6, 9, 11, .95) 88%); }
.pkbNm { position: absolute; left: 10px; right: 8px; bottom: 22px; z-index: 2; font: 700 15px/1.05 var(--title, 'DVCinzel', Georgia, serif);
  letter-spacing: .04em; color: var(--parch, #e6d5a8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkbSub { position: absolute; left: 10px; right: 8px; bottom: 8px; z-index: 2; font: 500 10px/1.1 var(--ui, system-ui, sans-serif);
  color: var(--dim, #93a29d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkbTile:hover { border-color: var(--gold, #dcb46e); }
.pkbTile:hover .pkbArt { filter: saturate(.95) brightness(.95); }
.pkbTile.on { border-color: var(--act, #ffbf47); box-shadow: 0 0 0 1px var(--act, #ffbf47), 0 0 18px rgba(255, 191, 71, .42); }
.pkbTile.on .pkbArt { filter: none; }
.pkbTile.on .pkbNm { color: var(--goldHi, #f1d79c); right: 44px; }
 
.pkbGo { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #ffd27a, #d9922a); display: grid; place-items: center;
  box-shadow: 0 0 10px rgba(255, 191, 71, .42); }
.pkbGo svg { width: 12px; height: 12px; fill: #1b1204; }
.pkbOk svg { width: 16px; height: 16px; fill: none; stroke: #1b1204; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
 
.pkbMine { position: absolute; top: 6px; right: 6px; width: 16px; height: 20px; z-index: 3; background: var(--gold, #dcb46e);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
 
.pkbAdd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-style: dashed;
  border-color: var(--edge2, #3b4a4d); background: linear-gradient(180deg, var(--pane2, #1a2327), var(--pane, #131a1d)); }
.pkbAdd::after { display: none; }
.pkbAdd .pkbNm { position: static; color: var(--gold, #dcb46e); text-align: center; }
.pkbDeckIco { width: 40px; height: 40px; fill: none; stroke: var(--gold, #dcb46e); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-height: 360px) { .pkbNm { font-size: 13px; bottom: 19px; } .pkbSub { font-size: 9.5px; bottom: 6px; } .pkbGo { width: 26px; height: 26px; } }
@media (min-width: 1100px) and (min-height: 600px) {
  .pkbTop { height: 56px; } .pkbTtl { font-size: 24px; } .pkbHome { width: 44px; height: 44px; top: 6px; }
  .pkbGrid { gap: 14px; grid-auto-rows: calc((100% - 14px) / 2); max-width: 1200px; margin: 0 auto; width: 100%; }
  .pkbNm { font-size: 20px; bottom: 28px; left: 14px; } .pkbSub { font-size: 12px; bottom: 11px; left: 14px; }
  .pkbGo { width: 38px; height: 38px; } .pkbGo svg { width: 15px; height: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pkbLayer { animation: none; } }
