.pg-about, .pg-about * { box-sizing: border-box; }
.pg-about { padding:0; border:0; border-radius:0; width:min(1400px,96vw); height:min(790px,94dvh); max-width:none; max-height:none; margin:auto; background:#fff; color:#111; font: 15px/1.35 Arial,Helvetica,sans-serif; overflow:hidden; }
.pg-about:not([open]) { display:none; }
.pg-about::backdrop { background:rgba(0,0,0,.65); }
.pg-about-layout { display:grid; grid-template-columns:35.5% minmax(0,1fr); height:100%; min-height:0; }
.pg-about-art { background:#090e1b url('assets/artwork.png') center/cover no-repeat; }
.pg-about-panel { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; min-width:0; background:#fff; padding: 18px 30px 20px; }
.pg-about-header { display:flex; align-items:center; gap:20px; min-width:0; padding-bottom:30px; }
.pg-about-logo { flex:0 0 clamp(80px,11vw,150px); aspect-ratio:1; background:url('assets/logo-pg.webp') center/contain no-repeat, radial-gradient(ellipse closest-side, #000 99%, transparent 100%) center/72% 72% no-repeat; }
.pg-about-brand { border-left:1px solid #222; padding-left:20px; min-width:0; }
.pg-about .pg-about-brand h1 { font-size:clamp(23px,3.35vw,52px); font-weight:400; line-height:1.04; letter-spacing:-.035em; margin:0; color:#111; }
.pg-about-brand h1 b { font-weight:600; }
.pg-about-subtitle { font-size:clamp(13px,1.7vw,24px); margin-top:8px; color:#444; }
.pg-about-version { font-size:clamp(13px,1.35vw,19px); margin-top:8px; }
.pg-about-scroll { min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; overscroll-behavior:contain; padding-right:12px; color:#000; background:#fff; user-select:text; }
.pg-about-scroll:focus-visible { outline:none; }

.pg-about-scroll {
  scrollbar-width: auto;
  scrollbar-color: #a3a3a3 transparent;
  padding-right: 8px;
}
.pg-about-scroll::-webkit-scrollbar {
  width: 13px !important;
  background: #fff !important;
}
.pg-about-scroll::-webkit-scrollbar-track,
.pg-about-scroll::-webkit-scrollbar-track-piece,
.pg-about-scroll::-webkit-scrollbar-corner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.pg-about-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(#bfbfbf,#9f9f9f) !important;
  border: 2px solid transparent !important;
  background-clip: content-box !important;
  border-radius: 999px !important;
  min-height: 28px !important;
  box-shadow: none !important;
}
.pg-about-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#b4b4b4,#8f8f8f) !important;
  background-clip: content-box !important;
}
.pg-about-scroll::-webkit-scrollbar-button:single-button {
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  border: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 8px 8px !important;
}
.pg-about-scroll::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 2 7 5H1z' fill='%23777777'/%3E%3C/svg%3E") !important;
}
.pg-about-scroll::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 3h6L4 6z' fill='%23777777'/%3E%3C/svg%3E") !important;
}
.pg-about-scroll::-webkit-scrollbar-button:single-button:vertical:decrement:hover,
.pg-about-scroll::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  background-color: rgba(0,0,0,.04) !important;
}

.pg-about-legal { overflow-wrap:anywhere; }
.pg-about .pg-about-legal h2 { font-size:17px; font-weight:700; margin:0 0 8px; color:#000; }
.pg-about .pg-about-legal h3 { font-size:17px; font-weight:700; margin:18px 0 3px; color:#000; }
.pg-about .pg-about-legal p { font-size:15px; line-height:1.42; margin:0 0 14px; color:#000; }
.pg-about a { color:inherit; text-decoration:none; }
.pg-about a:hover { text-decoration:underline; }
.pg-about-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:18px; background:#fff; }
.pg-about-copyright { font-size:13px; }
.pg-about-actions { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.pg-about #pgAboutClose { appearance:none; border:0; border-radius:999px; min-width:110px; min-height:32px; padding:6px 18px; font:600 14px/1.2 Arial,Helvetica,sans-serif; color:#fff; background:linear-gradient(90deg,#ff8500,#d31b85 38%,#7524c5 67%,#0748b6); box-shadow:none; cursor:pointer; transition: all .5s; position:relative; isolation:isolate; }
.pg-about #pgAboutClose:disabled { background:#bcbcbc; color:#fff; cursor:not-allowed; }
.pg-about #pgAboutClose::before { content:""; position:absolute; inset:0; border-radius:inherit; background:#000; opacity:0; z-index:-1; pointer-events:none; transition: all .5s; }
.pg-about #pgAboutClose:not(:disabled):hover { color:#fff; }
.pg-about #pgAboutClose:not(:disabled):hover::before { opacity:1; }
.pg-about #pgAboutClose:disabled::before { opacity:0; transition:none; }
.pg-about #pgAboutClose:focus-visible { outline:2px solid #175ce2; outline-offset:3px; }

/* Responsive layout: desktop reference 750 × 423. */
.pg-about { width:min(750px,calc(100vw - 24px)); height:min(423px,calc(100vh - 24px)); height:min(423px,calc(100dvh - 24px)); max-width:750px; border-radius:0; box-shadow:0 12px 38px #0005; }
.pg-about-layout { grid-template-columns:35.5% minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
.pg-about-panel { padding:10px 16px 12px; }
.pg-about-header { gap:10px; padding-bottom:16px; }
.pg-about-logo { flex:0 0 74px; }
.pg-about-brand { padding-left:10px; }
.pg-about .pg-about-brand h1 { font-size:26px; overflow-wrap:anywhere; }
.pg-about-subtitle { font-size:13px; margin-top:4px; }
.pg-about-version { font-size:11px; margin-top:4px; }
.pg-about-scroll { padding-right:6px; }
.pg-about .pg-about-legal h2 { font-size:13px; margin:0 0 5px; }
.pg-about .pg-about-legal h3 { font-size:13px; margin:10px 0 3px; }
.pg-about .pg-about-legal p { font-size:13px; line-height:1.42; margin:0 0 8px; }
.pg-about-footer { padding-top:8px; gap:8px; }
.pg-about-copyright { font-size:10px; overflow-wrap:anywhere; min-width:0; }
.pg-about-actions { flex:none; }
.pg-about #pgAboutClose { min-width:75px; min-height:30px; padding:5px 12px; font-size:12px; }
.pg-about a { transition:all .5s; }
@media (max-width:740px) {
 .pg-about-layout { grid-template-columns:29% minmax(0,1fr); }
 .pg-about-logo { flex-basis:60px; }
 .pg-about .pg-about-brand h1 { font-size:clamp(20px,3.5vw,26px); }
}
@media (max-width:580px) {
 .pg-about { width:calc(100vw - 20px); height:min(690px,calc(100vh - 20px)); height:min(690px,calc(100dvh - 20px)); }
 .pg-about-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(44px,11dvh,90px) minmax(0,1fr); }
 .pg-about-art { background-position:center 45%; }
 .pg-about-panel { padding:12px 14px; }
 .pg-about-header { padding-bottom:16px; gap:9px; }
 .pg-about-logo { flex-basis:56px; }
 .pg-about-brand { padding-left:9px; }
 .pg-about .pg-about-brand h1 { font-size:clamp(18px,5vw,25px); }
 .pg-about-subtitle { font-size:12px; }
 .pg-about-version { font-size:12px; }
 .pg-about .pg-about-legal p { font-size:14px; }
 .pg-about .pg-about-legal h2,.pg-about .pg-about-legal h3 { font-size:14px; }
 .pg-about #pgAboutClose { min-height:44px; min-width:86px; font-size:13px; }
}
@media (max-width:350px) {
 .pg-about-panel { padding:9px 10px; }
 .pg-about-logo { flex-basis:45px; }
 .pg-about .pg-about-brand h1 { font-size:18px; }
 .pg-about-subtitle { font-size:11px; }
 .pg-about-footer { gap:5px; }
}
/* Landscape / short viewports: preserve room for the legal scroll. */
@media (max-height:430px) {
 .pg-about { height:calc(100vh - 12px); height:calc(100dvh - 12px); }
 .pg-about-layout { grid-template-columns:24% minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
 .pg-about-panel { padding:7px 10px; }
 .pg-about-header { gap:8px; padding-bottom:7px; }
 .pg-about-logo { flex-basis:44px; }
 .pg-about .pg-about-brand h1 { font-size:20px; }
 .pg-about-subtitle,.pg-about-version { font-size:11px; margin-top:2px; }
 .pg-about-footer { padding-top:5px; }
 .pg-about #pgAboutClose { min-height:32px; }
}
@media (max-height:430px) and (max-width:480px) {
 .pg-about-layout { grid-template-columns:minmax(0,1fr); }
 .pg-about-art { display:none; }
}
@media (max-height:250px) {
 .pg-about-header { padding-bottom:4px; }
 .pg-about-logo { flex-basis:32px; }
 .pg-about-subtitle { display:none; }
 .pg-about .pg-about-brand h1 { font-size:17px; }
 .pg-about-footer { padding-top:3px; }
}
@media (prefers-reduced-motion:reduce) { .pg-about *, .pg-about *::before { transition:none!important; } }
