/* Public link-in-bio page */
/* Same pixel font, smoothed and slightly larger/airier for legibility (Cody picked option C, 2026-10-15). */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: 0.2px; font-size: 17px; }
.marquee, .notepad-page, .boot { letter-spacing: 0; }
.title-bar-text { font-size: 15px; }
.desktop button, .desktop .btn, .overlay button, .overlay .btn { font-size: 16px; }
.desktop {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 12px calc(var(--taskbar-h) + 28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
.desktop > .window { scroll-margin-top: 14px; }

/* ---------- Profile ---------- */
.profile { display: flex; gap: 14px; align-items: center; padding: 4px 2px 12px; }
.avatar { width: 92px; height: 92px; flex: none; box-shadow: var(--sunken); background: #fff; padding: 3px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .px-icon { width: 100%; height: 100%; }
.profile-text { min-width: 0; }
.profile-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.15; word-break: break-word; }
.profile-handle { font-size: 15px; color: var(--navy); margin-top: 2px; }
.profile-tagline { font-size: 15px; margin-top: 6px; line-height: 1.4; white-space: pre-line; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin-top: 6px; color: #303030; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #00c000; box-shadow: inset -1px -1px #006000; margin-right: 5px; vertical-align: 1px; animation: blink 1.6s steps(1) infinite; }

.marquee { overflow: hidden; white-space: nowrap; background: #000; color: #00ff00; font-family: var(--mono); font-size: 14px; padding: 6px 0; box-shadow: var(--sunken); margin-bottom: 12px; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Links ---------- */
.links { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-btn {
  width: 100%; min-height: 62px; justify-content: flex-start; text-align: left;
  padding: 8px 12px 8px 10px; gap: 12px; position: relative;
}
.link-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.link-icon .px-icon { width: 32px; height: 32px; }
.link-icon.thumb { box-shadow: var(--sunken); padding: 2px; background: #fff; }
.link-icon.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-title { font-size: 18.5px; font-weight: 700; line-height: 1.25; }
.link-sub { font-size: 14px; color: #404040; margin-top: 3px; line-height: 1.3; }
.link-arrow { flex: none; width: 10px; height: 14px; }

.link-btn.featured { outline: none; }
.link-btn.featured::before {
  content: ''; position: absolute; inset: 5px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px) top left / 200% 1px repeat-x,
    repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px) bottom left / 200% 1px repeat-x,
    repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 8px) top left / 1px 200% repeat-y,
    repeating-linear-gradient(0deg, #000 0 4px, transparent 4px 8px) top right / 1px 200% repeat-y;
  animation: ants 0.8s steps(4) infinite;
}
@keyframes ants { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
.badge {
  position: absolute; top: -8px; right: -4px;
  font-size: 12px; font-weight: 700; padding: 2px 6px;
  background: #ff0000; color: #ffff00; box-shadow: 1px 1px 0 #000;
  animation: badge 1s steps(1) infinite; transform: rotate(4deg);
}
@keyframes badge { 50% { background: #ffff00; color: #ff0000; } }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- About (single Notepad window) ---------- */
.notepad-page { background: #fff; box-shadow: var(--sunken); padding: 14px 14px 18px; font-family: var(--mono); font-size: 15px; line-height: 1.55; word-break: break-word; }
.bio .para { margin: 0 0 14px; }
.bio .para:last-child { margin-bottom: 0; }
.doc-heading { display: flex; align-items: center; gap: 8px; font-family: var(--ui); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 22px 0 10px; padding-bottom: 5px; border-bottom: 2px solid #000; }
.notepad-page > .doc-heading:first-child { margin-top: 0; }
.beliefs { margin: 0; padding: 0 0 0 26px; }
.beliefs li { margin-bottom: 12px; }
.beliefs li::marker { font-weight: 700; }
.beliefs li:last-child { margin-bottom: 0; }
.belief-title { font-weight: 700; margin: 0; }
.belief-body { margin: 4px 0 0; }
.jobs { list-style: none; margin: 0; padding: 0; }
.job { margin-bottom: 14px; }
.job:last-child { margin-bottom: 0; }
.job-role { font-weight: 700; }
.job-org a { color: #0000ee; }
.job-dates { font-size: 14px; color: #555; }
.job-summary { margin: 4px 0 0; }

.footer { margin-top: auto; text-align: center; color: #fff; font-size: 14px; line-height: 1.5; padding: 10px 4px 0; }
.footer .safe { color: #ffb000; font-size: 16px; }
.footer .disclosure { margin-top: 10px; font-size: 12px; line-height: 1.45; color: #cfe6e6; }

/* ---------- Taskbar ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  height: calc(var(--taskbar-h) + env(safe-area-inset-bottom));
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  background: var(--face); box-shadow: inset 0 1px var(--face), inset 0 2px #fff;
  display: flex; align-items: center; gap: 4px;
}
.start-btn { min-width: 0; min-height: 0; height: 36px; padding: 2px 10px 2px 6px; font-weight: 700; gap: 6px; }
.start-btn .px-icon { width: 22px; height: 22px; }
.task-slot { flex: 1; min-width: 0; display: flex; }
.task-slot button { flex: 1; min-width: 0; max-width: 200px; height: 36px; min-height: 0; justify-content: flex-start; font-size: 15px; padding: 2px 8px; }
.task-slot button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-slot .px-icon { width: 16px; height: 16px; }
.tray { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 4px; font-size: 15px; flex: none; }
.tray button { min-width: 0; min-height: 0; width: 30px; height: 30px; padding: 0; box-shadow: none; background: none; }
.tray button:active { box-shadow: none; }
.tray .px-icon { width: 20px; height: 20px; }

.start-menu {
  position: fixed; left: 4px; bottom: calc(var(--taskbar-h) + env(safe-area-inset-bottom) - 2px); z-index: 600;
  display: flex; width: min(270px, calc(100vw - 8px));
}
.start-menu[hidden] { display: none; }
.start-side { width: 30px; background: linear-gradient(#000080, #1084d0); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.start-side span { writing-mode: vertical-rl; transform: rotate(180deg); color: #c0c0c0; font-weight: 700; font-size: 20px; white-space: nowrap; }
.start-side b { color: #fff; }
.start-menu ul { list-style: none; margin: 0; padding: 2px 0; flex: 1; }
.start-menu li button, .start-menu li a {
  width: 100%; min-height: 46px; box-shadow: none; background: none; justify-content: flex-start;
  gap: 12px; padding: 4px 10px; font-size: 17.5px; color: #000; text-decoration: none; display: flex; align-items: center;
}
.start-menu li button:hover, .start-menu li button:focus-visible, .start-menu li a:hover, .start-menu li a:focus-visible { background: var(--navy); color: #fff; outline: none; }
.start-menu li .px-icon { width: 28px; height: 28px; }
.start-menu li.sep { height: 2px; margin: 3px 4px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px #fff; }
.start-menu u { text-decoration: underline; }

/* ---------- Boot + shutdown ---------- */
.boot { position: fixed; inset: 0; z-index: 2000; background: #000; color: #c0c0c0; font-family: var(--mono); font-size: 15px; padding: 24px 18px; cursor: pointer; }
.boot[hidden] { display: none; }
.boot .line { white-space: pre; }
.boot .splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; background: #000; font-family: var(--ui); }
.boot .splash-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 28px; text-align: center; padding: 0 16px; }
.boot .splash-logo .px-icon { width: 48px; height: 48px; }
.boot .splash-logo sup { color: #ffb000; font-size: 18px; }
.boot .progress { width: min(260px, 70vw); height: 20px; box-shadow: var(--sunken); background: var(--face); padding: 3px; }
.boot .progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 12px, transparent 12px 14px); animation: fill 1s steps(14) forwards; }
@keyframes fill { to { width: 100%; } }
.boot .skip { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 12px; color: #666; font-family: var(--mono); }

.shutdown { position: fixed; inset: 0; z-index: 2000; background: #000; color: #ffb000; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 24px; cursor: pointer; font-weight: 700; }
.shutdown[hidden] { display: none; }
.shutdown small { display: block; margin-top: 18px; color: #666; font-size: 14px; font-weight: 400; }

.loading { color: #fff; text-align: center; padding: 40vh 0 0; font-size: 16px; }

/* ---------- Forms (mailing list + contact) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-intro { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.signup-row { display: flex; gap: 6px; }
.signup-row input { flex: 1; min-width: 0; }
.signup-row button { min-width: 0; flex: none; }
.form-done { display: flex; gap: 12px; align-items: center; background: #fff; box-shadow: var(--sunken); padding: 12px; font-size: 16px; }
.form-done .px-icon { width: 32px; height: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 6px; }
.mail-toolbar { display: flex; padding-bottom: 6px; margin-bottom: 2px; box-shadow: inset 0 -1px var(--shadow), 0 1px #fff; }
.mail-toolbar button { min-width: 0; }
.mail-toolbar .px-icon { width: 16px; height: 16px; }
.form-line { display: flex; align-items: center; gap: 8px; }
.form-line label { width: 62px; flex: none; font-size: 15px; }
.form-line input, .form-line select { flex: 1; min-width: 0; }
.contact-form textarea { font-family: var(--ui); font-size: 17.5px; min-height: 120px; }

/* ---------- Custom pages ---------- */
.page-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 2px 2px 10px; margin-bottom: 10px; box-shadow: 0 1px var(--shadow), 0 2px #fff; font-size: 16px; }
.page-brand-avatar { width: 44px; height: 44px; flex: none; background: #fff; box-shadow: var(--sunken); padding: 2px; display: block; }
.page-brand-avatar img, .page-brand-avatar .px-icon { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-brand > span:last-child { display: flex; flex-direction: column; }
.page-brand-handle { font-size: 14px; color: var(--navy); }
.page-body { display: flex; flex-direction: column; gap: 14px; }
.page-h { margin: 4px 0 0; font-size: 24px; line-height: 1.25; scroll-margin-top: 16px; }
.page-text .para { margin: 0 0 10px; font-size: 17.5px; line-height: 1.55; }
.page-text .para:last-child { margin-bottom: 0; }
.page-img { margin: 0; }
.page-img .frame { box-shadow: var(--sunken); background: #fff; padding: 3px; }
.page-img img { display: block; width: 100%; height: auto; }
.page-img figcaption { font-size: 14px; margin-top: 5px; text-align: center; }
.page-video { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--sunken); padding: 3px; }
.page-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.page-bullets { list-style: none; margin: 0; padding: 12px 12px 12px 10px; background: #fff; box-shadow: var(--sunken); display: flex; flex-direction: column; gap: 9px; font-size: 17.5px; line-height: 1.45; }
.page-bullets li { display: flex; gap: 10px; }
.page-bullets li::before { content: ''; flex: none; width: 12px; height: 12px; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23008000' d='M7 0H6v1H5v1H4v1H3v1H2V3H1V2H0v3h1v1h1v1h1V6h1V5h1V4h1V3h1V0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.page-btn { min-height: 56px; justify-content: center; text-align: center; }
.page-btn .link-text { align-items: center; }
.page-btn .link-title { font-size: 19.5px; }
.page-quote { margin: 0; background: #ffffe1; box-shadow: 0 0 0 1px #000; padding: 12px 14px; font-size: 16px; line-height: 1.55; }
.page-quote .para { margin: 0 0 8px; }
.page-quote cite { font-style: normal; font-weight: 700; font-size: 15px; }
.page-form { padding-top: 16px; }
.page-spacer { height: 10px; }

/* Tool reviews */
.review, .rv-main { display: flex; flex-direction: column; gap: 14px; }
/* Desktop: title across the top, the review on the left, the Verdict window on the right (stays in view). */
@media (min-width: 900px) {
  .desktop.wide-page { max-width: 980px; }
  .wide-page .rv-deck { max-width: 62ch; }
  .wide-page .review { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'head head' 'main side' 'note side'; gap: 14px 22px; }
  .wide-page .rv-head { grid-area: head; }
  .wide-page .rv-main { grid-area: main; }
  .wide-page .rv-cta { grid-area: side; align-self: start; position: sticky; top: 14px; }
  .wide-page .rv-main { max-width: 640px; }
  .wide-page .rv-note { grid-area: note; }
}
.rv-head { display: flex; flex-direction: column; gap: 6px; }
.rv-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.rv-kicker b { background: var(--navy); color: #fff; padding: 1px 6px; }
.rv-title { margin: 2px 0 0; font-size: 30px; line-height: 1.1; }
.rv-headline { margin: 0; font-size: 20.5px; font-weight: 700; line-height: 1.35; color: var(--navy); text-wrap: balance; }
.rv-deck { margin: 0; font-size: 16px; line-height: 1.5; }
.rv-group legend { font-weight: 700; }
.rv-benefits { list-style: none; margin: 0; padding: 4px 10px; background: #fff; box-shadow: var(--sunken); }
.rv-benefits li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; }
.rv-benefits li + li { border-top: 1px dotted var(--shadow); }
.rv-benefits p { margin: 0; font-size: 16px; line-height: 1.5; }
.rv-benefits b { display: block; font-size: 17.5px; }
.rv-num { flex: none; width: 24px; height: 24px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; margin-top: 1px; }
.rv-verdict .window-body { display: flex; flex-direction: column; gap: 10px; }
.rv-verdict-text .para { margin: 0; font-size: 18.5px; font-weight: 700; line-height: 1.45; }
.rv-facts { margin: 0; background: #fff; box-shadow: var(--sunken); padding: 4px 10px; }
.rv-fact { display: flex; gap: 10px; padding: 6px 0; font-size: 16px; line-height: 1.45; }
.rv-fact + .rv-fact { border-top: 1px dotted var(--shadow); }
.rv-fact dt { flex: none; width: 82px; font-weight: 700; }
.rv-fact dd { margin: 0; }
.rv-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: #404040; }
.rv-date { margin: 0; font-size: 14px; color: #404040; }

/* Button window: my rating, one line, the GO! button and who it's for. */
.rv-cta .window-body { display: flex; flex-direction: column; gap: 10px; }
.rv-cta-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-cta-text { margin: 0; font-size: 16px; line-height: 1.45; }
.rv-cta-fact { margin: 0; font-size: 14.5px; line-height: 1.45; }
.rv-stars { position: relative; display: inline-block; font-size: 17.5px; line-height: 1; letter-spacing: 1px; color: var(--shadow); white-space: nowrap; }
.rv-stars::before { content: '\2605\2605\2605\2605\2605'; }
.rv-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #c08000; }
.rv-stars-fill::before { content: '\2605\2605\2605\2605\2605'; }

/* Long-review sections: each heading is a little title bar on a group box. */
section.rv-group { box-shadow: inset -1px -1px #fff, inset 1px 1px var(--shadow), inset -2px -2px var(--shadow), inset 2px 2px #fff; padding: 2px 2px 12px; }
.rv-h { margin: 0 0 10px; padding: 4px 8px; background: linear-gradient(90deg, var(--navy), #1084d0); color: #fff; font-size: 17.5px; line-height: 1.35; }
.rv-box { display: flex; flex-direction: column; gap: 12px; padding: 0 10px; }
.rv-text a, .rv-list a, .rv-qa a, .rv-callout a, .rv-table a, .rv-steps a { color: var(--navy); }
.rv-list li { display: block; position: relative; padding-left: 22px; }
.rv-list li::before { position: absolute; left: 0; }
.rv-callout { background: #ffffe1; box-shadow: 0 0 0 1px #000; padding: 10px 12px; font-size: 16px; line-height: 1.5; }
.rv-callout-title { display: block; margin-bottom: 6px; }
.rv-callout p { margin: 0 0 6px; }
.rv-callout ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rv-steps { list-style: none; margin: 0; padding: 4px 10px; background: #fff; box-shadow: var(--sunken); }
.rv-steps li { display: flex; gap: 10px; padding: 9px 0; }
.rv-steps li + li { border-top: 1px dotted var(--shadow); }
.rv-steps b { display: block; font-size: 17.5px; }
.rv-steps p { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }
.rv-scores { margin: 0; padding: 10px 12px; background: #fff; box-shadow: var(--sunken); display: flex; flex-direction: column; gap: 8px; }
.rv-scores figcaption { font-weight: 700; }
.rv-score { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 15px; }
.rv-score-track { height: 14px; background: var(--face); box-shadow: var(--sunken); padding: 2px; }
.rv-score-fill { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 10px); }
.rv-score-num { font-weight: 700; text-align: right; }
.rv-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .rv-vs { grid-template-columns: 1fr; } }
.rv-vs-col { padding: 10px 12px; background: #fff; box-shadow: var(--sunken); }
.rv-vs-col > b { display: block; margin-bottom: 8px; }
.rv-vs-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.45; }
.rv-vs-col li { position: relative; padding-left: 20px; }
.rv-vs-col li::before { position: absolute; left: 0; font-weight: 700; }
.rv-vs-old li::before { content: '\2715'; color: #c00000; }
.rv-vs-new li::before { content: '\2713'; color: #008000; }
.rv-table { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-table figcaption { font-weight: 700; }
.rv-table-scroll { overflow-x: auto; background: #fff; box-shadow: var(--sunken); padding: 2px; }
.rv-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; min-width: 500px; }
.rv-table th, .rv-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px dotted var(--shadow); }
.rv-table thead th { background: var(--face); box-shadow: var(--btn); border-bottom: 0; font-weight: 700; }
.rv-table tr:last-child th, .rv-table tr:last-child td { border-bottom: 0; }
.rv-faq { display: flex; flex-direction: column; background: #fff; box-shadow: var(--sunken); padding: 2px 12px; }
.rv-qa { padding: 10px 0; }
.rv-qa + .rv-qa { border-top: 1px dotted var(--shadow); }
.rv-qa h3 { margin: 0 0 4px; font-size: 17.5px; }
.rv-qa .para { font-size: 16px; }

/* Phones: the slim button bar that takes the taskbar's place while reading. */
.taskbar { transition: transform 0.22s ease; }
.cta-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 510;
  height: calc(var(--taskbar-h) + env(safe-area-inset-bottom)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  background: var(--face); box-shadow: inset 0 1px var(--face), inset 0 2px #fff;
  transform: translateY(110%); transition: transform 0.22s ease;
}
.cta-dock-btn { width: 100%; height: 100%; min-height: 0; justify-content: center; gap: 10px; font-weight: 700; font-size: 17.5px; outline: 1px dotted #000; outline-offset: -5px; }
.cta-dock .badge { position: static; transform: none; animation: none; flex: none; }
body.dock-on .cta-dock { transform: none; }
body.dock-on .taskbar { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) { .taskbar, .cta-dock { transition: none; } }

/* The search-engine copy of a review, shown only until the page script draws the real one. */
.ssr-review, .ssr-home { background: var(--face); padding: 16px; font-size: 17.5px; line-height: 1.55; }
.status-link { color: var(--navy); text-decoration: underline; }
.notfound { min-height: 60vh; display: grid; place-items: center; }

/* ---------- In-app browser tip (Win95 help balloon) ---------- */
.balloon { position: relative; background: #ffffe1; box-shadow: 0 0 0 1px #000, 2px 2px 0 1px rgba(0, 0, 0, 0.35); padding: 10px 34px 10px 12px; font-size: 15px; line-height: 1.45; }
.balloon p { margin: 4px 0 0; }
.balloon button:not(.balloon-x) { margin-top: 8px; min-height: 30px; font-size: 15px; }
.balloon-x { position: absolute; top: 6px; right: 6px; min-width: 0; min-height: 0; width: 24px; height: 22px; padding: 0; font-size: 14px; }

/* ---------- Game ---------- */
.game-window { width: min(640px, 100%); }
.game-frame { box-shadow: var(--sunken); background: #fff; padding: 2px; }
.game-canvas { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.game-hint { font-size: 14px; margin: 8px 0 2px; }
#game-layer { background: rgba(0, 0, 0, 0.35); z-index: 900; }
body.game-open { overflow: hidden; }

/* ---------- Tap-to-toggle windows ---------- */
.desktop .title-bar[role=button] { cursor: pointer; }
.desktop .title-bar[role=button]:focus-visible { outline: 1px dotted #fff; outline-offset: -3px; }
.desktop .window.collapsed .title-bar-controls [aria-label=Minimize],
.desktop .window:not(.collapsed) .title-bar-controls [aria-label=Maximize] { display: none; }
.collapsed-hint {
  display: none; width: 100%; min-height: 0; margin-top: 3px; padding: 8px 10px;
  justify-content: space-between; align-items: center; gap: 10px; text-align: left;
  box-shadow: none; background: transparent; font-size: 15px;
}
.collapsed-hint:active { box-shadow: none; }
.window.collapsed .collapsed-hint { display: flex; }
.hint-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #202020; }
.hint-open { flex: none; font-size: 13px; color: var(--navy); text-decoration: underline; }

/* ---------- Link hubs ---------- */
.hub-intro { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.hub-intro .para { margin: 0 0 8px; }
.hub-intro .para:last-child { margin: 0; }
.tools { display: flex; flex-direction: column; gap: 12px; }
.tool { background: #fff; box-shadow: var(--sunken); padding: 12px; position: relative; }
.tool.featured-tool { outline: 1px dashed #000; outline-offset: -6px; }
.tool .badge { top: -6px; right: -2px; }
.tool-head { display: flex; align-items: center; gap: 12px; }
.tool-name { display: flex; flex-direction: column; min-width: 0; }
.tool-name b { font-size: 18.5px; line-height: 1.25; }
.tool-desc { font-size: 16px; line-height: 1.5; margin-top: 10px; }
.tool-desc .para { margin: 0 0 8px; }
.tool-desc .para:last-child { margin: 0; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-actions .btn { flex: 1; min-width: 130px; min-height: 42px; font-weight: 700; }
.tool-actions .link-arrow { width: 7px; height: 11px; }
.hub-empty { margin: 0; font-size: 15px; }

/* ---------- Social icons beside the name ---------- */
.name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.socials { display: flex; gap: 6px; }
.social { display: block; width: 28px; height: 28px; padding: 2px; }
.social .px-icon { width: 24px; height: 24px; display: block; }
.social:active { transform: translate(1px, 1px); }
.social:focus-visible { outline: 1px dotted #000; }

/* ---------- Flappy Dilly ---------- */
.game-window.flappy { width: min(360px, 100%); }
.flappy .game-frame { position: relative; }
.game-over { position: absolute; inset: 2px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); }
.game-over[hidden] { display: none; }
.game-over-box { background: var(--face); box-shadow: var(--raised); padding: 14px 16px; width: 82%; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.game-over-title { font-weight: 700; font-size: 21.5px; letter-spacing: 0.08em; }
.game-over-score { font-size: 17.5px; }
.game-over-score b { font-size: 30px; display: block; }
.game-over-best { font-size: 15px; margin-bottom: 4px; }
.game-cta { font-size: 15px; font-weight: 700; min-height: 40px; }

/* ---------- "See all tools" pop-up ---------- */
.tools-launcher .title-bar-controls [aria-label=Maximize] { display: inline-grid !important; }
#tools-layer { background: rgba(0, 0, 0, 0.45); z-index: 850; align-items: start; padding-top: max(16px, env(safe-area-inset-top)); overflow-y: auto; }
.tools-popup { width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.tools-popup > .window-body { overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.tools-popup-body { display: flex; flex-direction: column; gap: 14px; padding: 2px; }
.tools-popup .status-bar { flex: none; }
button.status-link { min-width: 0; min-height: 0; box-shadow: var(--status); background: transparent; padding: 3px 8px; font-size: 14px; }

/* iPhone Safari draws its toolbars see-through over the page. Solid strips behind the status bar
   and below the taskbar keep scrolling text from showing above or beneath them. */
html { background: var(--desktop); }
html::before { content: ''; position: fixed; left: 0; right: 0; top: 0; z-index: 600; height: env(safe-area-inset-top, 0px); background: var(--desktop); pointer-events: none; }
.taskbar::after, .cta-dock::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: var(--face); pointer-events: none; }

/* Buttons that jump down the same page (e.g. "Skip to the sign-up links" -> #get-set-up). */
.jump-arrow { display: inline-flex; transform: rotate(90deg); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
