/* Porjaijaa section restyles (plan 008, phase 4). Shared components carry plain
   hook classes (community-*); only Porjaijaa turns them into stationery. */

/* ── Community: living room ─────────────────────────────────────────── */
html[data-site="porjaijaa"] .community-composer { background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .community-composer:hover { box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 8px 20px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .community-composer > span { color: var(--pj-muted-ink); }

html[data-site="porjaijaa"] .community-chips { padding: 4px 0 6px; }
html[data-site="porjaijaa"] .community-chip { color: var(--pj-ink); background: var(--pj-cream); border-color: var(--pj-line); font-weight: 500; }
html[data-site="porjaijaa"] .community-chip:hover { background: var(--pj-sage-soft); color: var(--pj-ink); }
html[data-site="porjaijaa"] .community-chip[aria-pressed="true"] { color: #fdfbf7; background: var(--pj-moss); border-color: var(--pj-moss); box-shadow: 0 3px 0 var(--pj-shadow-sage); }

html[data-site="porjaijaa"] .community-feed > * + * { margin-top: 30px; }
html[data-site="porjaijaa"] .community-post-card { position: relative; padding: 24px 26px 16px; background: var(--pj-grain), linear-gradient(transparent 29px, rgb(125 147 166 / 14%) 30px) 0 14px / 100% 30px, var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); transition: transform .18s, box-shadow .18s; }
html[data-site="porjaijaa"] .community-post-card:hover { background-color: var(--pj-cream); transform: translateY(-2px); box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 10px 22px rgb(71 57 45 / 12%); }
/* Washi tape on top of every note, in a gentle colour rotation. */
html[data-site="porjaijaa"] .community-post-card::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; transform: translateX(-50%) rotate(-3deg); opacity: .92; box-shadow: 0 1px 2px rgb(71 57 45 / 12%); background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); }
html[data-site="porjaijaa"] .community-feed > .community-post-card:nth-child(4n + 2)::before { background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(178 201 164 / 92%); transform: translateX(-50%) rotate(2deg); }
html[data-site="porjaijaa"] .community-feed > .community-post-card:nth-child(4n + 3)::before { background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(242 230 189 / 95%); transform: translateX(-50%) rotate(-1deg); }
html[data-site="porjaijaa"] .community-feed > .community-post-card:nth-child(4n + 4)::before { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0) 0 5px, rgb(255 255 255 / 45%) 5px 10px), repeating-linear-gradient(90deg, rgb(127 158 115 / 62%) 0 5px, rgb(127 158 115 / 30%) 5px 10px); transform: translateX(-50%) rotate(3deg); }
/* Pinned posts get a paper clip instead of tape. */
html[data-site="porjaijaa"] .community-post-card[data-pinned]::before { top: -14px; left: auto; right: 26px; width: 18px; height: 48px; transform: none; opacity: 1; background: none; border: 2.5px solid #a7b0a4; border-radius: 10px; box-shadow: none; }
html[data-site="porjaijaa"] .community-post-card h3 { font-family: var(--pj-hand); font-weight: 400; font-size: 30px; line-height: 1.35; padding-top: .1em; }
html[data-site="porjaijaa"] .community-post-card .rounded-lg { border-radius: 4px; }
html[data-site="porjaijaa"] .community-post-card img { border: 6px solid #fff; box-shadow: 0 2px 6px rgb(71 57 45 / 14%); }

html[data-site="porjaijaa"] .community-more { background: var(--pj-cream); border: 1.5px dashed var(--pj-sage-line); border-radius: 999px; color: var(--pj-moss); }
html[data-site="porjaijaa"] .community-empty { background: var(--pj-grain), var(--pj-cream); border: 1.5px dashed var(--pj-sage-line); border-radius: 6px; }

/* Right column becomes the cork pin board by the front door. */
html[data-site="porjaijaa"] .community-side { position: relative; gap: 24px; margin-top: 58px; padding: 30px 20px 24px; border: 9px solid #cfdcc3; border-radius: 10px; background: var(--pj-grain), radial-gradient(circle at 20% 30%, rgb(255 255 255 / 25%) 0 1px, transparent 2px) 0 0 / 7px 7px, radial-gradient(circle at 70% 60%, rgb(120 100 70 / 18%) 0 1px, transparent 2px) 0 0 / 9px 9px, var(--pj-cork); box-shadow: inset 0 1px 6px rgb(61 50 30 / 18%), 0 6px 16px rgb(71 57 45 / 10%); }
html[data-site="porjaijaa"] .community-side::before { content: "บอร์ดหน้าบ้าน ✿"; position: absolute; left: 0; top: -58px; padding-top: .25em; line-height: 1.5; white-space: nowrap; font-family: var(--pj-hand); font-size: 22px; color: var(--pj-ink); }
html[data-site="porjaijaa"] .community-about-card,
html[data-site="porjaijaa"] .community-leaders-card { position: relative; overflow: visible; color: #47392d; border: 0; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 16%); }
html[data-site="porjaijaa"] .community-about-card { padding: 10px 10px 0; background: var(--pj-grain), #e2ebda; transform: rotate(-1.5deg); }
html[data-site="porjaijaa"] .community-leaders-card { background: var(--pj-grain), #f2e6bd; transform: rotate(1.5deg); }
html[data-site="porjaijaa"] .community-about-card::before,
html[data-site="porjaijaa"] .community-leaders-card::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #d9877a; box-shadow: 1px 3px 3px rgb(71 57 45 / 30%); }
html[data-site="porjaijaa"] .community-leaders-card::before { background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #7d8a4e; }
html[data-site="porjaijaa"] .community-about-card > div:first-child { border: 7px solid #fff; border-bottom-width: 7px; box-shadow: 0 2px 5px rgb(71 57 45 / 14%); }
html[data-site="porjaijaa"] .community-about-card h2,
html[data-site="porjaijaa"] .community-leaders-card h3 { font-family: var(--pj-hand); font-weight: 400; font-size: 20px; color: #47392d; }
html[data-site="porjaijaa"] .community-about-card p,
html[data-site="porjaijaa"] .community-about-card span,
html[data-site="porjaijaa"] .community-leaders-card span,
html[data-site="porjaijaa"] .community-leaders-card button { color: #5d5146; }
html[data-site="porjaijaa"] .community-about-card .border-t { border-color: rgb(71 57 45 / 18%); }

/* ── Learning: library ─────────────────────────────────────────────── */
html[data-site="porjaijaa"] .course-card { position: relative; overflow: visible; padding: 10px 10px 2px; background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); transition: transform .18s, box-shadow .18s; }
html[data-site="porjaijaa"] .course-card:nth-child(odd) { transform: rotate(-.6deg); }
html[data-site="porjaijaa"] .course-card:nth-child(even) { transform: rotate(.6deg); }
html[data-site="porjaijaa"] .course-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 10px 22px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .course-card::before { content: ""; position: absolute; z-index: 2; top: -11px; left: 50%; width: 88px; height: 22px; transform: translateX(-50%) rotate(-3deg); opacity: .92; background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(178 201 164 / 92%); box-shadow: 0 1px 2px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .course-card:nth-child(3n + 2)::before { background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); }
html[data-site="porjaijaa"] .course-card:nth-child(3n + 3)::before { background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(242 230 189 / 95%); }
html[data-site="porjaijaa"] .course-card-cover { overflow: hidden; border: 6px solid #fff; border-radius: 2px; background: #e2ebda; box-shadow: 0 2px 6px rgb(71 57 45 / 14%); }
html[data-site="porjaijaa"] .course-card-cover svg { color: #8fa585; }
html[data-site="porjaijaa"] .course-card h3 { font-family: var(--pj-hand); font-weight: 400; font-size: 19px; line-height: 1.35; }
html[data-site="porjaijaa"] .courses-empty { background: var(--pj-grain), var(--pj-cream); border: 1.5px dashed var(--pj-sage-line); border-radius: 6px; }
html[data-site="porjaijaa"].dark .course-card { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .course-card-cover { border-color: #e9ece4; background: #33402f; }

/* ── Playground: playroom ──────────────────────────────────────────── */
/* Section heroes (playground garden, shop sticker arch) become a cork pin board. */
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden,
html[data-site="porjaijaa"] .porjaijaa-shell .shop-hero-stickers { border: 9px solid #cfdcc3; border-radius: 10px; box-shadow: inset 0 1px 6px rgb(61 50 30 / 18%), 0 6px 16px rgb(71 57 45 / 10%); background: var(--pj-grain), radial-gradient(circle at 20% 30%, rgb(255 255 255 / 25%) 0 1px, transparent 2px) 0 0 / 7px 7px, radial-gradient(circle at 70% 60%, rgb(120 100 70 / 18%) 0 1px, transparent 2px) 0 0 / 9px 9px, var(--pj-cork); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden::before,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden::after,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-orbit { display: none; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-cat { position: relative; z-index: 1; padding: 10px 10px 40px; background: #fff; box-shadow: 0 4px 10px rgb(71 57 45 / 18%); transform: rotate(-3deg); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-cat::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #d9877a; box-shadow: 1px 3px 3px rgb(71 57 45 / 30%); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-caption { color: #47392d; }
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-garden-caption { color: #eee8da; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-label { color: #47392d; background: #f2e6bd; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 14%); transform: rotate(2deg); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-hero::before { color: #6b4a44; background: #e8cfca; border: 0; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 14%); }

/* Quiz and experience cards, coming-soon cards, notes: taped paper. */
html[data-site="porjaijaa"] .porjaijaa-shell .pg-feature,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-managed-tile,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-coming-card { position: relative; overflow: visible; background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-feature::before,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-managed-tile::before,
html[data-site="porjaijaa"] .porjaijaa-shell .pg-coming-card::before { content: ""; position: absolute; z-index: 3; top: -11px; left: 50%; width: 92px; height: 22px; transform: translateX(-50%) rotate(-3deg); opacity: .92; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0) 0 5px, rgb(255 255 255 / 45%) 5px 10px), repeating-linear-gradient(90deg, rgb(127 158 115 / 62%) 0 5px, rgb(127 158 115 / 30%) 5px 10px); box-shadow: 0 1px 2px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-coming-card::after { display: none; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-coming-tarot::before { background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); transform: translateX(-50%) rotate(2deg); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-feature-art { background: #e2ebda; border-radius: 4px; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-note { color: #47392d; background: var(--pj-grain), #e2ebda; border: 0; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 14%); transform: rotate(-.6deg); }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-note p { color: #5d5146; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-sticker { border-color: #fdfbf7; }

/* ── Shop: little shop by the door ──────────────────────────────────── */
html[data-site="porjaijaa"] .porjaijaa-shell .shop-hero h1 em { color: var(--pj-moss); }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-hero-bag { color: #4f6a46; }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card { position: relative; overflow: visible; padding: 10px 10px 0; background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 10px 22px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card::before { content: ""; position: absolute; z-index: 3; top: -11px; left: 50%; width: 88px; height: 22px; transform: translateX(-50%) rotate(-3deg); opacity: .92; background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); box-shadow: 0 1px 2px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card-art { overflow: hidden; border: 6px solid #fff; border-radius: 2px; background: #e2ebda; box-shadow: 0 2px 6px rgb(71 57 45 / 14%); }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card-mark { color: #8fa585; }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-card h3 { font-family: var(--pj-hand); font-weight: 400; }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-empty { background: var(--pj-grain), var(--pj-cream); border: 1.5px dashed var(--pj-sage-line); border-radius: 6px; }
html[data-site="porjaijaa"] .porjaijaa-shell .shop-empty > span { color: #8fa585; }

/* Commissions: the status header is a letter with a wax seal. */
html[data-site="porjaijaa"] .porjaijaa-shell .commission-status { background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-status::after { content: "L"; position: absolute; right: 30px; top: 50%; margin-top: -29px; width: 58px; height: 58px; display: grid; place-items: center; color: #f6dcd5; font-family: var(--pj-label); font-size: 22px; border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%; background: radial-gradient(circle at 35% 30%, #cf6a5f, var(--pj-wax) 55%, #8d332c); box-shadow: 0 2px 5px rgb(0 0 0 / 22%); }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-status-open { border-left: 6px solid var(--pj-moss); }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-status-waitlist { border-left: 6px solid #d9b44a; }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-status-closed { border-left: 6px solid #b9b2a4; }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-offer,
html[data-site="porjaijaa"] .porjaijaa-shell .commission-details > div { background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-offer img { border: 6px solid #fff; }
html[data-site="porjaijaa"] .porjaijaa-shell .commission-price { color: var(--pj-wax); }
@media (max-width: 760px) {
  html[data-site="porjaijaa"] .porjaijaa-shell .commission-status::after { top: auto; bottom: -16px; right: 16px; margin: 0; width: 46px; height: 46px; }
}

/* Dark versions of the section pieces */
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-garden,
html[data-site="porjaijaa"].dark .porjaijaa-shell .shop-hero-stickers { border-color: #39413a; }
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-feature,
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-managed-tile,
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-coming-card,
html[data-site="porjaijaa"].dark .porjaijaa-shell .shop-card,
html[data-site="porjaijaa"].dark .porjaijaa-shell .commission-status,
html[data-site="porjaijaa"].dark .porjaijaa-shell .commission-offer,
html[data-site="porjaijaa"].dark .porjaijaa-shell .commission-details > div { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .porjaijaa-shell .pg-feature-art,
html[data-site="porjaijaa"].dark .porjaijaa-shell .shop-card-art { background: #33402f; border-color: #e9ece4; }

/* ── Portfolio & resume: Porjai's studio (plan 008, phase 4d) ───────── */
html[data-site="porjaijaa"] .porjai .porjai-hero { position: relative; background: var(--pj-grain), var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjai .porjai-hero::before { content: ""; position: absolute; top: -8px; left: -22px; width: 96px; height: 24px; transform: rotate(-38deg); opacity: .92; background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); box-shadow: 0 1px 2px rgb(71 57 45 / 12%); }
html[data-site="porjaijaa"] .porjai .porjai-avatar { border: 8px solid #fff; border-bottom-width: 26px; border-radius: 2px; box-shadow: 0 4px 10px rgb(71 57 45 / 18%); transform: rotate(-3deg); }
html[data-site="porjaijaa"] .porjai .porjai-tagline,
html[data-site="porjaijaa"] .porjai .porjai-place { color: var(--pj-moss); }
html[data-site="porjaijaa"] .porjai .porjai-draft { color: #47392d; background: var(--pj-grain), #f2e6bd; border: 0; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 14%); }
/* Gallery pieces are pinned polaroids. */
html[data-site="porjaijaa"] .porjai .porjai-gallery li { position: relative; }
html[data-site="porjaijaa"] .porjai .porjai-gallery li:nth-child(odd) { transform: rotate(-1deg); }
html[data-site="porjaijaa"] .porjai .porjai-gallery li:nth-child(even) { transform: rotate(1deg); }
html[data-site="porjaijaa"] .porjai .porjai-gallery li::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #d9877a; box-shadow: 1px 3px 3px rgb(71 57 45 / 30%); }
html[data-site="porjaijaa"] .porjai .porjai-gallery li:nth-child(3n + 2)::before { background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #7d8a4e; }
html[data-site="porjaijaa"] .porjai .porjai-gallery li:nth-child(3n + 3)::before { background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #9fb4c7; }
html[data-site="porjaijaa"] .porjai .porjai-gallery button { padding: 9px 9px 0; background: #fff; border: 0; border-radius: 2px; box-shadow: 0 4px 10px rgb(71 57 45 / 16%); }
html[data-site="porjaijaa"] .porjai .porjai-gallery img { border-bottom: 0; }
html[data-site="porjaijaa"] .porjai .porjai-piece-caption strong { font-family: var(--pj-hand); font-weight: 400; font-size: 17px; color: #47392d; }
/* Resume is a lined sheet with a paper clip and a timeline of crayon dots. */
html[data-site="porjaijaa"] .porjai .porjai-resume { position: relative; background: var(--pj-grain), linear-gradient(transparent 29px, rgb(125 147 166 / 14%) 30px) 0 14px / 100% 30px, var(--pj-cream); border: 0; border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .porjai .porjai-resume::before { content: ""; position: absolute; top: -14px; right: 40px; width: 18px; height: 48px; border: 2.5px solid #a7b0a4; border-radius: 10px; }
html[data-site="porjaijaa"] .porjai .porjai-entries { border-left-color: var(--pj-sage-line); }
html[data-site="porjaijaa"] .porjai .porjai-entries > li::before { border-color: var(--pj-moss); background: #e2ebda; }
html[data-site="porjaijaa"].dark .porjai .porjai-hero,
html[data-site="porjaijaa"].dark .porjai .porjai-resume { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .porjai .porjai-resume { background: var(--pj-grain), linear-gradient(transparent 29px, rgb(238 232 218 / 6%) 30px) 0 14px / 100% 30px, var(--pj-cream); }
html[data-site="porjaijaa"].dark .porjai .porjai-avatar,
html[data-site="porjaijaa"].dark .porjai .porjai-gallery button { border-color: #e9ece4; background: #e9ece4; }

@media print {
  html[data-site="porjaijaa"] .porjai .porjai-resume,
  html[data-site="porjaijaa"].dark .porjai .porjai-resume { background: #fff !important; box-shadow: none !important; }
  html[data-site="porjaijaa"] .porjai .porjai-resume::before { display: none; }
  html[data-site="porjaijaa"] .porjai .porjai-avatar { transform: none; box-shadow: none; }
}

/* ── Cat tribe game (Mom's "Which Cat Are You?") ────────────────────── */
html[data-site="porjaijaa"] .pg-cat-player { max-width: 980px; padding-top: 24px; padding-bottom: 50px; }
html[data-site="porjaijaa"] .pg-cat-scene { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px 34px; align-items: start; margin-top: 22px; }
html[data-site="porjaijaa"] .pg-cat-picture,
html[data-site="porjaijaa"] .pg-cat-tribe-picture { position: relative; margin: 0; padding: 10px 10px 36px; background: #fff; box-shadow: 0 4px 12px rgb(71 57 45 / 18%); transform: rotate(-2deg); }
html[data-site="porjaijaa"] .pg-cat-picture::before,
html[data-site="porjaijaa"] .pg-cat-tribe-picture::before { content: ""; position: absolute; z-index: 2; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff9 0 18%, transparent 20%), #d9877a; box-shadow: 1px 3px 3px rgb(71 57 45 / 30%); }
html[data-site="porjaijaa"] .pg-cat-picture img,
html[data-site="porjaijaa"] .pg-cat-tribe-picture img,
html[data-site="porjaijaa"] .pg-cat-picture-empty { display: grid; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
html[data-site="porjaijaa"] .pg-cat-story { position: relative; padding: 26px 28px 22px; background: var(--pj-grain), linear-gradient(transparent 29px, rgb(125 147 166 / 14%) 30px) 0 14px / 100% 30px, var(--pj-cream); border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .pg-cat-story .pg-eyebrow { margin-bottom: 6px; }
html[data-site="porjaijaa"] .pg-cat-story h1 { margin: 0 0 10px; font-family: var(--pj-hand); font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.3; }
html[data-site="porjaijaa"] .pg-cat-story p:not(.pg-eyebrow) { font-size: 15.5px; line-height: 1.95; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-cat-choices { grid-column: 1 / -1; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
html[data-site="porjaijaa"] .pg-cat-choices legend { margin-bottom: 10px; font-family: var(--pj-hand); font-size: 22px; }
html[data-site="porjaijaa"] .pg-cat-choices label { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.7; background: var(--pj-cream); border: 1.5px solid var(--pj-line); border-radius: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
html[data-site="porjaijaa"] .pg-cat-choices label:hover { background: var(--pj-sage-soft); transform: translateX(3px); }
html[data-site="porjaijaa"] .pg-cat-choices label.selected { background: var(--pj-sage-soft); border-color: var(--pj-moss); box-shadow: 0 3px 0 var(--pj-shadow-sage); }
html[data-site="porjaijaa"] .pg-cat-choices input { position: absolute; opacity: 0; pointer-events: none; }
html[data-site="porjaijaa"] .pg-cat-choices label:has(input:focus-visible) { outline: 3px solid #9b6333; outline-offset: 3px; }
html[data-site="porjaijaa"] .pg-cat-choices label > .pg-cat-letter { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; font-family: var(--pj-label); font-size: 14px; color: var(--pj-moss); background: #fdfbf7; border: 1.5px solid var(--pj-sage-line); border-radius: 50%; }
html[data-site="porjaijaa"] .pg-cat-choices label.selected > .pg-cat-letter { color: #fdfbf7; background: var(--pj-moss); border-color: var(--pj-moss); }
html[data-site="porjaijaa"] .pg-cat-scene .pg-player-actions { grid-column: 1 / -1; }

html[data-site="porjaijaa"] .pg-cat-result { max-width: 980px; padding-top: 28px; padding-bottom: 60px; }
html[data-site="porjaijaa"] .pg-cat-ending { max-width: 760px; margin: 6px 0 26px; font-size: 16px; line-height: 2; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-cat-reveal { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 34px; padding: 30px 34px; background: var(--pj-grain), var(--pj-cream); border-left: 6px solid var(--tribe, var(--pj-moss)); border-radius: 6px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 6px 16px rgb(71 57 45 / 8%); }
html[data-site="porjaijaa"] .pg-cat-label { font-size: 14px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-cat-reveal h1 { margin: 4px 0 10px; font-family: var(--pj-hand); font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.25; color: var(--tribe, var(--pj-ink)); }
html[data-site="porjaijaa"] .pg-cat-secondary { font-size: 15px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-cat-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-bottom: 32px; }
html[data-site="porjaijaa"] .pg-cat-sections article { position: relative; padding: 20px 22px 18px; color: #47392d; background: var(--pj-grain), #f2e6bd; border-radius: 2px; box-shadow: 0 4px 8px rgb(71 57 45 / 14%); }
html[data-site="porjaijaa"] .pg-cat-sections article:nth-child(2) { background: var(--pj-grain), #e2ebda; transform: rotate(.8deg); }
html[data-site="porjaijaa"] .pg-cat-sections article:nth-child(3) { background: var(--pj-grain), #e8cfca; transform: rotate(-.8deg); }
html[data-site="porjaijaa"] .pg-cat-sections article:nth-child(4) { background: var(--pj-grain), #dfe6ec; }
html[data-site="porjaijaa"] .pg-cat-sections h2 { margin: 0 0 6px; font-family: var(--pj-hand); font-size: 21px; font-weight: 400; }
html[data-site="porjaijaa"] .pg-cat-sections p { font-size: 14.5px; line-height: 1.9; color: #5d5146; }
html[data-site="porjaijaa"] .pg-cat-counts { display: grid; gap: 8px; max-width: 620px; margin-bottom: 18px; }
html[data-site="porjaijaa"] .pg-cat-counts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr) 28px; align-items: center; gap: 12px; font-size: 14px; }
html[data-site="porjaijaa"] .pg-cat-counts i { display: block; height: 10px; background: var(--pj-paper-2); border: 1px solid var(--pj-line); border-radius: 999px; overflow: hidden; }
html[data-site="porjaijaa"] .pg-cat-counts b { display: block; height: 100%; border-radius: 999px; }
html[data-site="porjaijaa"] .pg-cat-counts strong { text-align: right; font-family: var(--pj-label); }
@media (max-width: 760px) {
  html[data-site="porjaijaa"] .pg-cat-scene,
  html[data-site="porjaijaa"] .pg-cat-reveal,
  html[data-site="porjaijaa"] .pg-cat-sections { grid-template-columns: minmax(0, 1fr); }
  html[data-site="porjaijaa"] .pg-cat-reveal { padding: 24px 20px; }
  html[data-site="porjaijaa"] .pg-cat-picture { max-width: 420px; }
  html[data-site="porjaijaa"] .pg-cat-counts > div { grid-template-columns: 100px minmax(0, 1fr) 24px; }
}
html[data-site="porjaijaa"].dark .pg-cat-story,
html[data-site="porjaijaa"].dark .pg-cat-reveal { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .pg-cat-story { background: var(--pj-grain), linear-gradient(transparent 29px, rgb(238 232 218 / 6%) 30px) 0 14px / 100% 30px, var(--pj-cream); }
html[data-site="porjaijaa"].dark .pg-cat-picture,
html[data-site="porjaijaa"].dark .pg-cat-tribe-picture { background: #e9ece4; }
html[data-site="porjaijaa"].dark .pg-cat-choices label > .pg-cat-letter { background: #2b312a; }
html[data-site="porjaijaa"].dark .pg-cat-choices label.selected > .pg-cat-letter { color: #20251f; background: #9fbf8f; border-color: #9fbf8f; }
html[data-site="porjaijaa"].dark .pg-cat-reveal h1 { filter: brightness(1.5); }

/* Dark: the paper is dusk, notes and board stay paper-light. */
html[data-site="porjaijaa"].dark .community-post-card { background: var(--pj-grain), linear-gradient(transparent 29px, rgb(238 232 218 / 6%) 30px) 0 14px / 100% 30px, var(--pj-cream); box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .community-composer,
html[data-site="porjaijaa"].dark .community-empty { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .community-chip[aria-pressed="true"] { color: #20251f; background: #9fbf8f; border-color: #9fbf8f; box-shadow: 0 3px 0 #141813; }
html[data-site="porjaijaa"].dark .community-side { border-color: #39413a; }
html[data-site="porjaijaa"].dark .community-side::before { color: var(--pj-ink); }

/* Lazly's daily tarot (plan 009): a face-down card that flips into a polaroid, a reading note, a sticky for today. */
html[data-site="porjaijaa"] .pg-tarot { padding-top: 18px; padding-bottom: 56px; }
html[data-site="porjaijaa"] .pg-tarot-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 30px; }
html[data-site="porjaijaa"] .pg-tarot-title h1 { display: inline-block; margin: 4px 0 6px; font-family: var(--pj-hand); font-size: clamp(32px, 4vw, 44px); font-weight: 400; line-height: 1.25; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-tarot-title p:not(.pj-kicker) { max-width: 540px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-tarot-date { font-family: var(--pj-label); font-size: 15px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-tarot-stage { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 34px 48px; align-items: start; }
html[data-site="porjaijaa"] .pg-tarot-card-wrap { perspective: 1400px; }
html[data-site="porjaijaa"] .pg-tarot-card { position: relative; width: 300px; aspect-ratio: 2 / 3.3; transform-style: preserve-3d; }
html[data-site="porjaijaa"] .pg-tarot-card.is-animated { transition: transform .8s cubic-bezier(.3, .7, .3, 1); }
html[data-site="porjaijaa"] .pg-tarot-card.is-flipped { transform: rotateY(180deg) rotate(2deg); }
html[data-site="porjaijaa"] .pg-tarot-face { position: absolute; inset: 0; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgb(71 57 45 / 22%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
html[data-site="porjaijaa"] .pg-tarot-front { display: flex; flex-direction: column; transform: rotateY(180deg); }
html[data-site="porjaijaa"] .pg-tarot-back-inner { position: relative; display: grid; place-items: center; height: 100%; overflow: hidden; border: 2px dashed rgb(253 251 247 / 55%); border-radius: 8px; background: repeating-linear-gradient(45deg, rgb(255 255 255 / 0) 0 10px, rgb(255 255 255 / 12%) 10px 20px), radial-gradient(circle at 50% 40%, #6f8a63, #4f6a46); }
html[data-site="porjaijaa"] .pg-tarot-back-picture { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
html[data-site="porjaijaa"] .pg-tarot-moon { position: absolute; top: 22%; font-size: 64px; line-height: 1; color: #ecd890; text-shadow: 0 2px 0 rgb(0 0 0 / 12%); }
html[data-site="porjaijaa"] .pg-tarot-spark { position: absolute; }
html[data-site="porjaijaa"] .pg-tarot-spark-a { width: 22px; left: 22px; top: 24px; }
html[data-site="porjaijaa"] .pg-tarot-spark-b { width: 18px; right: 24px; bottom: 30px; }
html[data-site="porjaijaa"] .pg-tarot-seal { position: absolute; bottom: 20%; width: 52px; height: 52px; font-size: 20px; }
html[data-site="porjaijaa"] .pg-tarot-numeral { position: absolute; z-index: 1; top: 20px; left: 22px; padding: 0 8px; font-family: var(--pj-label); font-size: 15px; color: #7a6c5e; background: rgb(255 255 255 / 85%); border-radius: 6px; }
html[data-site="porjaijaa"] .pg-tarot-art { flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 6px; }
html[data-site="porjaijaa"] .pg-tarot-art img,
html[data-site="porjaijaa"] .pg-tarot-art-empty { display: grid; width: 100%; height: 100%; object-fit: cover; }
html[data-site="porjaijaa"] .pg-tarot-card-name { margin-top: 10px; text-align: center; font-family: var(--pj-hand); font-size: 28px; line-height: 1.2; color: #47392d; }
html[data-site="porjaijaa"] .pg-tarot-card-en { text-align: center; font-family: var(--pj-label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #6b5e51; }
html[data-site="porjaijaa"] .pg-tarot-deco { position: absolute; pointer-events: none; }
html[data-site="porjaijaa"] .pg-tarot-deco-star { width: 30px; right: 30px; top: -12px; }
html[data-site="porjaijaa"] .pg-tarot-deco-reading { width: 26px; right: 24px; top: -14px; z-index: 3; }
html[data-site="porjaijaa"] .pg-tarot-draw,
html[data-site="porjaijaa"] .pg-tarot-reading { position: relative; display: grid; gap: 18px; align-content: start; }
html[data-site="porjaijaa"] .pg-tarot-draw h2 { margin: 0; font-family: var(--pj-hand); font-size: clamp(26px, 3vw, 32px); font-weight: 400; line-height: 1.3; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-tarot-draw > p { color: var(--pj-muted-ink); line-height: 1.85; }
html[data-site="porjaijaa"] .pg-tarot-disclaimer { max-width: 560px; margin-top: 10px; transform: rotate(-1deg); }
html[data-site="porjaijaa"] .pg-tarot-disclaimer strong,
html[data-site="porjaijaa"] .pg-tarot-today strong { display: block; font-family: var(--pj-hand); font-size: 19px; font-weight: 400; }
html[data-site="porjaijaa"] .pg-tarot-disclaimer p { margin-top: 4px; font-size: 14px; line-height: 1.85; color: #5d5146; }
html[data-site="porjaijaa"] .pg-tarot-reading { animation: pg-tarot-in .5s .45s both ease-out; }
html[data-site="porjaijaa"] .pg-tarot-note { padding: 26px 28px 22px; }
html[data-site="porjaijaa"] .pg-tarot-note h2 { display: inline-block; margin: 2px 0 0; font-family: var(--pj-hand); font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.3; color: var(--pj-ink); outline: none; }
html[data-site="porjaijaa"] .pg-tarot-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; padding: 0; list-style: none; }
html[data-site="porjaijaa"] .pg-tarot-keywords li { padding: 3px 12px; font-size: 13.5px; color: var(--pj-ink); background: var(--pj-sage-soft); border: 1px solid var(--pj-shadow-sage); border-radius: 999px; }
html[data-site="porjaijaa"] .pg-tarot-lazly { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; line-height: 1.95; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-tarot-avatar { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; font-size: 22px; color: var(--pj-moss); background: var(--pj-sage-soft); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--pj-line); }
html[data-site="porjaijaa"] .pg-tarot-today { transform: rotate(1deg); }
html[data-site="porjaijaa"] .pg-tarot-today p { margin-top: 2px; font-size: 15px; line-height: 1.8; }
html[data-site="porjaijaa"] .pg-tarot-fine { font-size: 12.5px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-tarot-comeback { font-size: 14px; color: var(--pj-muted-ink); }
@keyframes pg-tarot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html[data-site="porjaijaa"] .pg-tarot-card.is-animated { transition: none; }
  html[data-site="porjaijaa"] .pg-tarot-reading { animation: none; }
}
@media (max-width: 760px) {
  html[data-site="porjaijaa"] .pg-tarot-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  html[data-site="porjaijaa"] .pg-tarot-card-wrap { display: flex; justify-content: center; width: 100%; }
  html[data-site="porjaijaa"] .pg-tarot-card { width: min(250px, 100%); }
  html[data-site="porjaijaa"] .pg-tarot-draw,
  html[data-site="porjaijaa"] .pg-tarot-reading { width: 100%; }
  html[data-site="porjaijaa"] .pg-tarot-note { padding: 22px 18px 18px; }
}
html[data-site="porjaijaa"].dark .pg-tarot-note { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .pg-tarot-face { background: #e9ece4; box-shadow: 0 10px 24px rgb(0 0 0 / 40%); }
html[data-site="porjaijaa"].dark .pg-tarot-avatar { border-color: #2b312a; }
html[data-site="porjaijaa"] .pg-tarot-entry { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
html[data-site="porjaijaa"] .pg-tarot-entry:hover { transform: translateY(-3px); box-shadow: 7px 11px 0 rgb(102 90 70 / 14%); }
html[data-site="porjaijaa"] .pg-tarot-entry:focus-visible { outline: 3px solid #9b6333; outline-offset: 4px; }
html[data-site="porjaijaa"] .pg-tarot-entry .pg-tag { position: relative; z-index: 1; width: max-content; }
html[data-site="porjaijaa"] .pg-tarot-entry .pg-text-link { position: relative; z-index: 1; width: max-content; margin-top: auto; padding-top: 22px; }
html[data-site="porjaijaa"] .pg-tarot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: var(--pj-muted-ink); }

/* Tarot extras: the link row under the daily card, and the three-card spread. */
html[data-site="porjaijaa"] .pg-tarot-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px; margin-top: 46px; }
html[data-site="porjaijaa"] .pg-tarot-more-card { display: grid; gap: 8px; align-content: start; padding: 26px 24px 22px; color: var(--pj-ink); text-decoration: none; transition: transform .15s; }
html[data-site="porjaijaa"] .pg-tarot-more-card:hover { transform: translateY(-3px); }
html[data-site="porjaijaa"] .pg-tarot-more-card:focus-visible { outline: 3px solid #9b6333; outline-offset: 4px; }
html[data-site="porjaijaa"] .pg-tarot-more-card .pg-tag { width: max-content; }
html[data-site="porjaijaa"] .pg-tarot-more-card strong { font-family: var(--pj-hand); font-size: 26px; font-weight: 400; line-height: 1.3; }
html[data-site="porjaijaa"] .pg-tarot-more-card > span:not(.pg-tag):not(.pg-text-link):not(.pj-tape) { font-size: 14.5px; line-height: 1.8; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-tarot-more-card .pg-text-link { width: max-content; margin-top: 6px; }
html[data-site="porjaijaa"] .pg-spread-gate { display: grid; gap: 12px; max-width: 640px; padding: 30px 30px 24px; }
html[data-site="porjaijaa"] .pg-spread-gate h2 { margin: 0; font-family: var(--pj-hand); font-size: 30px; font-weight: 400; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-spread-gate p { line-height: 1.85; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-spread-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
html[data-site="porjaijaa"] .pg-spread-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 28px; align-items: start; }
html[data-site="porjaijaa"] .pg-spread-slot { display: grid; gap: 10px; }
html[data-site="porjaijaa"] .pg-spread-intro { min-height: 3.4em; font-size: 14px; line-height: 1.7; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-spread-card { position: relative; display: flex; flex-direction: column; width: min(100%, 240px); aspect-ratio: 2 / 3.3; margin: 10px auto 6px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 8px 20px rgb(71 57 45 / 20%); }
html[data-site="porjaijaa"] .pg-spread-slot:nth-child(1) .pg-spread-card { transform: rotate(-2deg); }
html[data-site="porjaijaa"] .pg-spread-slot:nth-child(3) .pg-spread-card { transform: rotate(2deg); }
html[data-site="porjaijaa"] .pg-spread-card figcaption { display: grid; }
html[data-site="porjaijaa"] .pg-spread-card .pg-tarot-card-name { font-size: 24px; }
html[data-site="porjaijaa"] .pg-spread-card .pg-tarot-card-en { font-size: 12.5px; }
html[data-site="porjaijaa"] .pg-spread-card .pg-tarot-numeral { top: 18px; left: 18px; }
html[data-site="porjaijaa"] .pg-spread-note { padding: 18px 18px 16px; }
html[data-site="porjaijaa"] .pg-spread-note h2 { margin: 0; font-family: var(--pj-hand); font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-spread-note .pg-tarot-keywords { margin: 10px 0 8px; }
html[data-site="porjaijaa"] .pg-spread-note p { font-size: 14.5px; line-height: 1.9; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-spread-today { max-width: 720px; margin: 34px 0 14px; }
html[data-site="porjaijaa"] .pg-spread-back { margin-top: 26px; }
@media (max-width: 860px) {
  html[data-site="porjaijaa"] .pg-spread-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-site="porjaijaa"] .pg-spread-intro { min-height: 0; }
}
html[data-site="porjaijaa"].dark .pg-spread-card { background: #e9ece4; box-shadow: 0 8px 20px rgb(0 0 0 / 40%); }
html[data-site="porjaijaa"].dark .pg-spread-note,
html[data-site="porjaijaa"].dark .pg-spread-gate,
html[data-site="porjaijaa"].dark .pg-tarot-more-card { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"] .pg-diary-list { display: grid; gap: 18px; max-width: 820px; margin: 0; padding: 0; list-style: none; }
html[data-site="porjaijaa"] .pg-diary-entry { padding: 18px 22px 14px; }
html[data-site="porjaijaa"] .pg-diary-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-family: var(--pj-label); font-size: 14px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-diary-card { border-top: 1px dashed var(--pj-line); }
html[data-site="porjaijaa"] .pg-diary-card:first-of-type { border-top: 0; }
html[data-site="porjaijaa"] .pg-diary-card summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; cursor: pointer; list-style-position: inside; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-diary-card summary strong { font-family: var(--pj-hand); font-size: 21px; font-weight: 400; }
html[data-site="porjaijaa"] .pg-diary-position { font-size: 13.5px; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .pg-diary-keywords { font-size: 13.5px; color: #5f7a55; }
html[data-site="porjaijaa"] .pg-diary-card p { padding: 0 0 10px; font-size: 14.5px; line-height: 1.9; color: var(--pj-ink); }
html[data-site="porjaijaa"] .pg-diary-fine { margin-top: 22px; }
html[data-site="porjaijaa"].dark .pg-diary-entry { box-shadow: 0 0 0 1px #343e37, 0 8px 18px rgb(0 0 0 / 35%); }
html[data-site="porjaijaa"].dark .pg-diary-keywords { color: #9fbf8f; }

/* Cat game polish: the photo is pinned on the right, each scene drifts in like a
   new page, and the chosen card gets a crayon heart and a trail of paw prints. */
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-picture { transform: rotate(2deg); }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-story { animation: pg-scene-page .5s ease-out backwards; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-picture { animation: pg-scene-photo .65s .1s cubic-bezier(.3, 1.35, .5, 1) backwards; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label { animation: pg-scene-choice .4s ease-out backwards; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label:nth-of-type(1) { animation-delay: .22s; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label:nth-of-type(2) { animation-delay: .28s; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label:nth-of-type(3) { animation-delay: .34s; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label:nth-of-type(4) { animation-delay: .4s; }
html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label:nth-of-type(5) { animation-delay: .46s; }
@keyframes pg-scene-page { from { opacity: 0; transform: translateX(-18px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
@keyframes pg-scene-photo { from { opacity: 0; transform: translateY(-26px) rotate(9deg) scale(.96); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes pg-scene-choice { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

html[data-site="porjaijaa"] .pg-cat-choices label > .pg-cat-letter { position: relative; }
html[data-site="porjaijaa"] .pg-cat-choices label > .pg-cat-letter b { position: relative; z-index: 1; font-weight: 400; }
html[data-site="porjaijaa"] .pg-cat-choices label.selected > .pg-cat-letter { color: #6b2f27; background: transparent; border-color: transparent; }
html[data-site="porjaijaa"] .pg-cat-heart { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; animation: pg-heart-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
html[data-site="porjaijaa"] .pg-cat-heart path { fill: #eab0a4; stroke: #b5574a; stroke-width: 1.7; stroke-linejoin: round; }
@keyframes pg-heart-pop { from { transform: scale(.3) rotate(-14deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }

html[data-site="porjaijaa"] .pg-cat-choices label.selected { padding-right: 116px; }
html[data-site="porjaijaa"] .pg-cat-paws { position: absolute; right: 16px; top: 50%; display: flex; align-items: center; gap: 6px; margin-top: -12px; pointer-events: none; }
html[data-site="porjaijaa"] .pg-cat-paws svg { width: 26px; height: 26px; fill: var(--pj-moss); opacity: 0; animation: pg-paw-step .35s ease-out both; }
html[data-site="porjaijaa"] .pg-cat-paws svg:nth-child(1) { width: 20px; height: 20px; transform: rotate(70deg) translateY(5px); animation-delay: .1s; fill: #8fb57f; }
html[data-site="porjaijaa"] .pg-cat-paws svg:nth-child(2) { width: 23px; height: 23px; transform: rotate(100deg) translateY(-5px); animation-delay: .25s; fill: #dd9282; }
html[data-site="porjaijaa"] .pg-cat-paws svg:nth-child(3) { transform: rotate(78deg) translateY(3px); animation-delay: .4s; }
@keyframes pg-paw-step { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@media (max-width: 600px) {
  html[data-site="porjaijaa"] .pg-cat-choices label.selected { padding-right: 70px; }
  html[data-site="porjaijaa"] .pg-cat-paws { right: 10px; gap: 3px; }
  html[data-site="porjaijaa"] .pg-cat-paws svg { width: 20px; height: 20px; }
  html[data-site="porjaijaa"] .pg-cat-paws svg:nth-child(1) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-story,
  html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-picture,
  html[data-site="porjaijaa"] .pg-cat-scene .pg-cat-choices label,
  html[data-site="porjaijaa"] .pg-cat-heart,
  html[data-site="porjaijaa"] .pg-cat-paws svg { animation: none; }
  html[data-site="porjaijaa"] .pg-cat-paws svg { opacity: 1; }
}
html[data-site="porjaijaa"].dark .pg-cat-choices label.selected > .pg-cat-letter { color: #6b2f27; background: transparent; border-color: transparent; }
html[data-site="porjaijaa"].dark .pg-cat-paws svg:nth-child(3) { fill: #9fbf8f; }

/* The cat game's journey map (progress bar). */
html[data-site="porjaijaa"] .pg-map-wrap { margin: 6px 0 4px; }
html[data-site="porjaijaa"] .pg-map { display: block; width: 100%; max-width: none; height: auto; max-height: none; overflow: visible; }
html[data-site="porjaijaa"] .pg-map-phone { display: none; }
@media (max-width: 640px) {
  html[data-site="porjaijaa"] .pg-map-wide { display: none; }
  html[data-site="porjaijaa"] .pg-map-phone { display: block; }
}
html[data-site="porjaijaa"] .pg-map-paper { fill: #f8f2dc; stroke: #d9c9a3; stroke-width: 1.5; stroke-dasharray: 2 5; }
html[data-site="porjaijaa"] .pg-map-river { fill: none; stroke: #b9d3e0; stroke-width: 9; stroke-linecap: round; opacity: .8; }
html[data-site="porjaijaa"] .pg-map-tree path { fill: #7fa070; }
html[data-site="porjaijaa"] .pg-map-tree rect { fill: #8a6a4f; }
html[data-site="porjaijaa"] .pg-map-road-edge { fill: none; stroke: #c9b8de; stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
html[data-site="porjaijaa"] .pg-map-road { fill: none; stroke: #e6dcef; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
html[data-site="porjaijaa"] .pg-map-road-dash { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 6 7; stroke-linecap: round; }
html[data-site="porjaijaa"] .pg-map-stop { stroke-width: 2; transition: r .3s, fill .3s; }
html[data-site="porjaijaa"] .pg-map-stop-done { fill: #e9a23b; stroke: #9a6420; }
html[data-site="porjaijaa"] .pg-map-stop-here { fill: #fff; stroke: #c0392b; stroke-width: 3; }
html[data-site="porjaijaa"] .pg-map-stop-ahead { fill: #fffaf0; stroke: #c4ad86; }
html[data-site="porjaijaa"] .pg-map-ring { fill: rgb(255 255 255 / 45%); stroke: #c0392b; stroke-width: 1.8; stroke-dasharray: 7 5; }
html[data-site="porjaijaa"] .pg-map-label { fill: #b0261c; font-family: var(--pj-hand); font-weight: 700; }
html[data-site="porjaijaa"] .pg-map-sub { fill: #b0261c; font-family: var(--pj-label); letter-spacing: .06em; }
html[data-site="porjaijaa"] .pg-map-lantern path { fill: none; stroke: #9a6420; stroke-width: 2; stroke-linecap: round; }
html[data-site="porjaijaa"] .pg-map-lantern ellipse { fill: #f3b84c; stroke: #c0392b; stroke-width: 1.8; }
html[data-site="porjaijaa"] .pg-map-cat { transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
html[data-site="porjaijaa"] .pg-map-cat-body { animation: pg-map-hop 1.6s ease-in-out infinite; }
@keyframes pg-map-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  html[data-site="porjaijaa"] .pg-map-cat { transition: none; }
  html[data-site="porjaijaa"] .pg-map-cat-body { animation: none; }
}
html[data-site="porjaijaa"].dark .pg-map-paper { fill: #2f3a2c; stroke: #55624d; }
html[data-site="porjaijaa"].dark .pg-map-road { stroke: #4b4a5e; }
html[data-site="porjaijaa"].dark .pg-map-road-edge { stroke: #3b3a4c; }
html[data-site="porjaijaa"].dark .pg-map-stop-ahead { fill: #2b312a; stroke: #7c8a70; }
html[data-site="porjaijaa"].dark .pg-map-ring { fill: rgb(0 0 0 / 15%); stroke: #e88a7e; }
html[data-site="porjaijaa"].dark .pg-map-label,
html[data-site="porjaijaa"].dark .pg-map-sub { fill: #f0a196; }

/* Uploaded card art is a whole 2:3 card, so show all of it instead of cropping. */
html[data-site="porjaijaa"] .pg-tarot-art:has(img) { flex: none; aspect-ratio: 2 / 3; background: #e2ebda; }
html[data-site="porjaijaa"] .pg-tarot-art img { object-fit: contain; }
html[data-site="porjaijaa"] :is(.pg-tarot-front, .pg-spread-card):has(img) .pg-tarot-card-name { margin-top: 4px; font-size: 21px; }
html[data-site="porjaijaa"] :is(.pg-tarot-front, .pg-spread-card):has(img) .pg-tarot-card-en { font-size: 11.5px; }
html[data-site="porjaijaa"] .pg-spread-card:has(img) .pg-tarot-card-name { font-size: 18px; }

/* Community board card (right column): bigger, roomier text. */
html[data-site="porjaijaa"] .community-about-card h2 { font-size: 20px; line-height: 1.4; }
html[data-site="porjaijaa"] .community-about-card p { font-size: 15.5px; line-height: 1.85; }
html[data-site="porjaijaa"] .community-about-card h2 + p { font-size: 13px; }
html[data-site="porjaijaa"] .community-about-card .flex-col > span:first-child { font-size: 19px; }
html[data-site="porjaijaa"] .community-about-card .flex-col > span:last-child { font-size: 13.5px; }
html[data-site="porjaijaa"] .community-side .community-about-card { overflow-wrap: anywhere; }

/* A single post photo: whole picture at its own shape (never cropped) in a polaroid with washi tape. */
html[data-site="porjaijaa"] .community-post-card .community-post-photo { position: relative; width: fit-content; max-width: 100%; margin: 26px auto 28px; overflow: visible; background: none; rotate: -.8deg; }
html[data-site="porjaijaa"] .community-feed > .community-post-card:nth-child(even) .community-post-photo { rotate: .8deg; }
html[data-site="porjaijaa"] .community-post-card .community-post-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; background: #fff; border: 10px solid #fff; border-bottom-width: 30px; border-radius: 3px; box-shadow: 0 1px 0 rgb(71 57 45 / 6%), 0 8px 18px rgb(71 57 45 / 16%); }
html[data-site="porjaijaa"] .community-post-card .community-post-photo::before,
html[data-site="porjaijaa"] .community-post-card .community-post-photo::after { content: ""; position: absolute; z-index: 1; top: -9px; width: 64px; height: 20px; opacity: .9; box-shadow: 0 1px 2px rgb(71 57 45 / 12%); background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(232 207 202 / 92%); }
html[data-site="porjaijaa"] .community-post-card .community-post-photo::before { left: -14px; rotate: -32deg; }
html[data-site="porjaijaa"] .community-post-card .community-post-photo::after { right: -14px; rotate: 32deg; background: radial-gradient(circle, rgb(255 255 255 / 85%) 1.6px, transparent 2px) 0 0 / 9px 9px, rgb(178 201 164 / 92%); }
html[data-site="porjaijaa"].dark .community-post-card .community-post-photo img { background: #f4efe6; border-color: #f4efe6; }

/* Post titles get a soft green highlighter stroke (wraps nicely across two lines). */
html[data-site="porjaijaa"] .community-post-title-mark { padding: 0 .2em; margin: 0 -.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: .35em .15em .4em .2em; background: linear-gradient(100deg, transparent .2em, rgb(190 222 160 / 75%) .3em, rgb(178 214 150 / 70%) 60%, rgb(190 222 160 / 55%) calc(100% - .3em), transparent calc(100% - .15em)) 0 62% / 100% 52% no-repeat; }
html[data-site="porjaijaa"].dark .community-post-title-mark { background-image: linear-gradient(100deg, transparent .2em, rgb(96 128 78 / 70%) .3em, rgb(88 120 72 / 65%) 60%, rgb(96 128 78 / 50%) calc(100% - .3em), transparent calc(100% - .15em)); }

/* Phones: the board sits above the feed (the side column is hidden there). */
html[data-site="porjaijaa"] .community-side-phone { margin-top: 64px; margin-bottom: 18px; }
/* The end of the feed: a clover and a note from Lazly. */
html[data-site="porjaijaa"] .community-end { display: grid; justify-items: center; gap: 6px; margin: 34px auto 12px; max-width: 420px; padding: 0 12px; text-align: center; color: var(--pj-muted-ink); }
html[data-site="porjaijaa"] .community-end-clover { width: 40px; height: 40px; color: #7f9e73; rotate: -12deg; animation: pj-clover-sway 3.4s ease-in-out infinite alternate; }
html[data-site="porjaijaa"] .community-end p { font-size: 15px; line-height: 1.7; }
html[data-site="porjaijaa"] .community-end span { font-family: var(--pj-hand); font-size: 18px; color: var(--pj-ink); }
@keyframes pj-clover-sway { from { rotate: -14deg; } to { rotate: 8deg; } }
@media (prefers-reduced-motion: reduce) { html[data-site="porjaijaa"] .community-end-clover { animation: none; } }

/* Phones: two course cards per row. */
@media (max-width: 767px) {
  html[data-site="porjaijaa"] .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-site="porjaijaa"] .course-grid .course-card > div:last-child { padding: 10px 10px 12px; }
  html[data-site="porjaijaa"] .course-grid .course-card h3 { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html[data-site="porjaijaa"] .course-grid .course-card p { display: none; }
  html[data-site="porjaijaa"] .course-grid .course-card .course-card-cover svg { width: 36px; height: 36px; }
}

/* "My space" number cards: a soft tint in the bottom-right corner tells them apart,
   and the big number gets its own line height so it doesn't sit on the label. */
html[data-site="porjaijaa"] .dash-stat { --dash-tint: rgb(150 180 210 / 30%); background: radial-gradient(circle at 100% 100%, var(--dash-tint) 0 34%, transparent 62%), var(--pj-cream); }
html[data-site="porjaijaa"] .dash-stat-spent { --dash-tint: rgb(160 200 140 / 34%); }
html[data-site="porjaijaa"] .dash-stat-learn { --dash-tint: rgb(232 180 172 / 34%); }
html[data-site="porjaijaa"] .dash-stat [data-slot="card-content"] > div:first-child { line-height: 1.25; margin-bottom: 6px; }
html[data-site="porjaijaa"] .dash-stat [data-slot="card-content"] > p { line-height: 1.4; }
@media (max-width: 767px) {
  html[data-site="porjaijaa"] .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html[data-site="porjaijaa"] .dash-stat { gap: 4px; padding-block: 12px; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-header"] { padding-inline: 10px; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-header"] svg { display: none; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-title"] { font-size: 12px; line-height: 1.35; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-content"] { padding-inline: 10px; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-content"] > div:first-child { font-size: 18px; overflow-wrap: anywhere; }
  html[data-site="porjaijaa"] .dash-stat [data-slot="card-content"] > p { font-size: 10.5px; }
}

/* Other quizzes: the quiz name is the big text on the card. */
html[data-site="porjaijaa"] .pg-managed-tile h3 { font-family: var(--pj-hand); font-size: 30px; font-weight: 400; line-height: 1.35; padding-top: .1em; }
@media (max-width: 700px) { html[data-site="porjaijaa"] .pg-managed-tile h3 { font-size: 22px; } }

/* Playground hero: room between the caption at the top and the pinned picture. */
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden { min-height: 520px; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-caption { top: 26px; }
html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-cat { margin-top: 120px; margin-bottom: 40px; }
@media (max-width: 760px) {
  html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden { min-height: 420px; }
  html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-caption { top: 20px; }
  html[data-site="porjaijaa"] .porjaijaa-shell .pg-garden-cat { margin-top: 96px; }
}
