/* PIKZEA — bright, rounded and moving: easy to read for children, few words, big pictures. One stylesheet for the
   portal pages, the account pages, the admin page and the games' common header. Motion stops for visitors who
   ask their system for reduced motion. */
:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #222033;
  --dim: #6b6880;
  --line: #e3e5ef;
  --red: #ff3d5a;
  --orange: #ff8a1f;
  --yellow: #ffc61a;
  --green: #18c27a;
  --blue: #2f8cff;
  --purple: #8d5cff;
  --pink: #f2559e;
  --accent: var(--red);
  --ok: #10a35f;
  --bad: #e5243f;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(34, 32, 51, 0.08);
  --shadow-up: 0 14px 32px rgba(34, 32, 51, 0.16);
  --wide: 1180px;
  --font: 'M PLUS Rounded 1c', system-ui, -apple-system, 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.75; font-weight: 500; }
a { color: var(--blue); }
img, video { max-width: 100%; height: auto; display: block; }
code { background: #eef0f7; padding: 1px 6px; border-radius: 6px; }
ruby rt { font-size: 0.5em; font-weight: 500; color: var(--dim); }
.pz-pixel { image-rendering: pixelated; }
.pz-i { width: 1.2em; height: 1.2em; flex: none; }
.pz-skip { position: absolute; left: -999px; }
.pz-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 20; }

/* ---------- header / footer ---------- */
.pz-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px max(16px, calc((100% - var(--wide)) / 2)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(34, 32, 51, 0.06); }

