/* Shared bits for the smaller pages: Starter, Skills, Memory, Certified, Learn, Contact, legal, 404. */
.phero .art.spin { align-items: center; }
.phero .art.spin img { height: 62%; animation: windup 6s cubic-bezier(.5, 0, .3, 1) infinite; transform-origin: 50% 50%; }
@keyframes windup { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-42deg); } 48% { transform: rotate(-34deg); } 62% { transform: rotate(-44deg); } 80% { transform: rotate(-4deg); } }
.phero .art.fan, .phero .art.bulb, .phero .art.book, .phero .art.medal, .phero .art.jarart, .phero .art.factory { align-items: center; }
/* Starter Engine: a little velvet wind-up robot, waddling along */
.phero .art.walk { align-items: center; }
.phero .art.walk img { height: 66%; transform-origin: 50% 96%; animation: waddle 1.5s ease-in-out infinite; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .45)); }
@keyframes waddle { 0%, 100% { transform: rotate(-4deg); } 25% { transform: translateY(-3%) rotate(0); } 50% { transform: rotate(4deg); } 75% { transform: translateY(-3%) rotate(0); } }
.phero .art.book img { height: 62%; filter: drop-shadow(0 0 60px rgba(255, 210, 120, .4)) drop-shadow(0 26px 24px rgba(0, 0, 0, .4)); animation: bookbob 5s ease-in-out infinite; }
@keyframes bookbob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4%) rotate(1deg); } }
.phero .art.factory img { height: 80%; }
.phero .art.fan img, .phero .art.bulb img, .phero .art.medal img, .phero .art.jarart img { height: 74%; }
.phero .art.bulb img { filter: drop-shadow(0 0 60px rgba(255, 210, 120, .55)); }
.phero.dark .art::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
.phero.dark .art { --halo: rgba(242, 181, 68, .35); }
.phero.dark .stars { opacity: .9; }

/* starter */
.dlcard { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 34px; display: grid; gap: 18px; justify-items: center; }
.dlcard .dl { margin-top: 4px; }
.inbox { margin: 26px auto 0; max-width: 560px; background: #fff; border-radius: var(--r-lg); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.inbox b { font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.inbox ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.inbox li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.inbox li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); flex: none; }

/* skills */
.nw { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 44px; }
.nw-copy { display: grid; gap: 16px; justify-items: start; }
.nw-ex { display: grid; gap: 14px; }
.nw-ex .ex { border-radius: var(--r-md); padding: 20px 22px; display: grid; gap: 10px; background: var(--paper); }
.nw-ex .ex p { font: 600 18px/1.45 var(--body); }
.nw-ex .ex.before p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(226, 85, 63, .5); }
.nw-ex .ex.after { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.nw-ex .tag { justify-self: start; }
.card .meta small { color: var(--muted); font-weight: 600; }
.card[data-dl] .dl { justify-self: start; }
.peanote { display: flex; align-items: center; gap: 22px; padding: 16px 30px 16px 16px; border-radius: var(--r-lg); background: var(--pea-paper); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s var(--pop); }
.peanote:hover { transform: translateY(-3px); }
.peanote img { height: 120px; width: auto; }
.peanote b { font: 800 24px/1.1 var(--display); letter-spacing: -.02em; color: #18201a; }
.peanote p { color: #56604f; }
.peanote .link { margin-left: auto; color: var(--pea); white-space: nowrap; }
@media (max-width: 860px) { .nw { grid-template-columns: 1fr; padding: 28px; } .peanote { flex-wrap: wrap; } .peanote .link { margin-left: 0; } }

/* learn */
.card.guide .tag { justify-self: start; }
.card.guide .link { margin-top: 6px; }
.card.guide.news { background: var(--ink); }
.card.guide.news h3, .card.guide.news p, .card.guide.news .link { color: #fff; }

/* certified (steps on night) */
.steps.dark .step { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--night-line); }
.steps.dark .step h3 { color: #fff; }
.steps.dark .step p { color: var(--night-muted); }
.steps.dark .step::before { background: var(--gold); color: var(--night); }

/* memory: the jar toy */
.jar-toy { max-width: 980px; margin: 0 auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 34px; display: grid; gap: 22px; }
.jar-form { display: flex; gap: 12px; flex-wrap: wrap; }
.jar-form input { flex: 1 1 280px; min-height: 58px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 24px; font: 500 17px/1 var(--body); background: var(--paper); color: var(--ink); }
.jar-stage { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; }
.jar-glass { position: relative; height: 290px; display: flex; align-items: flex-end; justify-content: center; }
.jar-glass img { height: 100%; width: auto; position: relative; z-index: 2; filter: drop-shadow(0 20px 26px rgba(40, 30, 15, .2)); }
.jar-stars { position: absolute; z-index: 3; left: 22%; right: 22%; top: 34%; bottom: 10%; pointer-events: none; }
.jar-stars i { position: absolute; width: 30px; height: 30px; margin: -15px; background: radial-gradient(closest-side, #fff7d6, #f2b544 55%, rgba(242, 181, 68, 0)); border-radius: 50%; animation: starin .9s var(--pop) both; }
@keyframes starin { 0% { transform: translateY(-140px) scale(.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.jar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; min-height: 120px; }
.jar-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--accent-tint); font-weight: 700; animation: arrive .5s var(--pop) both; }
.jar-list li::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: radial-gradient(closest-side, #fff7d6, #f2b544); box-shadow: 0 0 10px rgba(242, 181, 68, .8); }
.jar-list li.empty { background: none; color: var(--muted); font-weight: 600; }
.jar-list li.empty::before { display: none; }
.jar-list .back { font-weight: 800; color: var(--ink); }
@media (max-width: 760px) { .jar-stage { grid-template-columns: 1fr; } .jar-glass { height: 220px; } .jar-toy { padding: 22px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; }
.contact-side { display: grid; gap: 18px; align-content: start; }
.cs { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; justify-items: start; }
.cs img { height: 90px; width: auto; }
.cs b { font: 800 22px/1.1 var(--display); letter-spacing: -.02em; }
.cs p { color: var(--muted); }
.cs.pea { background: var(--pea-paper); }
.cs.pea .link { color: var(--pea); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* legal */
.prose { display: grid; gap: 14px; }
.prose h2 { font-size: 28px; letter-spacing: -.03em; margin-top: 22px; }
.prose p { color: var(--muted); font-size: 17px; }
.prose a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent-fill); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); font-size: 17px; }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--accent-fill-2); }
.prose .short { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 30px 28px; display: grid; gap: 12px; margin: 6px 0 4px; }
.prose .short h2 { margin-top: 0; font-size: 22px; }
.prose .short ul { color: var(--ink); }
.prose.legal h2 { scroll-margin-top: 100px; }
@media (max-width: 600px) { .prose .short { padding: 22px 20px 24px; } .prose h2 { font-size: 24px; } }

/* 404 */
.lost { width: 280px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); animation: sniff404 1.2s ease-in-out infinite; }
@keyframes sniff404 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px) rotate(1deg); } }
.phero .copy .row.center { justify-content: center; }

