/* The lower library is a browsing showcase, not a second console picker. */
#works { background: radial-gradient(ellipse at 50% 25%,#e8f3ff,transparent 65%),#fff8fb; }
#works .section-head::before { content: none; }
#works .pw-library { max-width: 1168px; padding: 0 24px; }
.pw-library-disclaimer { margin-top: 12px; color: #536078; font-size: 12px; }
.pw-library-machine { display: flex; flex-direction: column; gap: 24px; padding: 28px; border: 3px solid #2055b6; border-radius: 28px; background: #eaf3ff; box-shadow: 8px 8px 0 #f8c8d8; }
.pw-library-feature { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 30px; align-items: center; padding: 20px; background: #fff; border: 2px solid #b9d2f8; border-radius: 18px; }
.pw-library [hidden] { display: none; }
.pw-library-window { min-width: 0; border: 3px solid #183c76; border-radius: 12px; overflow: hidden; background: #183c76; box-shadow: 0 5px 0 #c9dcfa; }
.pw-library-window-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; color: #fff; font: 800 10px/1.4 var(--font-body); letter-spacing: .09em; }
.pw-library-window-bar span:first-child::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: #f8c8d8; box-shadow: 3px -3px #fff; }
#library-preview { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.pw-library-info { min-width: 0; padding: 6px 0; }
.pw-library-feature-label { color: #2055b6; font: 800 10px/1.5 var(--font-body); letter-spacing: .08em; margin-bottom: 14px; }
.pw-library-feature-label span { font-size: 16px; }
.pw-library-genre { display: inline-block; background: #ffe6f0; border: 1px solid #e8b7ce; color: #71374f; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
#library-title { margin: 10px 0 12px; color: #183c76; font: 900 clamp(23px,2.5vw,32px)/1.3 'Zen Maru Gothic',var(--font-body); overflow-wrap: anywhere; }
#library-description { color: #45516a; font-size: 14px; line-height: 1.9; min-height: 5.7em; }
.pw-library-play { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 16px; background: #2055b6; color: #fff; border: 2px solid #183c76; border-radius: 12px; box-shadow: 0 4px 0 #183c76; text-decoration: none; font-size: 14px; font-weight: 800; }
.pw-library-play span:first-child { font: 900 17px/1.3 'Arial Rounded MT Bold',Arial,sans-serif; letter-spacing: .06em; }
.pw-library-play-hint { margin-top: 12px; color: #536078; text-align: center; font-size: 11px; }
.pw-library-shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pw-library-shelf-label { color: #2055b6; font: 900 12px/1.4 var(--font-body); letter-spacing: .1em; }
.pw-library-shelf-head p { color: #183c76; font-size: 15px; font-weight: 800; margin-top: 3px; }
.pw-library-controls { display: flex; gap: 8px; }
.pw-library-controls button { width: 44px; height: 44px; border: 2px solid #2055b6; border-radius: 50%; background: #fff; color: #2055b6; box-shadow: 0 3px #b9d2f8; font-size: 20px; }
.pw-library-shelf { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; margin: 0; padding: 12px 4px 18px; list-style: none; border-bottom: 8px solid #b9d2f8; border-radius: 0 0 10px 10px; }
.pw-package { min-width: 0; padding: 14px; border: 2px solid #b9d2f8; border-radius: 12px; background: #fff; }
.pw-package-cover img,.pw-library-choice img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid #b9d2f8; margin: 10px 0; }
.pw-package-number { display: block; color: #2055b6; text-align: left; font: 900 15px/1.3 monospace; letter-spacing: .1em; }
.pw-package-genre { display: block; font-size: 11px; color: #536078; margin-bottom: 5px; }
.pw-package h3,.pw-library-choice strong { display: block; color: #183c76; font: 900 15px/1.45 'Zen Maru Gothic',var(--font-body); overflow-wrap: anywhere; }
.pw-package-description { font-size: 13px; color: #45516a; line-height: 1.8; margin: 12px 0; }
.pw-package-link { display: inline-block; font-size: 13px; color: #2055b6; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.pw-library-choice { display: none; }
.is-enhanced .pw-package { border: 0; padding: 0; background: none; }
.is-enhanced .pw-package-cover,.is-enhanced .pw-package-description,.is-enhanced .pw-package-link { display: none; }
.is-enhanced .pw-library-choice { display: flex; flex-direction: column; align-items: stretch; position: relative; width: 100%; height: 100%; padding: 12px; text-align: left; color: #183c76; background: #fff; border: 2px solid #2055b6; border-radius: 12px 12px 7px 7px; box-shadow: 0 4px 0 #b9d2f8; transition: transform .16s ease,box-shadow .16s ease; }
.pw-package-state { display: block; margin-top: auto; padding-top: 12px; font: 900 9px/1.4 var(--font-body); letter-spacing: .08em; visibility: hidden; color: #71374f; }
.pw-library-choice[aria-pressed="true"] { background: #fff3f8; transform: translateY(-7px); border-color: #183c76; box-shadow: 0 6px 0 #e59bbe,0 0 0 3px #f8c8d8; }
.pw-library-choice[aria-pressed="true"] .pw-package-state { visibility: visible; }
.pw-library-choice[aria-pressed="true"] .pw-package-state::before { content: '▶ '; }
.pw-library-help { font-size: 12px; color: #45516a; text-align: center; }
.pw-library .pw-additional { margin: 28px 0 0; padding: 16px 20px; border: 1px dashed #9bb9e8; border-radius: 12px; background: #fff; }
.pw-library :is(button,a,summary):focus-visible { outline: 3px solid #183c76; outline-offset: 5px; }
@media (hover:hover) { .pw-library-choice:hover { transform: translateY(-7px); } .pw-library-play:hover { background: #183c76; } }
@media (max-width:800px) {
  .pw-library-machine { padding: 20px; gap: 20px; }
  .pw-library-feature { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; padding: 16px; }
  .pw-library-shelf { gap: 10px; }
  .is-enhanced .pw-library-choice { padding: 9px; }
  .pw-library-choice strong { font-size: 13px; }
}
@media (max-width:600px) {
  #works .pw-library { padding: 0 20px; }
  .pw-library-machine { padding: 16px; border-radius: 22px; box-shadow: 5px 5px 0 #f8c8d8; }
  .pw-library-feature { order: 3; grid-template-columns: minmax(0,1fr); padding: 12px; gap: 18px; }
  #library-description { min-height: 0; }
  .pw-library-shelf-head p { font-size: 13px; }
  .pw-library-shelf-label { font-size: 10px; }
  .pw-library-controls { gap: 6px; }
  .pw-library-controls button { width: 44px; height: 44px; }
  .pw-library-shelf { grid-template-columns: minmax(0,1fr); }
  .is-enhanced .pw-library-shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: #2055b6 #d0e2fc; scrollbar-width: thin; padding: 12px 5px 18px; }
  .is-enhanced .pw-package { flex: 0 0 66%; scroll-snap-align: center; }
  .is-enhanced .pw-library-choice { padding: 12px; min-height: 215px; }
  .pw-library-choice strong { font-size: 15px; }
  .pw-library-help { order: 2; text-align: left; }
  .pw-library-shelf-head { gap: 6px; }
  .pw-library-feature-label { font-size: 9px; }
  .pw-library-play { padding: 12px 8px; gap: 8px; }
}
@media (prefers-reduced-motion:reduce) { .pw-library-choice { transition: none !important; } }