.pz-nav { flex: 1; display: flex; gap: 6px; min-width: 0; }
.pz-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; transition: background 0.2s, transform 0.2s; }
.pz-nav a:hover { background: #fff0f2; color: var(--red); transform: translateY(-2px); }
.pz-langs { display: flex; background: #eef0f7; border-radius: 999px; padding: 3px; }
.pz-langs a { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--dim); text-decoration: none; white-space: nowrap; }
.pz-langs a[aria-current='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
#pz-account a { display: inline-block; white-space: nowrap; padding: 7px 16px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: 0 4px 12px rgba(255, 61, 90, 0.35); transition: transform 0.2s; }
#pz-account a:hover { transform: translateY(-2px) scale(1.03); }
#pz-account a.pz-admin-link { margin-left: 8px; background: #2d2a4a; box-shadow: 0 4px 12px rgba(45, 42, 74, 0.35); }
@media (max-width: 720px) {
  .pz-header { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .pz-logo { font-size: 20px; }
  .pz-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .pz-nav a { padding: 5px 12px; }
  .pz-langs { margin-left: auto; }
  .pz-langs a { padding: 2px 8px; font-size: 12px; }
  #pz-account a { padding: 5px 12px; font-size: 13px; }
}
main { max-width: var(--wide); margin: 0 auto; padding: 18px 16px 56px; }
.pz-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.pz-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 16px 34px; text-align: center; color: var(--dim); font-size: 13px; }
.pz-footer nav { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.pz-footer a { color: var(--dim); }
.pz-footer p { margin: 0; }

/* ---------- headings ---------- */
h1, h2, h3 { line-height: 1.4; font-weight: 800; }
h1 { font-size: clamp(26px, 4.4vw, 40px); margin: 10px 0 12px; }
h2 { font-size: clamp(20px, 2.8vw, 26px); margin: 0; }
.pz-title { display: flex; align-items: center; gap: 10px; }
.pz-h-icon { color: var(--red); width: 1.1em; height: 1.1em; }
.pz-lead { color: var(--dim); font-size: 17px; margin: 0 0 10px; }
.pz-crumbs { font-size: 13px; color: var(--dim); margin: 2px 0 10px; }
.pz-crumbs a { color: var(--dim); }
.pz-section { margin: 44px 0 0; }
.pz-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pz-section-head h2 { display: flex; align-items: center; gap: 10px; }
.pz-more { font-weight: 800; text-decoration: none; color: var(--blue); white-space: nowrap; }

/* ---------- buttons, chips, badges ---------- */
.pz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font-family: inherit; font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #c71f3c, 0 10px 20px rgba(255, 61, 90, 0.3); transition: transform 0.12s, box-shadow 0.12s; }
.pz-btn:hover { color: #fff; transform: translateY(-2px); }
.pz-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c71f3c; }
.pz-btn .pz-i { width: 1.1em; height: 1.1em; }
.pz-btn-big { font-size: 24px; padding: 16px 40px; animation: pz-pulse 2.4s ease-in-out infinite; }
@keyframes pz-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pz-chip { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; color: #fff; background: var(--dim); }
.pz-chip.red, .pz-genre.red, .pz-genre-dot.red { background: var(--red); }
.pz-chip.blue, .pz-genre.blue, .pz-genre-dot.blue { background: var(--blue); }
.pz-chip.green, .pz-genre.green, .pz-genre-dot.green { background: var(--green); }
.pz-chip.purple, .pz-genre.purple, .pz-genre-dot.purple { background: var(--purple); }
.pz-chip.yellow, .pz-genre.yellow, .pz-genre-dot.yellow { background: var(--orange); }
.pz-chip.pink, .pz-genre.pink, .pz-genre-dot.pink { background: var(--pink); }
.pz-chip ruby rt, .pz-genre ruby rt { color: #fff; }
.pz-genre-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.pz-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: #4a3200; font-weight: 800; font-size: 13px; vertical-align: middle; }

/* ---------- home carousel ---------- */
.pz-carousel { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: var(--shadow-up); background: #fff; }
.pz-slides { display: flex; transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1); }
.pz-slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 7; min-height: 300px; overflow: hidden; }
.pz-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pz-slide-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 4vw, 44px); background: linear-gradient(180deg, transparent, rgba(20, 16, 40, 0.75)); color: #fff; }
.pz-slide-body h1, .pz-slide-body h2 { margin: 0 0 4px; font-size: clamp(26px, 4.4vw, 46px); text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3); }
.pz-slide-body p { margin: 0 0 14px; font-size: clamp(14px, 1.8vw, 18px); max-width: 640px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.pz-slide-body ruby rt { color: #fff; }
.pz-slide-welcome { background: linear-gradient(120deg, #ff5f7c, #ff9c3c 35%, #ffd23f 60%, #3ccf8e 85%, #3d9bff); background-size: 300% 300%; animation: pz-sky 14s ease infinite; }
.pz-slide-welcome .pz-slide-body { top: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: none; }
.pz-slide-welcome h1 { font-size: clamp(40px, 8vw, 86px); letter-spacing: 2px; animation: pz-bounce 2.6s ease-in-out infinite; }
.pz-slide-welcome .pz-btn { background: #fff; color: var(--red); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15); }
@keyframes pz-sky {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pz-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.pz-bubbles i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.28); animation: pz-float 9s ease-in-out infinite; }
.pz-bubbles i:nth-child(1) { width: 120px; height: 120px; left: 6%; top: 12%; }
.pz-bubbles i:nth-child(2) { width: 60px; height: 60px; left: 22%; top: 64%; animation-delay: -2s; }
.pz-bubbles i:nth-child(3) { width: 180px; height: 180px; right: 8%; top: 8%; animation-delay: -4s; }
.pz-bubbles i:nth-child(4) { width: 40px; height: 40px; right: 26%; top: 70%; animation-delay: -1s; }
.pz-bubbles i:nth-child(5) { width: 80px; height: 80px; left: 46%; top: 6%; animation-delay: -6s; border-radius: 24px; }
.pz-bubbles i:nth-child(6) { width: 50px; height: 50px; right: 44%; bottom: 8%; animation-delay: -3s; border-radius: 14px; }
@keyframes pz-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(12deg); }
}
.pz-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.pz-arrow.prev { left: 12px; }
.pz-arrow.next { right: 12px; }
.pz-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.pz-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.6); cursor: pointer; transition: width 0.3s, background 0.3s; padding: 0; }
.pz-dots button[aria-current='true'] { width: 28px; background: #fff; }
@media (max-width: 640px) {
  .pz-slide { aspect-ratio: 4 / 5; min-height: 0; }
  .pz-arrow { display: none; }
}

/* ---------- game cards ---------- */
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.pz-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(230px, 280px); overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; }
.pz-row > li { scroll-snap-align: start; }
.pz-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 10px 10px 14px; border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.25s; }
.pz-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-up); color: var(--ink); }
.pz-card-img { position: relative; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.pz-card-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.4s; }
.pz-card:hover .pz-card-img img { transform: scale(1.06); }
.pz-card-img .pz-badge { position: absolute; left: 10px; top: 10px; }
.pz-card-play { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); transform: scale(0.9); transition: transform 0.25s; }
.pz-card:hover .pz-card-play { transform: scale(1.1); }
.pz-card-title { font-weight: 800; font-size: 18px; padding: 0 4px; }
.pz-card .pz-chips { padding: 0 4px; margin: 0; }
.pz-empty { color: var(--dim); padding: 18px 0; }

