/* Midnight Achievement Gallery — public fictional demo only. */
:root{--ink:#f4eaf5;--cream:#170f1e;--plum:#dec0ef;--plum-dark:#1e1326;--muted:#c2afcb;--border:#63466e;--gold:#edc577;--sidebar-width:248px;color-scheme:dark}
body{background:#170f1e;color:var(--ink);font-size:15px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f2cb7b;outline-offset:4px}
.demo-return{margin-left:var(--sidebar-width);background:#291a33;border-bottom:1px solid #62406d;text-align:left;padding:15px 32px;font-size:14px;min-height:52px}
.demo-return a{color:#f4cc7b}.sidebar{background:#21152b;padding:32px 20px 0}.brand{font-size:18px;letter-spacing:3px}.brand small{color:#d9c0e6;font-size:9px}.brand-symbol{background:#302039;color:#f2ce82;border-color:#6c4e75}.sidebar-rule{margin:30px 10px}.nav-caption{font-size:10px;color:#d7bfdf;letter-spacing:2px}.nav-item{font-size:14px;gap:12px;padding:14px 12px;border-radius:8px;color:#dfcde7}.nav-item.active{background:#dec0ef;color:#2c1739;box-shadow:none}.nav-item:hover:not(.active){background:#3c2849}.nav-count{background:#3e2a49;color:#e6d4ed;font-size:11px}.active .nav-count{background:#cfb1df}.sidebar-note{background:#2b1d35;border:1px solid #543a61}.sidebar-note p{color:#e7d7ed}.sidebar-note strong{color:#efcc80}.sidebar-profile{border-color:#53395f}.sidebar-profile small{color:#d4bddf}.sidebar-profile .avatar{background:#dec0ef}.sidebar-profile .profile-dot{display:none}.topbar{height:0;min-height:0;padding:0;border:0;overflow:hidden;background:#21152b}.main-content{max-width:1600px;padding:0 32px}.page-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.preview-banner{display:none}.welcome-panel{min-height:450px;margin:0 -32px;background:#170f1e url('assets/achievement-hero.webp') right center/auto 100% no-repeat;border:0;border-radius:0;align-items:flex-start;isolation:isolate}.paper-scene{display:none!important}.welcome-copy{padding:52px 36px 30px;max-width:59%}.welcome-copy .mini-label{color:#edc577;font-size:11px;letter-spacing:3px;font-weight:600}.welcome-copy .mini-label svg{display:none}.welcome-copy h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(50px,5.2vw,78px);line-height:1.08;font-weight:400;letter-spacing:-2.4px;margin:30px 0 24px;color:#faf0f2}.welcome-copy h2 em{color:#f0c67b}.welcome-copy p{font-size:18px;line-height:1.6;max-width:450px;color:#e9dce9}.welcome-link{color:#f0cc84;font-size:13px;margin-top:24px}.gallery-examples-link{display:block;color:#d6b8e7;font-size:12px;text-decoration:underline;text-underline-offset:4px;margin-top:13px}.stats-grid{margin:-8px 0 0;position:relative;padding:20px 0 28px;gap:0;border-bottom:1px solid #674475}.stat-card{background:none;border:0;border-radius:0;padding:0 18px;min-height:90px;align-items:flex-start;gap:12px;border-right:1px solid #694777}.stat-card:first-child{padding-left:6px}.stat-card:last-child{border-right:0}.stat-card:hover{background:#2b1b35}.stat-icon{background:none!important;color:#efc674!important;width:32px;height:42px}.stat-icon svg{width:27px;height:27px}.stat-copy strong{font:400 42px/1 Georgia,serif;display:block;color:#f4d89b}.stat-copy strong>span{display:block;font:600 11px/1.4 'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:1.8px;color:#f2e5f5;margin-top:10px}.stat-copy small{font-size:12px;color:#d2c0db;display:block;margin-top:7px;line-height:1.4}.collection-section{padding-top:28px}.section-title{align-items:center;margin-bottom:20px}.section-title h2{font:400 38px/1.2 Georgia,serif;color:#f6e9ed}.section-title p{font-size:13px;color:#c6b0d1;margin-top:8px}.count-pill{background:#3e294b;color:#f0d5fa;font:600 13px 'Segoe UI',sans-serif}.sort-control{font-size:12px;color:#dbc7e4}.sort-control select{color:#e7d0f1;background:#2f1e3b;border-color:#6a4b78;font-size:13px}.filter-bar{gap:12px;flex-wrap:wrap;margin-bottom:24px}.search-box{height:52px;min-width:min(400px,100%);flex:1 1 100%;background:#30213b;border:1px solid #886596;border-radius:28px;padding:0 19px;color:#e9c7f8}.search-box input{font-size:16px;color:#fbf0ff;background:transparent}.search-box input::placeholder{color:#ccb2da}.filter-select,.plain-select{background:#2f1e3b;border-color:#785585;color:#ecd6f4;min-height:39px;font-size:13px;border-radius:20px}.filter-select select{background:transparent;color:#ecd6f4}.filter-select option,.plain-select option,.sort-control option{background:#2f1e3b;color:#f3e9fa}.achievement-grid{gap:20px}.achievement-card{padding:0 20px;background:#291a33;border:1px solid #72517f;border-radius:13px;min-height:355px;box-shadow:none}.achievement-card:hover{border-color:#ebc47c;box-shadow:none;transform:translateY(-3px)}.gallery-card-image{width:calc(100% + 40px);height:136px;object-fit:cover;display:block;margin:0 -20px 16px;flex-shrink:0}.card-top{margin-bottom:12px}.issuer-mark{background:#3a2946!important;color:#e9c274!important;width:34px;height:34px;border:1px solid #6a4d77}.kind-label{color:#edc779;font-size:11px;text-transform:uppercase;letter-spacing:1.3px}.star-button{color:#bd9bca}.star-button.is-featured{color:#efc876}.card-title-button{width:100%;color:#f5ebf6;text-align:left}.card-title-button h3{font:400 23px/1.2 Georgia,serif;color:#f9ecf7}.card-title-button>span{font-size:13px;color:#d4bddd;margin-top:8px}.card-title-button:hover h3{color:#f2ce84}.card-description{font-size:12px;line-height:1.6;color:#c5b0d0;margin:12px 0}.skill-tags{margin:2px 0 16px;gap:6px}.skill-tags button,.skill-tags>span{background:#402a4d;color:#ead3f2;border:1px solid #6b4978;font-size:11px}.card-footer{border-color:#674274;padding-block:14px;gap:8px;margin-top:auto}.status-badge{font-size:11px}.proof-status{color:#dfc1ef;font-size:11px}.proof-status.saved{color:#f1d18f}.next-panel{background:#2a1b34;border-color:#62436f}.next-panel h3{color:#f1d097}.next-panel p,.next-panel .mini-label{color:#d6bfdf}.next-panel .button{background:#dfc2ef;color:#291837}.footer{border-color:#61416e;color:#ccb7d6}.text-button{color:#ebc87f}.button.secondary{background:#35233f;color:#efdbf7;border-color:#82618f}.button.primary{background:#dfc0ee;color:#2d163b;border-color:#dfc0ee}.button.primary:hover{background:#efd8f9}.empty-state{background:#24172e;border-color:#775284}.empty-state h3{color:#f1d492}.empty-state p{color:#d8c1e5}
/* Preserve readable existing detail forms, sample evidence, and browse-only notices. */
.welcome-panel{background-color:#160b17;background-size:auto 125%;background-position:right bottom}.filter-bar{background:none;border:0;padding:0;box-shadow:none}.nav-item{padding-inline:8px;gap:10px}.nav-item>span:nth-child(2){min-width:0}.collection-section{position:relative}.section-title{padding-right:66%;min-height:48px}.section-title h2{white-space:nowrap}.section-title p{display:none}.section-title .sort-control{position:absolute;right:0;top:99px}.filter-bar{margin-top:25px}.filter-bar .search-box{position:absolute;top:29px;right:0;width:62%;min-width:0}.filter-bar .plain-select,.filter-bar .filter-select{flex:none}
[role="dialog"],.modal{color:#2d2636;color-scheme:light}.modal .text-button,.modal .detail-description{color:#654974}.modal .button.primary{background:#573767;color:#fff}.modal .button.secondary{background:#fff;color:#573767}.modal input,.modal select,.modal textarea{background:#fff;color:#30253a}.detail-title{color:#493257}
.design-examples{margin-left:var(--sidebar-width);padding:62px 32px 54px;background:#21152b;border-top:1px solid #684574;scroll-margin-top:20px}.gallery-kicker{color:#e6be77;text-transform:uppercase;font-size:11px;letter-spacing:2px;margin-bottom:14px}.design-examples h2{font:400 38px/1.2 Georgia,serif;color:#f3e5ef;margin-bottom:16px}.design-examples>p{max-width:760px;color:#d5bedf;line-height:1.7}.design-examples .gallery-kicker{color:#edc67d}.concept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;margin:30px 0}.concept-grid article>button:first-child{display:block;width:100%;padding:0;border-radius:10px;overflow:hidden;border:1px solid #80618c}.concept-grid img{width:100%;height:auto;display:block}.concept-label{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#edc577;margin:20px 0 10px}.concept-grid h3{font:400 28px/1.2 Georgia,serif;margin-bottom:10px}.concept-grid article>p:not(.concept-label){font-size:14px;line-height:1.7;color:#d4bddf}.concept-open,.gallery-back{display:inline-flex;min-height:44px;align-items:center;color:#f2ce83;text-decoration:underline;text-underline-offset:5px;margin-top:12px}.concept-footnote{font-size:12px}.gallery-back{margin-top:24px}.design-examples img{max-width:100%}#concept-dialog{width:min(1280px,94vw);max-height:92vh;border:1px solid #84628f;border-radius:12px;padding:22px;background:#261830;color:#f6e7fc}#concept-dialog::backdrop{background:#100916e8}#concept-dialog header{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:20px}#concept-dialog .concept-label{margin:0 0 8px}#concept-dialog h2{font:400 28px/1.2 Georgia,serif}#concept-dialog header button{border:1px solid #c49dd6;border-radius:6px;padding:10px 14px;color:#f0d18b;flex-shrink:0}#concept-dialog>img{width:100%;height:auto;display:block}#concept-dialog>p{font-size:13px;line-height:1.6;margin-top:18px;color:#dbc3e7}
@media(min-width:1650px){.welcome-panel{background-size:auto 115%}.welcome-copy{padding-left:45px}}
@media(max-width:1150px){:root{--sidebar-width:215px}.sidebar{padding-inline:12px}.brand{font-size:16px;letter-spacing:2px}.main-content{padding-inline:24px}.welcome-panel{margin-inline:-24px;min-height:390px;background-size:auto 95%;background-position:calc(100% + 45px) center}.welcome-copy{padding:40px 28px;max-width:62%}.welcome-copy h2{font-size:56px}.welcome-copy p{font-size:16px}.stat-card{padding-inline:10px;gap:7px}.stat-copy small{font-size:11px}.stat-copy strong{font-size:36px}.stat-copy strong>span{font-size:10px;letter-spacing:1px}.achievement-grid{gap:14px}.achievement-card{padding-inline:15px}.gallery-card-image{width:calc(100% + 30px);margin-inline:-15px}.card-title-button h3{font-size:21px}.design-examples{padding-inline:24px}}
@media(max-width:850px){.demo-return,.design-examples{margin-left:0}.demo-return{padding:12px 20px;font-size:12px}.topbar{height:58px;overflow:visible;padding:0 20px;border-bottom:1px solid #64446f;background:#24172d}.breadcrumb,.breadcrumb strong,.private-badge{color:#d5bddf}.topbar .avatar{background:#d9b9e9}.main-content{padding:0 20px}.welcome-panel{margin:0 -20px;min-height:390px;background-size:auto 100%;background-position:calc(100% + 45px) center}.welcome-copy{padding:34px 24px;max-width:65%}.welcome-copy h2{font-size:54px}.stats-grid{margin-top:0}.stat-card{gap:6px}.stat-icon{width:25px}.stat-icon svg{width:22px}.stat-copy small{display:none}.stat-copy strong>span{font-size:10px}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-examples{padding:42px 20px}.sidebar.is-open{background:#21152b}.mobile-close{color:#f4d38b}}
@media(max-width:560px){.welcome-panel{min-height:0;display:block;background-image:none;overflow:visible}.welcome-copy{max-width:100%;padding:30px 22px 24px}.welcome-copy .mini-label{font-size:9px;letter-spacing:2px}.welcome-copy h2{font-size:52px;margin:24px 0 18px;letter-spacing:-1.6px}.welcome-copy p{font-size:16px;max-width:350px}.welcome-panel::after{content:'';display:block;background:url('assets/achievement-hero.webp') center 56%/cover no-repeat;height:240px;margin:0 0 12px}.welcome-link{font-size:13px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px;padding-bottom:22px}.stat-card{padding-left:8px;min-height:70px}.stat-card:nth-child(2){border-right:0}.stat-copy strong{font-size:36px}.stat-copy strong>span{font-size:10px}.stat-icon{width:26px}.section-title{align-items:flex-start;gap:16px;flex-wrap:wrap}.section-title h2{font-size:32px}.sort-control{margin-left:0}.filter-bar{gap:10px}.search-box{flex-basis:100%;height:48px}.search-box input{font-size:14px}.filter-select,.plain-select{max-width:100%;width:auto;flex:1 1 40%;font-size:12px}.skill-select{flex-basis:100%}.achievement-grid{grid-template-columns:minmax(0,1fr);gap:22px}.gallery-card-image{height:164px}.achievement-card{min-height:0}.card-title-button h3{font-size:26px}.card-description{font-size:13px}.card-title-button>span{font-size:14px}.skill-tags button{font-size:12px}.card-footer{padding-block:17px}.concept-grid{grid-template-columns:minmax(0,1fr);gap:30px}.design-examples h2{font-size:32px}.concept-grid h3{font-size:26px}#concept-dialog{padding:16px}#concept-dialog header{align-items:flex-start;flex-wrap:wrap}.next-panel{padding:22px}.sidebar{max-width:88vw}}
@media(prefers-reduced-motion:reduce){.achievement-card,.nav-item{transition:none}.achievement-card:hover{transform:none}}
@media(max-width:1150px){.welcome-panel{background-size:auto 115%;background-position:calc(100% + 45px) bottom}.section-title{padding-right:0}.filter-bar .search-box{position:static;width:100%;flex-basis:100%}.section-title .sort-control{position:static}.section-title{justify-content:space-between}.filter-bar{margin-top:0}}
@media(max-width:560px){.welcome-panel{background-image:none}.section-title h2{white-space:normal}.filter-bar .plain-select,.filter-bar .filter-select{flex:1 1 40%}.filter-bar .skill-select{flex-basis:100%}}
.modal{--ink:#30243b;--plum:#493257;--muted:#675571;--border:#d8cddf;--gold:#916824;--green:#4c7565}.modal .kind-label{color:#795526}.modal .detail-description{font-size:14px;line-height:1.7}.modal dt{font-size:12px;color:#6d5b78}.modal dd{font-size:14px;color:#493257}.modal .skill-tags>span{background:#eee4f5;color:#543461}.modal .proof-panel small{color:#6b5877}.modal .proof-panel strong{color:#493257}
@media(min-width:1151px){.welcome-panel{background-size:auto 110%;background-position:right center}}
.page-heading{left:0;top:0}
@media(max-width:850px){.workspace{margin-left:0;width:100%;min-width:0}.topbar{gap:8px}.breadcrumb{gap:9px;min-width:0}.topbar-right{gap:12px}.main-content{width:100%;min-width:0}}
/* Existing secondary views retain their original light reading surface. */
.workspace:not(:has(.welcome-panel)){--ink:#2d2636;--plum:#493257;--muted:#6f6079;--border:#d9cfe0;--gold:#9c7334;--green:#4c7565;background:#f8f7f3;color:#2d2636;min-height:100vh;color-scheme:light}
.workspace:not(:has(.welcome-panel)) .main-content{padding-top:32px}.workspace:not(:has(.welcome-panel)) .page-heading{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin-bottom:24px}.workspace:not(:has(.welcome-panel)) .page-heading h1{color:#493257}.workspace:not(:has(.welcome-panel)) .text-button{color:#684773}.workspace:not(:has(.welcome-panel)) .plain-select,.workspace:not(:has(.welcome-panel)) .search-box{background:white;color:#493257;border-color:#ab91b9}.workspace:not(:has(.welcome-panel)) .search-box input{color:#30243b}.workspace:not(:has(.welcome-panel)) .search-box input::placeholder{color:#786583}.workspace:not(:has(.welcome-panel)) .button.secondary{background:#fff;color:#493257}
/* Keep the gallery concise; full descriptions and skills remain in each detail window. */
.achievement-card{min-height:280px}.gallery-card-image{height:118px}.achievement-card .card-description,.achievement-card>.skill-tags{display:none}.achievement-card .card-top{position:absolute;top:81px;left:14px;right:14px;height:28px;margin:0;background:#25162ee8;border-radius:5px;padding:3px 8px;gap:7px}.achievement-card .card-top .issuer-mark{display:none}.achievement-card .kind-label{font-size:10px}.achievement-card .card-title-button{margin-bottom:14px}.achievement-card .card-title-button h3{font-size:24px}.achievement-card .card-title-button>span{font-size:13px}.achievement-card .card-footer{min-height:46px;padding-block:12px}
@media(max-width:560px){.achievement-card{min-height:290px}.gallery-card-image{height:150px}.achievement-card .card-top{top:113px}.achievement-card .card-title-button h3{font-size:25px}}

.gallery-collection-link {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 4px 0 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f0cb81;
  color: #27182e;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.gallery-collection-link:hover { background: #fbdda0; text-decoration: underline; }
.gallery-collection-link:focus-visible { outline: 3px solid #fff1d4; outline-offset: 3px; }
#collection-heading { scroll-margin-block-start: 16px; }
