/* A small playroom. Every selector stays inside the homepage's empty state. */
.after-hours { --ah-paper: #faf8f3; --ah-soft: #ede9df; --ah-ink: #292821; --ah-muted: #79766a; --ah-line: #dcd8cc; width: 100%; color: var(--ah-ink); }
.after-hours *, .after-hours *::before, .after-hours *::after { box-sizing: border-box; }
.after-hours [hidden], .paper-playground[hidden] { display: none !important; }
.vertical-portfolio .portfolio-empty .after-hours button { font: inherit; cursor: pointer; text-decoration: none; }
.after-hours button:focus-visible, .after-hours input:focus-visible, .after-hours canvas:focus-visible { outline: 2px solid #a75f40; outline-offset: 4px; }
.ah-lobby { padding-top: 8px; }
.ah-lobby-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 0 24px; }
.ah-eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--ah-muted); }
.ah-lobby h3 { margin: 10px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.04em; line-height: 1.3; }
.vertical-portfolio .portfolio-empty .ah-lobby-action { flex-shrink: 0; }
.vertical-portfolio .portfolio-empty .ah-lobby-action .show-projects { min-height: 40px; padding: 8px 0; }
.ah-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vertical-portfolio .portfolio-empty .ah-card { display: block; min-height: 0; overflow: hidden; width: 100%; padding: 0; text-align: left; border: 1px solid var(--ah-line); border-radius: 16px; background: var(--ah-paper); color: var(--ah-ink); box-shadow: 0 3px 10px #332b1b04, inset 0 1px 0 #ffffff80; transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease; }
.ah-card:hover { transform: translateY(-4px); border-color: #b9ae9c; box-shadow: 0 14px 30px -18px #42331c45; }
.ah-card-art { position: relative; display: block; height: 180px; overflow: hidden; border-bottom: 1px solid var(--ah-line); }
.ah-card-art svg { display: block; width: 100%; height: 100%; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.ah-card:hover .ah-card-art svg { transform: scale(1.035); }
.ah-card-number { position: absolute; top: 16px; left: 18px; font: 11px var(--sans); letter-spacing: .12em; opacity: .5; }
.ah-card-info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 20px 22px 22px; }
.ah-card-title { font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.ah-card-description { color: var(--ah-muted); font-size: 12px; line-height: 1.7; padding-right: 24px; }
.ah-card-tag { margin-top: 8px; color: var(--ah-muted); font-size: 10px; letter-spacing: .03em; }
.ah-card-arrow { position: absolute; right: 22px; bottom: 23px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--ah-line); border-radius: 50%; font-size: 15px; transition: background 200ms, color 200ms; }
.ah-card:hover .ah-card-arrow { background: var(--ah-ink); color: var(--ah-paper); }
.ah-lobby-foot { display: flex; align-items: center; gap: 8px; padding-top: 20px; color: var(--ah-muted); font-size: 10px; letter-spacing: .05em; }
.ah-lobby-foot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8b967a; }
.ah-session { scroll-margin-top: 82px; }
.ah-session-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 20px; }
.vertical-portfolio .portfolio-empty .ah-back, .vertical-portfolio .portfolio-empty .ah-restart { min-height: 40px; padding: 8px 0; color: var(--ah-muted); font-size: 12px; }
.ah-back:hover, .ah-restart:hover { color: var(--ah-ink) !important; }
.ah-session-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.ah-session-heading h3 { margin: 8px 0 0; font-size: 28px; line-height: 1.35; font-weight: 500; letter-spacing: -.03em; }
.ah-session-index { color: var(--ah-muted); font: 11px var(--sans); letter-spacing: .1em; white-space: nowrap; padding-bottom: 4px; }
.ah-pane { width: 100%; }
.ah-panel { background: var(--ah-paper); border: 1px solid var(--ah-line); border-radius: 16px; overflow: hidden; box-shadow: inset 0 1px 0 #ffffff60, 0 8px 30px -25px #40321f40; }
.ah-note { color: var(--ah-muted); font-size: 11px !important; line-height: 1.8; padding-top: 16px; }
.vertical-portfolio .portfolio-empty .ah-primary { padding: 12px 18px; min-height: 44px; border-radius: 8px; background: var(--ah-ink); color: var(--ah-paper); font-size: 12px; font-weight: 500; border: 1px solid var(--ah-ink); }
.ah-primary:hover { filter: brightness(1.2); }
.vertical-portfolio .portfolio-empty .ah-secondary { min-height: 40px; padding: 9px 14px; border: 1px solid var(--ah-line); border-radius: 7px; font-size: 11px; color: var(--ah-muted); }
.ah-secondary:hover { background: var(--ah-soft); }
.ah-status { font-size: 12px !important; line-height: 1.8; color: var(--ah-muted); min-height: 22px; }
/* Client review: a physical print beside a compact set of art direction controls. */
.ah-review { display: grid; grid-template-columns: 1.05fr 1fr; }
.ah-poster-stage { display: grid; place-items: center; position: relative; min-height: 480px; padding: 40px; background: #eae6dc; background-image: radial-gradient(#a09b8a22 .7px, transparent .7px); background-size: 5px 5px; border-right: 1px solid var(--ah-line); }
.ah-poster { --poster-accent: #c3714d; --title-size: 48px; --logo-size: 22px; --poster-align: center; --poster-scale: 1; width: 100%; max-width: 292px; height: 374px; padding: 23px; background: #f9f5e9; color: #272920; box-shadow: 1px 3px 3px #3d332e10, 0 16px 30px -15px #4b3b2e40; transform: rotate(-2deg); position: relative; overflow: hidden; transition: transform 300ms ease; }
.ah-poster-meta { display: flex; justify-content: space-between; font-size: 7px; letter-spacing: .12em; border-bottom: 1px solid #27292044; padding-bottom: 10px; }
.ah-poster-title { position: relative; z-index: 1; margin-top: 27px; font: 800 calc(var(--title-size) * var(--poster-scale) * .85)/.93 "Helvetica Neue", sans-serif; letter-spacing: -.07em; text-align: var(--poster-align); transition: font-size 180ms ease; }
.ah-poster-orbit { width: 130px; height: 130px; position: absolute; right: -22px; bottom: 37px; border: 29px solid var(--poster-accent); border-radius: 50%; transition: border-color 200ms; }
.ah-poster-logo { position: absolute; bottom: 23px; left: 23px; font: 700 var(--logo-size)/1 "Helvetica Neue", sans-serif; letter-spacing: -.06em; max-width: calc(100% - 46px); }
.ah-poster-caption { position: absolute; bottom: 65px; left: 23px; font-size: 7px; letter-spacing: .1em; line-height: 1.7; }
.ah-poster-sticker { position: absolute; right: 10px; top: 178px; z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; background: #e7c75f; border: 1px dashed #756221; border-radius: 50%; color: #4b411d; font-size: 11px; font-weight: 600; text-align: center; transform: rotate(14deg); }
.ah-approved { position: absolute; z-index: 3; bottom: 92px; right: 14px; padding: 10px; color: #507359; border: 3px double #507359; font: 700 22px/1.2 var(--sans); letter-spacing: .04em; transform: rotate(-12deg); background: #f9f5e9dd; }
.ah-review-controls { padding: 28px; }
.ah-client-top { display: flex; align-items: center; gap: 9px; color: var(--ah-muted); font-size: 10px; }
.ah-client-avatar { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e8e1d5; color: #75644e; font-size: 11px; }
.ah-client-turn { margin-left: auto; font-variant-numeric: tabular-nums; }
.ah-client-quote { margin: 16px 0 8px; min-height: 53px; font-size: 19px; line-height: 1.6; font-weight: 500; letter-spacing: -.02em; }
.ah-client-hint { font-size: 11px !important; line-height: 1.8; color: var(--ah-muted); min-height: 36px; }
.ah-revision-track { display: flex; gap: 5px; margin: 18px 0 23px; }
.ah-revision-track span { width: 100%; height: 3px; border-radius: 2px; background: var(--ah-line); }
.ah-revision-track span.is-done { background: #9ba184; }
.ah-revision-track span.is-current { background: #c17d58; }
.ah-control { margin: 0 0 16px; }
.ah-control label, .ah-control-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: var(--ah-muted); font-size: 11px; }
.ah-control output { color: var(--ah-ink); font-variant-numeric: tabular-nums; }
.ah-range { width: 100%; height: 5px; margin: 8px 0; cursor: pointer; accent-color: #a76548; }
.ah-options { display: flex; align-items: center; gap: 7px; }
.vertical-portfolio .portfolio-empty .ah-swatch { width: 27px; height: 27px; min-height: 0; padding: 0; background: var(--swatch); border: 3px solid var(--ah-paper); border-radius: 50%; outline: 1px solid transparent; }
.ah-swatch[aria-pressed="true"] { outline-color: var(--ah-muted); }
.vertical-portfolio .portfolio-empty .ah-align { flex: 1; padding: 6px 8px; min-height: 32px; font-size: 10px; border: 1px solid var(--ah-line); border-radius: 5px; color: var(--ah-muted); }
.ah-align[aria-pressed="true"] { background: var(--ah-soft); color: var(--ah-ink) !important; border-color: #aaa28f !important; }
.ah-sticker-label { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; font-size: 11px; color: var(--ah-muted); }
.ah-sticker-label input { accent-color: #a76548; width: 14px; height: 14px; }
.ah-review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.ah-shake { animation: ah-shake 260ms ease; }
.ah-accepted { animation: ah-accepted 500ms ease; }
@keyframes ah-shake { 25%,75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@keyframes ah-accepted { 40% { transform: rotate(0deg) translateY(-5px); } }
/* Canvas games share a quiet dashboard, not a video-game HUD. */
.ah-arcade { display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.ah-canvas-stage { position: relative; padding: 24px; background: var(--ah-soft); border-right: 1px solid var(--ah-line); display: flex; align-items: center; justify-content: center; }
.ah-board { display: block; max-width: 100%; height: 510px; width: auto; border-radius: 13px; touch-action: none; }
.ah-arcade-sidebar { padding: 26px 23px; display: flex; flex-direction: column; align-items: stretch; gap: 23px; }
.ah-stat-label { display: block; font-size: 10px; color: var(--ah-muted); margin-bottom: 5px; }
.ah-stat-value { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.055em; font-weight: 500; font-variant-numeric: tabular-nums; }
.ah-stat-row { display: flex; gap: 28px; }
.ah-stat-row .ah-stat-value { font-size: 22px; }
.ah-rule-divider { border-top: 1px solid var(--ah-line); padding-top: 20px; }
.ah-arcade-sidebar h4 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.vertical-portfolio .portfolio-empty .ah-arcade-sidebar p { font-size: 11px; color: var(--ah-muted); line-height: 1.9; }
.ah-target-list { display: flex; flex-direction: column; gap: 10px; font-size: 11px; color: var(--ah-muted); }
.ah-target-list span { display: flex; gap: 8px; align-items: center; }
.ah-target-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--target); }
.ah-target-list b { font-weight: 400; margin-left: auto; }
.ah-game-feedback { margin-top: auto !important; min-height: 45px; }
.ah-touch-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 16px; background: var(--ah-paper); border-top: 1px solid var(--ah-line); }
.vertical-portfolio .portfolio-empty .ah-touch-controls button { min-height: 42px; min-width: 54px; padding: 10px 16px; border: 1px solid var(--ah-line); border-radius: 7px; font-size: 12px; color: var(--ah-ink); background: var(--ah-paper); user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 2px 0 var(--ah-soft); }
.ah-touch-controls button:active, .ah-touch-controls button.is-held { transform: translateY(2px); background: var(--ah-soft) !important; box-shadow: none; }
.ah-key-hint { text-align: center; font-size: 10px !important; line-height: 1.8; padding: 0 16px 17px; color: var(--ah-muted); }
.ah-overlay { position: absolute; inset: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 22px; background: #efebe3d9; backdrop-filter: blur(7px); border-radius: 13px; text-align: center; z-index: 2; }
.ah-overlay h4 { font-size: 23px; font-weight: 500; margin: 0; letter-spacing: -.03em; }
.vertical-portfolio .portfolio-empty .ah-overlay p { font-size: 12px; line-height: 1.8; color: var(--ah-muted); max-width: 235px; }
.ah-next-piece { width: 120px; height: 80px; display: block; margin-left: -6px; }
.ah-pause { align-self: flex-start; }
/* The original paper toss lives in the same navigation shell. */
.after-hours .paper-playground { width: 100%; max-width: none; }
:root[data-theme="dark"] .after-hours { --ah-paper: #242721; --ah-soft: #1e211c; --ah-ink: #e5e4d8; --ah-muted: #adb09f; --ah-line: #3c4235; }
:root[data-theme="dark"] .ah-card, :root[data-theme="dark"] .ah-panel { box-shadow: inset 0 1px 0 #ffffff08; }
:root[data-theme="dark"] .ah-card-art { filter: brightness(.8); }
:root[data-theme="dark"] .ah-card-number { color: #292821; }
:root[data-theme="dark"] .ah-poster-stage { background-color: #303329; }
:root[data-theme="dark"] .ah-client-avatar { background: #454636; color: #ded7bb; }
:root[data-theme="dark"] .ah-overlay { background: #242721dc; }
@media (max-width: 750px) {
 .ah-card-art { height: 150px; }
 .ah-review { grid-template-columns: 1fr 1fr; }
 .ah-poster-stage { padding: 20px; min-height: 430px; }
 .ah-poster { height: 350px; padding: 18px; }
 .ah-review-controls { padding: 22px 18px; }
 .ah-arcade { grid-template-columns: minmax(0,1fr) 180px; }
 .ah-arcade-sidebar { padding: 22px 18px; }
 .ah-canvas-stage { padding: 18px; }
 .ah-board { height: 470px; }
 .ah-overlay { inset: 18px; }
}
@media (max-width: 560px) {
 .ah-lobby-heading { align-items: flex-start; padding-bottom: 18px; gap: 10px; }
 .vertical-portfolio .portfolio-empty .ah-lobby-action .show-projects { font-size: 12px; padding-top: 0; }
 .ah-game-grid { gap: 12px; }
 .ah-card-art { height: 124px; }
 .ah-card-number { top: 12px; left: 12px; font-size: 9px; }
 .ah-card-info { padding: 15px 13px 17px; gap: 7px; }
 .ah-card-title { font-size: 15px; }
 .ah-card-description { font-size: 11px; padding-right: 0; min-height: 38px; }
 .ah-card-tag { font-size: 9px; margin-top: 4px; max-width: calc(100% - 20px); }
 .ah-card-arrow { right: 12px; bottom: 14px; width: 24px; height: 24px; font-size: 12px; }
 .ah-session-heading h3 { font-size: 24px; }
 .ah-review { grid-template-columns: 1fr; }
 .ah-poster-stage { min-height: 350px; padding: 26px; border-right: 0; border-bottom: 1px solid var(--ah-line); }
 .ah-poster { max-width: 244px; height: 300px; }
 .ah-poster-title { margin-top: 20px; font-size: calc(var(--title-size) * var(--poster-scale) * .85); }
 .ah-poster-logo { font-size: calc(var(--logo-size) * .83); }
 .ah-poster-orbit { width: 110px; height: 110px; border-width: 23px; bottom: 25px; }
 .ah-poster-sticker { top: 137px; width: 65px; height: 65px; font-size: 10px; }
 .ah-review-controls { padding: 22px; }
 .ah-client-quote { min-height: 0; font-size: 18px; }
 .ah-client-hint { min-height: 0; }
 .ah-arcade { grid-template-columns: 1fr; }
 .ah-canvas-stage { border-right: 0; border-bottom: 1px solid var(--ah-line); padding: 18px 12px; }
 .ah-board { height: auto; max-height: 460px; width: min(100%,312px); }
 .ah-arcade-sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 20px; padding: 20px; }
 .ah-arcade-sidebar .ah-rule-divider, .ah-arcade-sidebar .ah-game-feedback { grid-column: 1 / -1; }
 .ah-target-list { display: none; }
 .ah-arcade-sidebar .ah-game-feedback { min-height: 0; }
 .ah-stat-value { font-size: 28px; }
 .ah-next-piece { height: 56px; width: 100px; }
 .ah-touch-controls { padding: 14px 10px; gap: 6px; }
 .vertical-portfolio .portfolio-empty .ah-touch-controls button { padding: 10px 12px; min-width: 46px; font-size: 11px; }
 .ah-overlay { inset: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
 .ah-card, .ah-card-art svg, .ah-poster, .ah-poster-title, .ah-poster-orbit { transition: none; }
 .ah-shake, .ah-accepted { animation: none; }
}
@media (max-width: 560px) {
 /* Put the touch controls directly under the board, before the scoreboard. */
 .ah-panel:has(.ah-arcade) { display: flex; flex-direction: column; }
 .ah-arcade { display: contents; }
 .ah-canvas-stage { order: 0; }
 .ah-touch-controls { order: 1; }
 .ah-key-hint { order: 2; }
 .ah-arcade-sidebar { order: 3; border-top: 1px solid var(--ah-line); }
}
.ah-session-nav { position: sticky; top: 61px; z-index: 5; padding-top: 4px; background: var(--color-canvas); }
.after-hours .paper-game-topline > div { display: none; }
.after-hours .paper-game-topline { justify-content: flex-end; padding-top: 18px; padding-bottom: 12px; }
@media (max-width: 560px) {
}
