/* Match the eight interactive columns to the illustrated squares, not the
   decorative columns. The prior 80% lane was too wide and placed tile 8 on
   the right column. Keep its 14.2% left edge and reduce the lane to 70%; this
   also gives eight equally spaced, correctly centered tiles. */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel{
 position:relative!important;isolation:isolate;box-sizing:border-box!important;
 /* 20% wider and 10% taller than the installed eight-slot rack. */
 width:120%!important;max-width:none!important;aspect-ratio:36/11!important;
 left:50%!important;transform:translateX(-50%)!important;
 min-height:0!important;height:auto!important;
 margin:4px auto 0!important;padding:0!important;
 --wd-rack-art-lift:12px;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;
 display:block!important;overflow:hidden!important;
}
/* Preserve the artwork-only layer and existing rack positioning. */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel::before{
 content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
 background:url('/Golden%20Blue%20Eight-Slot%20Game%20Rack.png') center/100% 100% no-repeat;
 transform:translateY(calc(-1 * var(--wd-rack-art-lift)));
 clip-path:none;
}
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel > h3,
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel .hint{display:none!important}
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack{
 position:absolute!important;z-index:2!important;
 left:14.2%!important;top:38.9%!important;width:70%!important;height:24.5%!important;
 display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;
 gap:0!important;align-items:center!important;justify-items:center!important;
 margin:0!important;padding:0!important;min-height:0!important;
 transform:translateY(calc(-1 * var(--wd-rack-art-lift)))!important;box-sizing:border-box!important;
}
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile{
 box-sizing:border-box!important;display:flex!important;
 align-items:center!important;justify-content:center!important;
 width:90%!important;height:auto!important;aspect-ratio:1/1!important;
 min-width:0!important;max-width:100%!important;max-height:100%!important;
 margin:0!important;flex:none!important;
 font-size:clamp(12px,2.2vw,30px)!important;
 line-height:1!important;
}
@media(max-width:699px){
 body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile{
  font-size:clamp(10px,4.5vw,24px)!important;
 }
}

/* Fine rack alignment: offset only display positions 5–8 by 4px right.
   Slot identity, artwork, Shuffle behavior and other tiles are unchanged. */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="4"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="5"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="6"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="7"]{
 position:relative!important;
 left:4px!important;
}

/* Additional 2% of rack-panel width to display slots 7 and 8 only.
   Relative-position percentages use one grid cell (70% / 8 of panel) as their basis. */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="6"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="7"]{
 left:4px!important;
}

/* Move display positions 1–7 left by 1% of panel width. Offset slot 8
   back to its existing screen location (1% panel = 11.428571% of a cell). */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="7"]{
 left:calc(4px + 11.428571429%)!important;
}

/* Fine adjustment: rack positions 2–7 move right by 0.5% of the full
   rack panel. One cell spans 70%/8 = 8.75% of the panel, so an extra
   5.714285714% relative-position offset on each tile equals 0.5% panel. */
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="1"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="2"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="3"]{
 position:relative!important;
 left:5.714285714%!important;
}
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="4"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="5"],
body:not(.wd-gate):has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index="6"]{
 left:calc(4px + 5.714285714%)!important;
}