/* memory: one memory, every app */
.mem-map { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 10px; max-width: 1040px; margin: 0 auto 40px; padding: 34px; border-radius: var(--r-xl); background: var(--night); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mem-map .apps { display: grid; gap: 14px; }
.mem-map .app { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--night-line); color: #fff; font-weight: 700; font-size: 16px; }
.mem-map .app svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.mem-map .app img { width: 40px; height: 40px; object-fit: contain; flex: none; margin: -8px -2px -8px -6px; }
.mem-map .flow { position: relative; height: 180px; }
.mem-map .flow i { position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(242, 181, 68, .7) 0 10px, transparent 10px 20px); background-size: 40px 2px; animation: memflow 1.4s linear infinite; }
.mem-map .flow i:nth-child(1) { top: 18%; transform: rotate(8deg); }
.mem-map .flow i:nth-child(2) { top: 50%; }
.mem-map .flow i:nth-child(3) { top: 82%; transform: rotate(-8deg); }
@keyframes memflow { to { background-position: 40px 0; } }
.mem-map .vault { display: grid; justify-items: center; gap: 6px; text-align: center; color: #fff; }
.mem-map .vault img { height: 150px; width: auto; filter: drop-shadow(0 0 40px rgba(242, 181, 68, .45)); animation: idle 4.2s ease-in-out infinite; }
.mem-map .vault b { font: 800 20px/1.1 var(--display); letter-spacing: -.02em; }
.mem-map .vault small { color: var(--night-muted); font-size: 14px; }
.mem-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mp { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.mp h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
.mp p { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .mem-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .mem-map { grid-template-columns: 1fr; padding: 22px; } .mem-map .flow { height: 70px; transform: rotate(90deg); width: 70px; margin: 0 auto; } .mem-points { grid-template-columns: 1fr; } }
/* Round 5 (JJ, 12 Oct: no jar): memory is a folder on your computer, so it's drawn as one */
.mem-map .app::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(242, 181, 68, .8); }
.fold { position: relative; display: block; width: 250px; height: 210px; }
.fold .f-back { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; border-radius: 8px 24px 24px 24px; background: linear-gradient(180deg, #e9a52c, #cf8714); }
.fold .f-back::before { content: ""; position: absolute; left: 0; top: -24px; width: 44%; height: 32px; border-radius: 16px 16px 0 0; background: #e9a52c; }
.fold .f-front { position: absolute; z-index: 4; left: -6px; right: -6px; bottom: 0; height: 60%; border-radius: 20px; background: linear-gradient(180deg, #f9cd6a, #efad37); box-shadow: 0 -8px 20px rgba(120, 70, 0, .2), 0 26px 30px -18px rgba(70, 45, 10, .5); display: flex; align-items: flex-end; padding: 18px 20px; }
.fold .f-front b { font: 800 19px/1 var(--display); letter-spacing: -.02em; color: #3b2706; }
.jar-glass.fold { height: 230px; width: 260px; margin: 0 auto; align-self: center; }
.jar-glass.fold .jar-stars { z-index: 3; left: 8%; right: 8%; top: 6%; bottom: 40%; }
.fold.sm { width: 150px; height: 124px; }
.fold.sm .f-back::before { top: -16px; height: 22px; }
.fold.sm .f-glow { position: absolute; z-index: 3; left: 18%; right: 18%; top: 4%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, #fff4cf, rgba(242, 181, 68, .6) 45%, rgba(242, 181, 68, 0)); animation: fglow 3.4s ease-in-out infinite; }
@keyframes fglow { 0%, 100% { opacity: .55; transform: translateY(4px) scale(.94); } 50% { opacity: 1; transform: translateY(-4px) scale(1.04); } }
.mem-map .vault .fold { margin-bottom: 10px; filter: drop-shadow(0 0 40px rgba(242, 181, 68, .35)); }
@media (max-width: 760px) { .jar-glass.fold { height: 200px; width: 230px; } }
