/* VINO QUEST Ver.0.6.5.1: styling loaded after game.css to force deployment */
/* Ver.0.6.5.0 · MY CANTINA refined layout */
.vq-item-visual{display:flex;align-items:center;justify-content:center;min-height:72px}
.vq-item-visual img{width:72px;height:72px;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #3a2920)}
.vq-item-visual span{font-size:44px;line-height:1}
.vq-cellar-stage{position:relative;overflow:hidden;width:100%;aspect-ratio:16/9;min-height:320px;border-radius:18px;border:9px solid #533a3b;background:linear-gradient(180deg,#291f24 0,#60454a 50%,#7b5a44 100%);box-shadow:inset 0 0 30px #0007,0 6px 0 #2d252e;isolation:isolate;margin-bottom:18px}
.vq-cellar-stage.is-expanded{border-color:#b48b58;background:linear-gradient(180deg,#261d24 0,#6a4d52 50%,#88654d 100%)}
.vq-cellar-wall{position:absolute;inset:0 0 34%;background:linear-gradient(180deg,#35242e 0,#6a4a52 100%);z-index:0}
.vq-cellar-floor{position:absolute;inset:68% 0 0;background:linear-gradient(180deg,#8d684e 0,#775642 100%);z-index:0}
.vq-cellar-floor::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,#6f4d39 0 42px,#926b4e 42px 44px)}
.vq-cellar-arch{position:absolute;top:10%;bottom:30%;width:26%;border:6px solid rgba(39,24,27,.55);border-bottom:none;border-radius:140px 140px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0));z-index:1;opacity:.55}
.vq-cellar-arch.a1{left:7%}.vq-cellar-arch.a2{right:7%}
.vq-cellar-zone{position:absolute;display:flex;align-items:flex-end;justify-content:center;z-index:2}
.vq-slot-card{display:flex;flex-direction:column;align-items:center;gap:4px}
.vq-slot-card img{image-rendering:pixelated;filter:drop-shadow(0 4px 0 #2e2122)}
.vq-slot-card span{font-size:10px;line-height:1;color:#f2dec0;background:#3d2c33cc;border:1px solid #c4a476;padding:2px 6px;border-radius:999px;white-space:nowrap}
.vq-slot-card.tiny img{width:40px;height:64px}.vq-slot-card.small img{width:64px;height:80px}.vq-slot-card.medium img{width:112px;height:88px}.vq-slot-card.large img{width:108px;height:126px}
.vq-empty-slot{display:flex;align-items:center;justify-content:center;min-width:84px;min-height:54px;border:2px dashed #d8bb8a66;background:#ffffff10;color:#ecd7b7aa;border-radius:12px;font-size:11px;text-align:center;padding:8px 10px}
.vq-empty-slot.tall{min-height:120px;min-width:100px}.vq-empty-slot.wide{min-width:150px}.vq-empty-slot.tiny{min-width:48px;min-height:48px}
.z-lamp{left:8%;top:15%;width:14%;height:20%}.z-chandelier{left:42%;top:3%;width:16%;height:18%}.z-painting{right:6%;top:17%;width:18%;height:18%}
.z-rack-left{left:6%;top:28%;width:22%;height:36%}.z-rack-right{right:6%;top:28%;width:22%;height:36%}
.z-cards{left:31%;top:25%;width:38%;height:16%}.z-souvenirs{left:28%;top:47%;width:44%;height:12%}
.z-table{left:35%;top:57%;width:30%;height:22%}.z-barrel{left:18%;top:61%;width:15%;height:19%}.z-flower{right:18%;top:61%;width:15%;height:19%}.z-glass{right:33%;top:64%;width:10%;height:14%}
.vq-gallery-strip,.vq-souvenir-strip{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:8px 10px;border-radius:12px;background:#3b2c30b8;border:1px solid #b68a5a;box-shadow:inset 0 0 12px #0005}
.vq-gallery-strip.is-empty,.vq-souvenir-strip.is-empty{color:#efdbc0aa;font-size:11px}
.vq-wall-card,.vq-souvenir-badge{position:relative;display:inline-flex;align-items:center;justify-content:center}
.vq-wall-card img,.vq-souvenir-badge img{width:42px;height:auto;image-rendering:pixelated}
.vq-wall-card small{position:absolute;bottom:-18px;max-width:64px;font-size:8px;line-height:1.15;color:#f4e6d0;text-align:center;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.vq-souvenir-badge em{position:absolute;font-style:normal;font-size:18px;filter:drop-shadow(0 2px 0 #1f1818)}
.vq-cantina-showcase{background:#ead9bb;border:1px solid #c6ac87;border-radius:11px;padding:12px;margin:8px 0 27px}
@media(max-width:620px){
 .vq-item-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .vq-item-card{padding:9px;min-height:228px}
 .vq-item-card h3{font-size:13px}.vq-item-card p{font-size:11px}.vq-item-buy .btn{font-size:11px;padding:7px;min-height:42px}
 .vq-cellar-stage{aspect-ratio:4/4.2;min-height:380px}
 .vq-cellar-arch{width:34%;top:12%;bottom:38%}
 .z-lamp{left:4%;top:14%;width:18%}.z-chandelier{top:2%;left:38%;width:24%}.z-painting{right:3%;top:16%;width:24%}
 .z-rack-left{left:2%;top:30%;width:26%;height:30%}.z-rack-right{right:2%;top:30%;width:26%;height:30%}
 .z-cards{left:28%;top:26%;width:44%}.z-souvenirs{left:20%;top:50%;width:60%}
 .z-table{left:27%;top:63%;width:46%}.z-barrel{left:6%;top:67%;width:22%}.z-flower{right:6%;top:67%;width:22%}.z-glass{right:34%;top:73%;width:14%}
 .vq-slot-card.large img{width:82px;height:96px}.vq-slot-card.medium img{width:92px;height:72px}.vq-slot-card.small img{width:52px;height:68px}.vq-slot-card.tiny img{width:32px;height:52px}
 .vq-slot-card span{font-size:9px;max-width:92px;overflow:hidden;text-overflow:ellipsis}
 .vq-gallery-strip,.vq-souvenir-strip{gap:4px;padding:8px 6px}
 .vq-wall-card img,.vq-souvenir-badge img{width:34px}
 .vq-wall-card small{font-size:7px;max-width:48px;bottom:-16px}
}

/* v0.6.5.1 collision-free layout: fixed spatial grid rather than overlapping percentages */
.vq-cellar-stage{
  display:grid;
  grid-template-columns:22% 28% 28% 22%;
  grid-template-rows:18% 34% 20% 28%;
  place-items:stretch;
  aspect-ratio:16/9;
}
.vq-cellar-zone{
  position:relative;
  inset:auto;
  left:auto;right:auto;top:auto;bottom:auto;
  width:auto;height:auto;
  min-width:0;min-height:0;
  padding:4px;
  align-items:center;
  z-index:3;
  overflow:hidden;
}
.z-lamp{grid-column:1;grid-row:1}
.z-chandelier{grid-column:2 / 4;grid-row:1}
.z-painting{grid-column:4;grid-row:1}
.z-rack-left{grid-column:1;grid-row:2}
.z-cards{grid-column:2 / 4;grid-row:2}
.z-rack-right{grid-column:4;grid-row:2}
.z-barrel{grid-column:1;grid-row:3}
.z-souvenirs{grid-column:2 / 4;grid-row:3}
.z-flower{grid-column:4;grid-row:3}
.z-glass{grid-column:1;grid-row:4}
.z-table{grid-column:2 / 4;grid-row:4}
.vq-cellar-zone::before{content:"";position:absolute;inset:3px;border-radius:12px;background:rgba(28,20,25,.06);border:1px solid rgba(224,193,139,.08);pointer-events:none}
.vq-slot-card{position:relative;max-width:100%;max-height:100%;justify-content:center}
.vq-slot-card img{display:block;object-fit:contain;max-width:100%;max-height:100%;}
.vq-slot-card span{display:none}
.vq-gallery-strip,.vq-souvenir-strip{position:relative;box-sizing:border-box;max-width:100%;max-height:100%;padding:6px;gap:clamp(2px,.5vw,7px);overflow:hidden}
.vq-wall-card img,.vq-souvenir-badge img{width:clamp(20px,3vw,42px)}
.vq-wall-card small{display:none}
.vq-souvenir-badge em{font-size:clamp(10px,1.5vw,18px)}
.vq-cellar-zone .vq-empty-slot{opacity:.26;max-width:90%;min-width:0;min-height:0;border-radius:8px;line-height:1.25}
@media(max-width:620px){
 .vq-cellar-stage{aspect-ratio:auto;min-height:510px;height:510px;grid-template-columns:23% 27% 27% 23%;grid-template-rows:17% 35% 20% 28%}
 .vq-cellar-zone{padding:2px}
 .vq-slot-card.large img{width:68px;height:100px}
 .vq-slot-card.medium img{width:92px;height:76px}
 .vq-slot-card.small img{width:52px;height:68px}
 .vq-slot-card.tiny img{width:36px;height:54px}
 .vq-gallery-strip,.vq-souvenir-strip{padding:3px;gap:2px;min-height:44px}
 .vq-wall-card img,.vq-souvenir-badge img{width:clamp(20px,6vw,28px)}
 .vq-souvenir-badge em{font-size:12px}
 .vq-cellar-zone .vq-empty-slot{font-size:9px;padding:4px}
}

/* VINO QUEST Ver.0.6.5.2 — editable furniture slots; preserve grid collision avoidance */
.vq-layout-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0;padding:13px 16px;background:#f5e7cc;border:1px solid #c9aa7b;border-radius:12px;color:#513a32}
.vq-layout-toolbar strong{font-size:16px}.vq-layout-toolbar p{font-size:12px;line-height:1.5;margin:4px 0 0;color:#826b60}
.vq-layout-editor{background:linear-gradient(140deg,#fff5df,#ead9bb);border:1px solid #b99868;padding:14px 16px;border-radius:14px;margin:0 0 13px}
.vq-layout-selection{font-size:13px;line-height:1.6;margin:0 0 10px;color:#5c4338}
.vq-layout-chips{display:grid;grid-template-columns:repeat(auto-fit,minmax(144px,1fr));gap:8px;margin:12px 0}
.vq-layout-chip{display:flex;align-items:center;gap:8px;min-height:66px;text-align:left;cursor:pointer;border-radius:10px;border:2px solid #c9ab7e;background:#fff9ed;color:#5a4132;padding:7px 9px;font:inherit}
.vq-layout-chip>span{width:38px;min-width:38px;height:42px;display:grid;place-items:center}
.vq-layout-chip img{width:34px;height:38px;object-fit:contain;image-rendering:pixelated}
.vq-layout-chip b{font-size:12px;line-height:1.3}.vq-layout-chip small{display:block;color:#897364;font-size:10px;line-height:1.4}
.vq-layout-chip.is-selected{border-color:#774253;background:#ecd6c0;box-shadow:0 0 0 3px #8a536527}
.vq-layout-chip:focus-visible,.vq-layout-slot:focus-visible{outline:3px solid #e5b25e;outline-offset:2px}
.vq-layout-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.vq-layout-editor .vq-hint{margin:10px 0 0;font-size:11px;color:#866d63}
.vq-cellar-stage.is-editing{outline:3px solid #d0a66c;outline-offset:2px}
.vq-cellar-stage .vq-layout-slot{cursor:pointer;appearance:none;-webkit-appearance:none;background:transparent;border:1px dashed #d7b67a66;border-radius:9px;font:inherit;color:#fff;transition:background .16s ease,border-color .16s ease;touch-action:manipulation}
.vq-cellar-stage .vq-layout-slot:hover{background:#fbd99119}
.vq-cellar-stage .vq-layout-slot.is-target{border:2px dashed #f7ce83;background:#edd1a129;box-shadow:inset 0 0 0 2px #4d382399}
.vq-cellar-stage .vq-layout-slot.is-incompatible{opacity:.6;cursor:not-allowed}
.vq-layout-slot-name{position:absolute;left:2px;right:2px;bottom:2px;z-index:6;text-align:center;color:#fff0cf;background:#382833cc;border-radius:5px;font-size:clamp(8px,.85vw,11px);line-height:1.3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:2px 1px}
.vq-cellar-stage.is-editing .vq-layout-slot .vq-slot-card{padding-bottom:7px}
@media(max-width:620px){
 .vq-layout-toolbar{align-items:stretch;padding:11px 12px}
 .vq-layout-toolbar>.btn{width:100%}
 .vq-layout-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .vq-layout-chip{min-height:68px;padding:5px;gap:5px}
 .vq-layout-chip>span{width:28px;min-width:28px}
 .vq-layout-chip img{width:26px}
 .vq-layout-chip b{font-size:11px}
 .vq-layout-chip small{font-size:9px}
 .vq-layout-slot-name{font-size:8px;padding:2px 0}
 .vq-cellar-stage.is-editing .vq-layout-slot{padding-bottom:11px}
}

.vq-layout-chip-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
/* Prevent the original icon selector from forcing furniture names into a 28px column. */
.vq-layout-chip > .vq-layout-chip-copy{
  display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;
  width:auto;min-width:0;height:auto;line-height:1.35;
}
.vq-layout-chip-copy b{display:block;max-width:100%;overflow-wrap:anywhere}
.vq-layout-chip-copy small{display:block;max-width:100%}
