/* Ned Hardy Games: The Lab. Site style (white page, pastel tiles, Fraunces titles). Scoped under .nhl. */
.nhl{
  --nhl-ink:#121212; --nhl-muted:#5C5C5C; --nhl-line:#E3E3E3; --nhl-pink:#E0457B; --nhl-pink-soft:#FBDCE8;
  --nhl-serif:"Fraunces",Georgia,"Times New Roman",serif;
  --nhl-sans:"DM Sans","Libre Franklin",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nhl-mono:"DM Mono",ui-monospace,Menlo,Consolas,monospace;
  box-sizing:border-box; color:var(--nhl-ink); font-family:var(--nhl-sans); font-size:16px; line-height:1.45;
  display:flex; flex-direction:column; gap:32px; text-align:left;
}
.nhl *,.nhl *::before,.nhl *::after{box-sizing:border-box}
.nhl p{margin:0}
.nhl h2,.nhl h3,.nhl h4{margin:0;color:inherit;text-transform:none;letter-spacing:normal}
.nhl button{font-family:var(--nhl-sans);color:inherit;margin:0;text-transform:none;letter-spacing:normal;cursor:pointer;line-height:1.2}
.nhl :focus-visible{outline:3px solid var(--nhl-pink)!important;outline-offset:2px}
.nhl-mono{font-family:var(--nhl-mono);font-size:13px;font-weight:500}