/* ---------- genres, promises ---------- */
.pz-genres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pz-genre { display: grid; place-items: center; aspect-ratio: 1.6; border-radius: var(--radius); color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); position: relative; overflow: hidden; }
.pz-genre::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); right: -20px; top: -24px; }
.pz-genre:hover { transform: translateY(-6px) rotate(-2deg); color: #fff; }
.pz-promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pz-promises li { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-size: 17px; }
.pz-promises .pz-i { width: 46px; height: 46px; padding: 10px; border-radius: 16px; color: #fff; }
.pz-promises .p0 .pz-i { background: var(--yellow); }
.pz-promises .p1 .pz-i { background: var(--blue); }
.pz-promises .p2 .pz-i { background: var(--green); }

/* ---------- search ---------- */
.pz-search { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin: 6px 0 4px; }
.pz-search-q { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--dim); }
.pz-search-q input { flex: 1; border: 0; outline: none; background: none; font: inherit; font-size: 17px; padding: 12px 0; color: var(--ink); min-width: 0; }
.pz-search select { font: inherit; font-weight: 700; padding: 10px 14px; border-radius: 999px; border: 0; background: #fff; box-shadow: var(--shadow); color: var(--ink); }
@media (max-width: 640px) {
  .pz-search { grid-template-columns: 1fr 1fr; }
  .pz-search-q { grid-column: 1 / -1; }
}
.pz-count { color: var(--dim); font-size: 14px; margin: 8px 0 14px; }

/* ---------- game page ---------- */
.pz-game-top { border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: var(--shadow-up); background: #000; }
.pz-game-top img, .pz-game-top video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 600px; display: block; }
.pz-hero-video { position: relative; }
.pz-hero-video button { all: unset; cursor: pointer; display: block; position: relative; width: 100%; }
.pz-hero-video button:focus-visible { outline: 4px solid var(--accent, #ff4fa3); outline-offset: -4px; }
.pz-hero-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px 16px 20px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 900; font-size: 19px; white-space: nowrap; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.18), 0 10px 28px rgba(0, 0, 0, 0.45); transition: transform 0.15s, filter 0.15s; }
.pz-hero-play svg { width: 30px; height: 30px; }
.pz-hero-video button:hover .pz-hero-play { transform: translate(-50%, -50%) scale(1.06); filter: brightness(1.08); }
@media (max-width: 600px) { .pz-hero-play { font-size: 15px; padding: 11px 18px 11px 14px; gap: 8px; } .pz-hero-play svg { width: 22px; height: 22px; } }
.pz-game-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 18px; padding: 22px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.pz-game-head h1 { margin: 0; }
.pz-cta { text-align: center; }
.pz-soon { margin: 0; font-weight: 800; color: var(--dim); max-width: 260px; }
.pz-devs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.pz-dev { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #eef4ff; color: var(--blue); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) {
  .pz-game-head { grid-template-columns: 1fr; }
  .pz-cta { text-align: left; }
}
.pz-shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.pz-shots a { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 0.25s; }
.pz-shots a:hover { transform: translateY(-4px); }
.pz-shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pz-shots span { display: block; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.pz-lightbox { padding: 0; border: 0; background: transparent; width: min(1280px, 100vw); max-width: 100vw; max-height: 100vh; overflow: visible; }
.pz-lightbox::backdrop { background: rgba(8, 6, 20, 0.86); }
.pz-lightbox figure { margin: 0 auto; width: min(1200px, calc(100vw - 32px)); }
.pz-lightbox img { display: block; width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--radius); background: #000; }
.pz-lightbox figcaption { margin-top: 10px; color: #fff; font-weight: 700; text-align: center; }
.pz-lb-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.pz-lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 34px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.pz-lb-prev { left: 10px; }
.pz-lb-next { right: 10px; }
.pz-lb-close:focus-visible, .pz-lb-nav:focus-visible { outline: 3px solid var(--yellow, #ffd23f); outline-offset: 2px; }
.pz-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.pz-videos figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.pz-videos video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pz-videos figcaption { padding: 8px 14px; font-weight: 700; }
.pz-videos small { display: block; color: var(--dim); font-weight: 500; }
.pz-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pz-video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.pz-video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pz-video button > span { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; }
.pz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pz-steps-big { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pz-steps-big li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.pz-steps-big b { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; background: var(--blue); }
.pz-steps-big li:nth-child(2) b { background: var(--green); }
.pz-steps-big li:nth-child(3) b { background: var(--orange); }
.pz-steps-big li:nth-child(4) b { background: var(--purple); }
.pz-faq details { border-radius: 16px; padding: 12px 18px; margin: 10px 0; background: #fff; box-shadow: var(--shadow); }
.pz-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; align-items: center; gap: 10px; }
.pz-faq summary::before { content: 'Q'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; }
.pz-faq summary::-webkit-details-marker { display: none; }
.pz-faq p { margin: 10px 0 0 38px; color: #444157; }
.pz-about-game { padding: 18px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: #444157; }
/* a featured X post waits out of sight until X has drawn it (a deleted post is never shown, G24) */
.pz-posts { display: grid; gap: 10px; padding: 0; list-style: none; }
.pz-posts a { display: block; padding: 12px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.pz-share { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-share a, .pz-share button { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 800; color: #fff; text-decoration: none; cursor: pointer; transition: transform 0.2s; }
.pz-share a:hover, .pz-share button:hover { transform: translateY(-3px); color: #fff; }
.pz-share-x { background: #111; }
.pz-share-line { background: #06c755; }
.pz-share-fb { background: #1877f2; }
.pz-share button { background: var(--purple); }

/* ---------- challenges ---------- */
.pz-challenges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pz-challenge { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 18px; border-top: 8px solid var(--yellow); }
.pz-challenge h3 { margin: 4px 0 6px; font-size: 20px; }
.pz-challenge p { margin: 0 0 10px; color: #444157; }
.pz-challenge .meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 800; }
.pz-challenge .meta span { padding: 2px 10px; border-radius: 999px; background: #fff6d8; color: #7a5a00; }
.pz-challenge .done { color: var(--ok); font-weight: 800; }
.pz-challenge a { font-weight: 800; }

/* ---------- text pages, panels, 404 ---------- */
.pz-doc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px 26px; }
.pz-doc h2 { font-size: 19px; margin: 26px 0 8px; }
.pz-doc li { margin: 4px 0; }
.pz-doc .pz-updated { color: var(--dim); font-size: 13px; }
.pz-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 26px 26px; }
.pz-panel h2 { margin: 26px 0 10px; }
.pz-links { font-weight: 700; }
.pz-404 { text-align: center; padding: 30px 0; }
.pz-404 > b { display: block; font-size: 110px; line-height: 1; font-weight: 800; background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pz-bounce 2.4s ease-in-out infinite; }

/* ---------- forms ---------- */
.pz-form { display: grid; gap: 14px; max-width: 540px; }
.pz-form label { display: grid; gap: 4px; font-weight: 700; }
.pz-form input, .pz-form select, .pz-form textarea { padding: 12px 14px; font: inherit; font-size: 16px; border-radius: 14px; border: 2px solid var(--line); background: #fbfbfe; color: var(--ink); transition: border-color 0.2s; }
.pz-form input:focus, .pz-form select:focus, .pz-form textarea:focus { outline: none; border-color: var(--blue); }
.pz-form textarea { min-height: 180px; resize: vertical; }
.pz-form button, .pz-panel button:not(.pz-eye) { padding: 12px 22px; font: inherit; font-size: 16px; border-radius: 999px; border: 0; background: var(--red); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #c71f3c; }
.pz-form button:disabled, .pz-panel button:disabled { opacity: 0.5; cursor: default; }
.pz-form .pz-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.pz-hint { color: var(--dim); font-size: 13px; font-weight: 500; }
.pz-who { padding: 10px 12px; border-radius: 12px; background: var(--soft, rgba(47,140,255,.08)); font-size: 13px; font-weight: 600; line-height: 1.6; }
.pz-who code { font-size: 12px; word-break: break-all; user-select: all; }
.pz-pw { position: relative; display: block; }
.pz-pw input { width: 100%; padding-right: 48px; }
.pz-pw input::-ms-reveal { display: none; } /* Edge's own eye would appear twice */
.pz-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pz-eye svg { width: 22px; height: 22px; }
.pz-msg { min-height: 1.7em; font-weight: 700; }
.pz-msg.bad { color: var(--bad); }
.pz-msg.ok { color: var(--ok); }
.pz-google { margin: 10px 0 16px; min-height: 44px; }

/* ---------- admin ---------- */
.pz-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 18px; }
.pz-tabs button { padding: 7px 16px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.pz-tabs button[aria-selected='true'] { background: var(--ink); color: #fff; }
.pz-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pz-stat { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.pz-stat b { display: block; font-size: 26px; }
.pz-stat span { color: var(--dim); font-size: 13px; }
.pz-side { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.pz-btn.ghost { background: #fff; color: var(--ink); box-shadow: none; border: 2px solid var(--line); font-size: 14px; padding: 6px 14px; }
.pz-btn.ghost:hover { color: var(--red); border-color: var(--red); }
.pz-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.pz-table th, .pz-table td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.pz-table th { color: var(--dim); font-weight: 700; background: #f8f9fc; }
.pz-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.pz-scroll { overflow-x: auto; }
.pz-msgbox { white-space: pre-wrap; background: #f6f7fb; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }

/* ---------- appear on scroll (portal.js adds .in) ---------- */
.pz-js .pz-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1); }
.pz-js .pz-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .pz-js .pz-reveal { opacity: 1; transform: none; }
  .pz-intro { display: none; }
}

/* ---------- logo (tools/logo.ts) ---------- */
.pz-logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 22px; color: var(--red); text-decoration: none; letter-spacing: 1px; }
.pz-logo-svg { display: block; width: auto; overflow: visible; }
.pz-logo .pz-logo-l { transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.pz-logo:hover .pz-logo-l { transform: translateY(-3px); }
.pz-logo:hover .pz-logo-l.l1, .pz-logo:hover .pz-logo-l.l3, .pz-logo:hover .pz-logo-l.l5 { transform: translateY(-1px); }
.pz-logo-star { transform-box: fill-box; transform-origin: center; animation: pz-twinkle 2.8s ease-in-out infinite; }
@keyframes pz-twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(0.6) rotate(45deg); opacity: 0.7; }
}

/* ---------- opening animation of the home page (G17, about 3.2 s; nothing for reduced motion). Every round block falls
   on its own and lands like slime — portal.js moves the blocks with a soft spring and squash / stretch, sets each
   letter's floor shadow from how high its blocks are, and runs a hop along the row; then light passes over the faces,
   the star bursts and the page appears. The resting logo is the same as the header logo. ---------- */
.pz-intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, #ffffff 0%, #eef2ff 75%); pointer-events: none; overflow: hidden; animation: pz-intro-out 0.65s cubic-bezier(0.6, 0, 0.3, 1) 2.75s forwards; }
.pz-intro-logo { width: min(86vw, 760px); justify-self: center; }
.pz-il-row { width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2.2%; }
.pz-il { position: relative; display: block; }
.pz-il.il1 { width: 9%; }
.pz-il:not(.il1) { width: 14.5%; }
.pz-il-face { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; animation: pz-gleam 0.5s ease both; }
/* the floor shadow: its size and darkness follow the blocks above it (portal.js); flat on the floor, never tilted */
.pz-il-shadow { position: absolute; left: 10%; right: 10%; bottom: -10%; height: 9%; border-radius: 50%; background: rgba(34, 32, 51, 0.2); filter: blur(1px); transform: scaleX(0); opacity: 0; }
/* until the script takes over the blocks wait out of sight (without the script they appear in place after a moment) */
.pz-intro:not(.pz-run) .pz-blk { visibility: hidden; animation: pz-show 0s 1.2s forwards; }
.pz-intro:not(.pz-run) .pz-il-shadow { animation: pz-show-shadow 0s 1.2s forwards; }
.il0 .pz-il-face { animation-delay: 2.3s; }
.il1 .pz-il-face { animation-delay: 2.35s; }
.il2 .pz-il-face { animation-delay: 2.4s; }
.il3 .pz-il-face { animation-delay: 2.45s; }
.il4 .pz-il-face { animation-delay: 2.5s; }
.il5 .pz-il-face { animation-delay: 2.55s; }
.pz-il-star { position: relative; z-index: 2; width: 7%; align-self: flex-start; transform: scale(0); animation: pz-star 0.7s cubic-bezier(0.3, 1.8, 0.5, 1) 1.75s forwards; }
.pz-il-star svg { display: block; width: 100%; height: auto; animation: pz-twinkle 1s ease-in-out 2.45s infinite; }
.pz-il-star i { position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; margin: -11% 0 0 -11%; border-radius: 50%; opacity: 0; animation: pz-spark 0.8s ease-out 1.85s forwards; }
.pz-il-star i:nth-of-type(1) { --a: 0deg; background: #ff3d5a; }
.pz-il-star i:nth-of-type(2) { --a: 45deg; background: #ff8a1f; }
.pz-il-star i:nth-of-type(3) { --a: 90deg; background: #18c27a; }
.pz-il-star i:nth-of-type(4) { --a: 135deg; background: #2f8cff; }
.pz-il-star i:nth-of-type(5) { --a: 180deg; background: #8d5cff; }
.pz-il-star i:nth-of-type(6) { --a: 225deg; background: #ff3d5a; }
.pz-il-star i:nth-of-type(7) { --a: 270deg; background: #ffc61a; }
.pz-il-star i:nth-of-type(8) { --a: 315deg; background: #18c27a; }
@keyframes pz-gleam {
  0%, 100% { filter: none; }
  40% { filter: brightness(1.4) saturate(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)); }
}
@keyframes pz-show {
  to { visibility: visible; }
}
@keyframes pz-show-shadow {
  to { transform: none; opacity: 1; }
}
@keyframes pz-star {
  0% { transform: scale(0) rotate(-180deg); }
  70% { transform: scale(1.7) rotate(20deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes pz-spark {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(320%) scale(0.3); }
}
@keyframes pz-intro-out {
  0% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.25); visibility: hidden; }
}

/* ---------- sideways lists moved by ‹ › (no scroll bar) ---------- */
.pz-scroller { position: relative; }
.pz-scroller [data-scroll] { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.pz-scroller [data-scroll]::-webkit-scrollbar { display: none; }
.pz-sc { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -30px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-up); transition: transform 0.2s, opacity 0.2s; }
.pz-sc:hover { transform: scale(1.1); color: var(--red); }
.pz-sc.prev { left: -14px; }
.pz-sc.next { right: -14px; }
.pz-sc[hidden] { display: none; }
@media (max-width: 640px) {
  .pz-sc { width: 40px; height: 40px; }
  .pz-sc.prev { left: -6px; }
  .pz-sc.next { right: -6px; }
}

/* ---------- share buttons with the services' own marks ---------- */
.pz-share a, .pz-share button { gap: 8px; }
.pz-share .pz-i { width: 20px; height: 20px; }
.pz-share-tiktok { background: #000; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }

/* ---------- ruby (the にほんご pages): enough room above each line, readings never squeezed ---------- */
[data-lang='ja-ruby'] main { line-height: 2.1; }
[data-lang='ja-ruby'] h1, [data-lang='ja-ruby'] h2, [data-lang='ja-ruby'] h3 { line-height: 1.7; }
ruby { ruby-position: over; ruby-align: center; } /* the word keeps its letters together under a longer reading */

/* ---------- account page ---------- */
.pz-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 10px 0 22px; }
.pz-facts dt { color: var(--dim); font-weight: 700; }
.pz-facts dd { margin: 0; word-break: break-all; }
.pz-ok { color: var(--ok); font-weight: 800; }
.pz-ng { color: var(--bad); font-weight: 800; }
.pz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pz-panel button.pz-quiet { background: #fff; color: var(--dim); border: 2px solid var(--line); box-shadow: none; }
.pz-form label > span { display: block; }

/* ---- guide pages of a game (G1) */
.pz-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pz-guide { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.pz-guide:hover { transform: translateY(-2px); }
.pz-guide .pz-h-icon { flex: none; color: var(--blue); margin-top: 2px; }
.pz-guide b { display: block; font-size: 16px; }
.pz-guide small { display: block; color: var(--dim); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.pz-guide-page .pz-lead { color: var(--dim); }
.pz-guide-page p, .pz-guide-page li { line-height: 1.85; }
.pz-guide-cta { text-align: center; margin: 28px 0 6px; }
.pz-char { border-top: 2px solid var(--line); margin-top: 26px; padding-top: 18px; }
.pz-char-head { display: flex; gap: 16px; align-items: center; }
.pz-char-head img { flex: none; width: 96px; height: 96px; border-radius: 16px; background: #e8ecf8; }
.pz-char-head h2 { margin: 0 0 2px; }
.pz-char-head p { margin: 2px 0; }
.pz-char-diff { color: var(--orange); font-weight: 700; font-size: 14px; }
.pz-char h3 { font-size: 15px; margin: 16px 0 6px; }
.pz-char-moves { width: 100%; border-collapse: collapse; font-size: 14px; }
.pz-char-moves th { width: 64px; text-align: left; vertical-align: top; padding: 7px 8px 7px 0; color: var(--blue); white-space: nowrap; }
.pz-char-moves td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pz-char-moves td b { margin-right: 8px; }
.pz-char-moves td span { color: var(--dim); }
@media (max-width: 560px) {
  .pz-char-head img { width: 72px; height: 72px; }
  .pz-char-moves td b { display: block; margin: 0; }
}
.pz-guide-shot { margin: 10px 0 8px; }
.pz-guide-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); background: #1d1a2b; }
.pz-guide-page h2 + .pz-guide-shot { margin-top: 6px; }

/* ---- ad slots (G4): a labelled box at a break of the page, never mistaken for a game button */
.pz-ad { margin: 26px auto; max-width: 980px; padding: 8px 12px 12px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line); }
.pz-ad-label { display: block; font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.pz-ad ins { min-height: 90px; }
.pz-level { font-weight: 700; }
.pz-level.ok { color: var(--green); }
.pz-level.warn { color: var(--orange); }
.pz-level.over { color: var(--red); }

/* ---- みんなの攻略 (G13) */
.pz-community-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pz-community-links .pz-btn { display: inline-flex; align-items: center; gap: 8px; }
.pz-community-links svg { width: 18px; height: 18px; }
.pz-follow a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pz-follow svg { width: 16px; height: 16px; }
.pz-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }

/* ---- 公式アカウント (H22): /community/ tags, and the way there from the home page */
.pz-tagbox { margin: 14px 0 22px; padding: 14px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.pz-tagbox h3 { margin: 0 0 4px; font-size: 18px; }
.pz-tagbox h3 small { font-size: 12px; color: var(--dim); font-weight: 700; }
.pz-tagbox p { margin: 4px 0 10px; }
.pz-official { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(120deg, #ffffff 0%, #f6f1ff 55%, #fff0f5 100%); border: 2px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.pz-official:hover { color: var(--ink); box-shadow: var(--shadow-up); transform: translateY(-2px); }
.pz-official-text > span:not(.pz-official-tags) { color: var(--dim); }
.pz-official-x { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #000; }
.pz-official-x svg { width: 34px; height: 34px; }
.pz-official-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pz-official-text b { font-size: 20px; }
.pz-official-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-official-tags i { font-style: normal; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--purple); }
.pz-official .pz-btn { flex: none; font-size: 15px; padding: 10px 20px; }
@media (max-width: 640px) {
  .pz-official { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .pz-official-x { width: 48px; height: 48px; }
  .pz-official .pz-btn { width: 100%; }
}

/* お知らせ (G25): one line per item on the home page; dated articles on /news/ */
.pz-news-mini { list-style: none; margin: 0; padding: 6px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pz-news-mini li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.pz-news-mini li:first-child { border-top: 0; }
.pz-news-mini time { color: var(--dim); font-size: 14px; white-space: nowrap; flex: none; }
.pz-news-mini a { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pz-news-mini a:hover { color: var(--blue); }
.pz-news { padding: 4px 0 18px; border-top: 1px solid var(--line); }
.pz-news:first-of-type { border-top: 0; }
.pz-news-date { color: var(--dim); font-size: 14px; margin: 18px 0 0; }
.pz-news h2 { margin-top: 4px; }
@media (max-width: 560px) {
  .pz-news-mini li { flex-direction: column; gap: 2px; }
  .pz-news-mini a { white-space: normal; }
}

/* about page: the games on PIKZEA, made from the catalog (L1) */
.pz-about-games { padding-left: 1.2em; }
.pz-about-games li { margin: 8px 0; }