/* Page title (the theme's title, dressed up) */
.nhl-title-in{display:inline-flex;align-items:center;gap:.25em;flex-wrap:wrap;vertical-align:middle}
.nhl-title-in .nhl-icon{width:1.15em;height:1.15em;flex:none;margin-right:.08em}
.nhl-title-in .nhl-pill{font-size:13px;letter-spacing:0;font-weight:700;align-self:center;margin-left:.3em}
.nhl-pill{display:inline-block;font-family:var(--nhl-sans);font-size:13px;font-weight:700;line-height:1.3;border:1.5px solid #121212;border-radius:999px;padding:3px 11px;background:#fff;color:#121212;white-space:nowrap}
.nhl-pill--pink{background:#FBDCE8}
.nhl-pill--ink{background:#121212;color:#fff}

/* Own heading (title="yes") */
.nhl-top{display:flex;flex-direction:column;gap:10px}
.nhl-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.nhl-title .nhl-icon{width:clamp(52px,6vw,72px);height:clamp(52px,6vw,72px);flex:none}
.nhl .nhl-h1{font-family:var(--nhl-sans);font-weight:800;font-size:clamp(40px,5vw,64px);line-height:1;letter-spacing:-1px}
.nhl-lede{font-family:var(--nhl-serif);font-size:clamp(18px,1.8vw,22px);line-height:1.4;max-width:640px}

/* Sections */
.nhl-sec{display:flex;flex-direction:column;gap:16px}
.nhl-sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;border-bottom:1.5px solid #121212;padding-bottom:10px}
.nhl .nhl-sec-head h3{font-family:var(--nhl-sans);font-weight:800;font-size:30px;letter-spacing:-.5px;line-height:1.1}
.nhl-empty{background:#F4F4F4;border-radius:16px;padding:20px}

/* Experiment cards: one template, always equal size */
.nhl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:16px}
.nhl-card{background:var(--nhl-tile,#FBDCE8);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}
.nhl-card-head{display:flex;align-items:center;gap:16px}
.nhl-card-head > div{display:flex;flex-direction:column;gap:4px;min-width:0}
.nhl-icon{display:block;border-radius:20%}
.nhl-card-head .nhl-icon{width:76px;height:76px;flex:none}
.nhl .nhl-card-name{font-family:var(--nhl-serif);font-weight:900;font-size:34px;line-height:1;letter-spacing:-.5px}
.nhl-tags{display:flex;flex-wrap:wrap;gap:6px}
.nhl-card-line{font-size:17px;color:#2E2E2E}
.nhl-meter-box{background:#fff;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}
.nhl-meter-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.nhl-meter-top strong{font-size:15px;font-weight:800}
.nhl-meter-top span{font-size:13px;font-weight:700;color:var(--nhl-muted)}
.nhl-meter{position:relative;height:10px;border-radius:999px;background:#EDEDED}
.nhl-meter i{display:block;height:100%;border-radius:999px;background:#121212;max-width:100%}
.nhl-meter b{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--nhl-pink)}
.nhl-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;text-align:center;border-top:1px solid #ECECEC;padding-top:10px}
.nhl-stats div{display:flex;flex-direction:column}
.nhl-stats strong{font-family:var(--nhl-serif);font-weight:900;font-size:20px;line-height:1.1}
.nhl-stats span{font-size:12px;font-weight:600;color:var(--nhl-muted)}
.nhl-said{display:flex;flex-direction:column;gap:6px}
.nhl-said > span{font-size:13px;font-weight:800}
.nhl-said > div{display:flex;flex-wrap:wrap;gap:6px}
.nhl-chip{font-size:14px;font-weight:600;background:#fff;border-radius:999px;padding:4px 12px}
.nhl-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:2px}
.nhl-bug-link{margin-left:auto;font-size:14px;font-weight:700;color:#121212!important}

/* Buttons */
.nhl .nhl-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#121212!important;color:#fff!important;border:1.5px solid #121212!important;border-radius:999px!important;padding:13px 24px!important;font-family:var(--nhl-sans)!important;font-weight:700!important;font-size:17px!important;line-height:1!important;text-decoration:none!important;box-shadow:none!important;min-height:0}
.nhl .nhl-btn:hover{background:#2E2E2E!important}
.nhl .nhl-btn--line{background:#fff!important;color:#121212!important}
.nhl .nhl-btn--line:hover{background:#F4F4F4!important}
.nhl .nhl-btn--sm{padding:10px 20px!important;font-size:15px!important;align-self:flex-start}
.nhl .nhl-btn--wide{width:100%;max-width:300px;height:56px;font-size:18px!important}
.nhl .nhl-btn:disabled{opacity:.6;cursor:default}
.nhl .nhl-link{background:none!important;border:0!important;padding:6px!important;font-weight:700;font-size:15px;color:#121212!important;text-decoration:underline;box-shadow:none!important}

/* Tiles row */
.nhl-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px}
.nhl-tile{border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px;font-size:14px;min-width:0}
.nhl-tile .nhl-icon{width:56px;height:56px}
.nhl-tile--yellow{background:#FAF0A6}.nhl-tile--blue{background:#D7E7F6}.nhl-tile--gray{background:#E0E2E6}.nhl-tile--green{background:#E3F0C4}.nhl-tile--pink{background:#FBDCE8}
.nhl-tile-h{font-family:var(--nhl-serif);font-weight:900;font-size:24px;line-height:1.05}
.nhl-tile textarea,.nhl-dialog textarea{width:100%;border:1.5px solid #121212;border-radius:12px;padding:10px;font-family:var(--nhl-sans);font-size:15px;resize:vertical;background:#fff;color:#121212;box-shadow:none}
.nhl-reports{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.nhl-reports li{margin:0}
.nhl-reports .nhl-link{padding:0!important;font-size:15px}
.nhl-msg{font-size:14px;font-weight:700;min-height:1px}
.nhl-msg.is-bad{color:#B3261E}

/* Tester notes */
.nhl-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.nhl-note{margin:0;border:1.5px solid var(--nhl-line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px;background:#fff}
.nhl-note figcaption{font-size:13px;font-weight:700;color:var(--nhl-muted)}
.nhl-note blockquote{margin:0;padding:0;border:0;font-family:var(--nhl-serif);font-size:18px;line-height:1.4;font-style:normal;color:#121212}
.nhl-note blockquote::before,.nhl-note blockquote::after{content:none}

/* Dialogs */
.nhl-dialog{border:0;border-radius:18px;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 32px);background:#fff;color:#121212;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.nhl-dialog::backdrop{background:rgba(18,18,18,.5)}
.nhl-dialog-in{position:relative;padding:26px 22px 22px;display:flex;flex-direction:column;gap:12px}
.nhl .nhl-x{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0!important;background:none!important;font-size:28px;line-height:1;color:#121212!important;padding:0!important}
.nhl .nhl-dialog-h{font-family:var(--nhl-serif);font-weight:900;font-size:28px;line-height:1.05;padding-right:36px}
.nhl-verdict{font-weight:800;font-size:17px}
.nhl-stats--report{border-top:0;padding-top:0}
.nhl-report-note{font-family:var(--nhl-serif);font-size:18px;line-height:1.45}

/* One experiment */
.nhl-play-head{display:flex;flex-direction:column;gap:10px}
.nhl .nhl-back{font-weight:700;color:#121212;text-decoration:none;font-size:15px}
.nhl .nhl-back:hover{text-decoration:underline}
.nhl-admin-note{background:#FFF6D6;border:1px solid #E8C55A;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600}
.nhl-ab-wait{padding:60px 0;text-align:center;color:var(--nhl-muted);font-weight:600}
.nhl-play-foot{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;padding:4px 0 8px}
.nhl-play-foot .nhl-mono{flex-basis:100%;text-align:center;color:var(--nhl-muted)}

/* Rating card */
.nhl-rate .nhl-dialog-in{background:var(--nhl-tile,#FBDCE8);padding:30px 20px 24px}
.nhl-rate-form,.nhl-thanks{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.nhl [hidden]{display:none !important}
.nhl .nhl-rate-q{font-family:var(--nhl-serif);font-weight:900;font-size:clamp(26px,5vw,36px);line-height:1.05;letter-spacing:-.5px;max-width:460px}
.nhl-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;max-width:400px}
.nhl .nhl-answers button{height:54px;border:1.5px solid #121212!important;border-radius:999px!important;background:#fff!important;color:#121212!important;font-weight:700;font-size:18px;padding:0!important;box-shadow:none!important}
.nhl .nhl-answers button[aria-checked="true"]{background:#121212!important;color:#fff!important}
.nhl-chips-pick{display:flex;flex-direction:column;gap:8px;align-items:center}
.nhl-chips-pick > span{font-size:14px;font-weight:700;color:#3A3A3A}
.nhl-chips-pick > div{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.nhl .nhl-chips-pick button{border:1.5px solid #121212!important;border-radius:999px!important;padding:6px 14px!important;background:#fff!important;color:#121212!important;font-weight:600;font-size:15px;box-shadow:none!important}
.nhl .nhl-chips-pick button[aria-pressed="true"]{background:#121212!important;color:#fff!important}
.nhl-stars{display:flex;gap:2px}
.nhl .nhl-stars button{width:44px;height:44px;border:0!important;background:none!important;padding:0!important;box-shadow:none!important}
.nhl-stars svg{width:32px;height:32px;display:block;margin:auto}
.nhl-stars path{fill:#fff;stroke:#121212;stroke-width:1.6;stroke-linejoin:round}
.nhl-stars button.is-on path{fill:#F4C430}
.nhl-note-label{align-self:stretch;text-align:left;font-size:15px;font-weight:700}
.nhl-note-label span{font-weight:500;color:#4A4A4A}
.nhl-rate-form textarea{margin-top:-10px}
.nhl-rate-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.nhl-thanks .nhl-icon{width:80px;height:80px}
.nhl-thanks-text{font-family:var(--nhl-serif);font-size:19px;line-height:1.4;max-width:440px}
.nhl-meter--big{width:100%;max-width:400px;height:12px;background:#fff}
.nhl-thanks-next{width:100%;max-width:400px}
.nhl-next{display:flex;align-items:center;gap:14px;border-radius:16px;padding:14px 16px;text-decoration:none!important;color:#121212!important;text-align:left;background:#fff}
.nhl-next .nhl-icon{width:52px;height:52px;flex:none}
.nhl-next small{display:block;font-size:13px;font-weight:700}
.nhl-next b{display:block;font-family:var(--nhl-serif);font-weight:900;font-size:22px;line-height:1.05}

.nhl-bug-form{display:flex;flex-direction:column;gap:12px}
.nhl-bug-form label{font-size:15px}
.nhl-bug-form .nhl-btn{align-self:flex-start}

/* Wide pages (no sidebar): fit three cards across instead of two. */
@media (min-width:900px){ .nhl-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr))} }
@media (max-width:520px){
  .nhl{gap:26px}
  .nhl-card{padding:18px}
  .nhl .nhl-card-name{font-size:28px}
  .nhl-card-head .nhl-icon{width:64px;height:64px}
  .nhl-bug-link{margin-left:0}
  .nhl-dialog-in{padding:24px 16px 18px}
}
@media (prefers-reduced-motion:reduce){.nhl *{transition:none!important;animation:none!important}}

/* Every game in testing in one row on desktop. Three or four cards get a tighter card. */
@media (min-width:900px){
.nhl-grid--row{grid-template-columns:repeat(var(--nhl-n,3),minmax(0,1fr))}
.nhl-grid--tight .nhl-card{padding:18px;gap:12px}
.nhl-grid--tight .nhl-card-head{gap:12px}
.nhl-grid--tight .nhl-card-head .nhl-mono{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nhl-grid--tight .nhl-card-head .nhl-icon{width:56px;height:56px}
.nhl .nhl-grid--tight .nhl-card-name{font-size:clamp(20px,1.9vw,26px)}
.nhl-grid--tight .nhl-card-line{font-size:15px}
.nhl-grid--tight .nhl-meter-box{padding:12px}
.nhl-grid--tight .nhl-meter-top strong{font-size:14px}
.nhl-grid--tight .nhl-meter-top span{font-size:12px}
.nhl-grid--tight .nhl-stats{gap:2px}
.nhl-grid--tight .nhl-stats strong{font-size:17px}
.nhl-grid--tight .nhl-stats span{font-size:11px}
.nhl-grid--tight .nhl-chip{font-size:13px;padding:3px 10px}
.nhl .nhl-grid--tight .nhl-btn{padding:11px 18px!important;font-size:15px!important}
.nhl-grid--tight .nhl-bug-link{font-size:13px}
}
