/* pages.css — TOP COUNSEL + HOW IT WORKS full pages (#page-layer, z 60). */
#page-layer { display: none; }
#page-layer.is-open {
  display: block;
  position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 60;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--dot) 1.5px, transparent 1.8px);
  background-size: 26px 26px;
}
#page-layer.is-enter .pg { animation: pg-in 0.45s var(--ease-out) both; }
@keyframes pg-in { from { transform: translateY(18px); opacity: 0; } }
/* hide canvas chrome that would float over a page (every page, incl. YOUR IDEAS) */
body[data-page="top"] :is(.toolbar, .zoom-hud, #minimap-slot, .presence-layer),
body[data-page="how"] :is(.toolbar, .zoom-hud, #minimap-slot, .presence-layer),
body[data-page="mine"] :is(.toolbar, .zoom-hud, #minimap-slot, .presence-layer) { display: none !important; }

.pg {
  width: min(1120px, 100%); margin: 0 auto;
  padding: 48px max(clamp(16px, 4vw, 40px), env(safe-area-inset-right)) calc(80px + var(--nav-h, 0px)) max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
}

/* ===== hero ===== */
.pg-hero { margin-bottom: 44px; }
.pg-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-2);
}
.pg-sq { width: 16px; height: 16px; background: var(--ink); flex: none; }
.pg-title {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(64px, 12vw, 150px); line-height: 0.82; letter-spacing: -0.045em;
}
.pg-title em { color: var(--hot); font-style: normal; }
.pg-hl {
  display: inline-block; padding: 0 0.12em 0.04em; margin: 0 0.02em;
  background: var(--acid); color: #0e0e10; border: 2px solid #0e0e10; box-shadow: 6px 6px 0 #0e0e10;
  transform: rotate(-1.5deg);
}

.pg-lede { max-width: 640px; margin: 26px 0 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.45; color: var(--ink-2); }
.pg-lede b { color: var(--ink); font-family: var(--f-mono); font-size: 0.88em; }
.pg-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pg-ctas .btn { height: 44px; padding: 0 18px; }

/* ===== sections ===== */
.pg-sec { margin-top: 56px; }
.pg-sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent); }
.pg-sec-n { font-family: var(--f-mono); font-size: 12px; font-weight: 700; padding: 2px 7px; background: var(--ink); color: var(--paper); }
.pg-sec-title { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.pg-sec-sub { margin: 0; font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); flex-basis: 100%; }
.pg-note { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); margin: 24px 0 0; }
.pg-note-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--card);
}
.pg-empty { padding: 40px; text-align: center; border: 2px dashed var(--line); font-family: var(--f-marker); font-size: 22px; }
.pg-you {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 1px 5px; background: var(--hot); color: #0e0e10; border: 1.5px solid #0e0e10; transform: rotate(-4deg);
}

/* ===== podium ===== */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.podium-spot { display: flex; flex-direction: column; min-width: 0; }
.podium-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 16px 18px; margin-bottom: -2px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: 6px 0 0 var(--c);
}
.rank-1 .podium-card { transform: rotate(-1deg); padding-top: 34px; }
.rank-2 .podium-card { transform: rotate(1.2deg); }
.rank-3 .podium-card { transform: rotate(-0.6deg); }
.podium-spot.is-me .podium-card { outline: 3px dashed var(--hot); outline-offset: 4px; }
.podium-medal {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-6deg);
  font-family: var(--f-marker); font-size: 16px; padding: 3px 12px;
  background: color-mix(in srgb, var(--c) 55%, #fffdf7); color: #0e0e10; border: 2px solid #0e0e10; box-shadow: 3px 3px 0 #0e0e10;
}
.rank-1 .podium-medal { font-size: 20px; background: var(--acid); }
.podium-av { width: 64px; height: 64px; font-size: 20px; box-shadow: 3px 3px 0 var(--ink); }
.rank-1 .podium-av { width: 84px; height: 84px; font-size: 26px; }
.podium-name { font-family: var(--f-mono); font-size: 15px; overflow-wrap: anywhere; }
.podium-score { font-family: var(--f-display); font-style: italic; font-size: 52px; line-height: 0.9; }
.rank-1 .podium-score { font-size: 68px; }
.podium-score small { font-family: var(--f-mono); font-style: normal; font-size: 12px; color: var(--ink-3); }
.podium-stats { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); }
.podium-signoff { margin: 6px 0 0; font-family: var(--f-marker); font-size: 14px; line-height: 1.25; color: var(--ink-2); transform: rotate(-1deg); }
.podium-block {
  display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 64px; color: #0e0e10;
  background: var(--c); border: 2px solid #0e0e10;
  background-image: repeating-linear-gradient(-45deg, rgba(14,14,16,.12) 0 8px, transparent 8px 16px);
}
.rank-1 .podium-block { height: 120px; }
.rank-2 .podium-block { height: 84px; }
.rank-3 .podium-block { height: 60px; }

.rank-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-row {
  display: grid; grid-template-columns: 34px 22px minmax(0, 1fr) auto auto 64px; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 12.5px;
}
.rank-row:nth-child(odd) { transform: rotate(-0.25deg); }
.rank-row.is-me { background: color-mix(in srgb, var(--hot) 20%, var(--card)); border-width: 2px; box-shadow: var(--shadow-hard-sm); }
.rank-n { font-weight: 700; color: var(--ink-3); }
.rank-who { min-width: 0; display: flex; align-items: baseline; gap: 8px; overflow: hidden; }
.rank-who b { font-size: 13.5px; white-space: nowrap; }
.rank-who small { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.rank-stats, .rank-posts { color: var(--ink-2); white-space: nowrap; }
.rank-score { justify-self: end; font-weight: 700; padding: 2px 8px; background: var(--ink); color: var(--paper); border-radius: 3px; }

/* ===== best post-its ===== */
.best-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; padding: 8px 4px; }
.best-pi {
  --bg: var(--pi-yellow);
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; min-height: 200px;
  padding: 26px 16px 14px;
  background: var(--bg); color: #0e0e10;
  border: 0; box-shadow: var(--shadow-postit);
  transform: rotate(var(--rot));
  transition: transform 0.25s var(--ease-spring), box-shadow 0.2s;
}
.best-pi::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 6px, transparent 6px 12px), rgba(255,255,255,.55);
  border: 1px solid rgba(14,14,16,.2);
}
.best-pi::after { /* folded corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.14) 50%);
}
.best-pi:hover, .best-pi:focus-visible { transform: rotate(0) translateY(-4px) scale(1.03); box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 16px 26px -8px rgba(0,0,0,.35); z-index: 2; outline: none; }
.pi-yellow { --bg: var(--pi-yellow); } .pi-pink { --bg: var(--pi-pink); } .pi-cyan { --bg: var(--pi-cyan); }
.pi-lime { --bg: var(--pi-lime); } .pi-lilac { --bg: var(--pi-lilac); } .pi-orange { --bg: var(--pi-orange); }
.best-rank { position: absolute; top: 8px; left: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; opacity: 0.8; }
.best-page { position: absolute; top: 7px; right: 10px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; padding: 1px 5px; background: #0e0e10; color: var(--pi-yellow); }
.best-title { font-family: var(--f-marker); font-weight: 400; font-size: 18px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.best-short { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.best-on { font-family: var(--f-mono); font-size: 11px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; padding-top: 8px; border-top: 1.5px dashed rgba(14,14,16,.3); }
.best-who { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.best-rx { white-space: nowrap; }

/* ===== needs advice (was: most wanted) ===== */
.wanted { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wanted-row {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 14px;
  padding: 14px 16px 14px 12px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 var(--c);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
}
.wanted-row:hover, .wanted-row:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c), 6px 6px 0 2px var(--line); outline: none; }
.wanted-n { font-family: var(--f-display); font-style: italic; font-size: 46px; line-height: 0.8; text-align: center; }
.wanted-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.wanted-title { font-size: 16px; line-height: 1.15; }
.wanted-pitch { font-size: 12.5px; color: var(--ink-2); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wanted-meta {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700; white-space: nowrap;
  padding: 2px 7px; border-radius: 3px; background: var(--ink); color: var(--paper);
}
.wanted-meta.is-zero { background: var(--acid); color: #0e0e10; border: 1.5px solid #0e0e10; }
.wanted-go { font-family: var(--f-mono); font-weight: 700; opacity: 0.6; }
.wanted-row:hover .wanted-go { opacity: 1; }

/* ===== how it works ===== */
/* what you can pin: four tilted stickies */
.how-kinds { list-style: none; margin: 0; padding: 8px 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.how-kind {
  /* color comes from the .pi-* class (a default --bg here used to override it: all four were yellow) */
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 16px 18px; min-height: 180px;
  background: var(--bg, var(--pi-yellow)); color: #0e0e10; box-shadow: var(--shadow-postit);
  transform: rotate(var(--rot));
  transition: transform 0.25s var(--ease-spring);
}
.how-kind::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 6px, transparent 6px 12px), rgba(255,255,255,.55);
  border: 1px solid rgba(14,14,16,.2);
}
.how-kind:hover { transform: rotate(0) translateY(-4px); }
.how-kind-art { font-size: 30px; line-height: 1; }
.how-kind-title { margin: 4px 0 0; font-family: var(--f-marker); font-weight: 400; font-size: 22px; line-height: 1.1; }
.how-kind-body { margin: 0; font-size: 14px; line-height: 1.4; }

/* the walkthrough: numbered zine strips, two columns */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.how-step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px 18px 16px 14px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 5px 5px 0 var(--c), 5px 5px 0 2px var(--line);
  transform: rotate(var(--rot));
}
.how-step-n {
  font-family: var(--f-display); font-style: italic; font-size: 58px; line-height: 0.8; letter-spacing: -0.05em;
  color: var(--c); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.how-step-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.how-step-title { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--f-sans); font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.how-step-art { font-size: 20px; }
.how-step-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.how-step-body b { color: var(--ink); font-family: var(--f-mono); font-size: 0.86em; font-weight: 700; }
.how-step-body .you-tag { vertical-align: 1px; }
.how-kbd {
  display: inline-block; min-width: 1.6em; padding: 0 5px; text-align: center;
  font-family: var(--f-mono); font-size: 0.82em; font-weight: 700; line-height: 1.5; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 4px;
}
.how-cta {
  margin-top: 4px; align-self: flex-start;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 10px; border: 2px solid #0e0e10; border-radius: 6px; background: var(--acid); color: #0e0e10; box-shadow: 2px 2px 0 #0e0e10;
}
.how-cta:hover { transform: translate(-1px, -1px); }

.how-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-sm); }
.faq-item[open] { box-shadow: var(--shadow-hard-sm); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; font-weight: 700; font-size: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--paper-2); }
.faq-plus {
  flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--f-mono); font-style: normal; font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 50%;
  transition: transform 0.25s var(--ease-spring), background 0.2s;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--acid); color: #0e0e10; border-color: #0e0e10; }
.faq-a { margin: 0; padding: 0 16px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.rules {
  position: relative; margin-top: 70px;
  padding: 26px 22px 20px;
  background: var(--pi-pink); color: #0e0e10;
  border: 2px solid #0e0e10; box-shadow: 6px 6px 0 #0e0e10;
  transform: rotate(2deg);
}
.rules-tape {
  position: absolute; top: -13px; left: 30px; width: 90px; height: 24px; transform: rotate(-6deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.4) 0 6px, transparent 6px 12px), var(--pi-yellow);
  border: 1.5px solid rgba(14,14,16,.3);
}
.rules-title { margin: 0 0 12px; font-family: var(--f-marker); font-weight: 400; font-size: 30px; line-height: 1; }
.rules-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.35; }
.rules-list li::marker { font-family: var(--f-mono); font-weight: 700; }
.rules-sign { margin: 14px 0 0; text-align: right; font-family: var(--f-mono); font-size: 12px; }

/* ===== footer ===== */
.pg-foot { margin-top: 80px; padding-top: 30px; border-top: 2px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pg-foot-big { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(36px, 6vw, 60px); line-height: 1; }
.pg-foot .pg-ctas { margin-top: 0; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .how-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-steps { grid-template-columns: 1fr; }
  .how-split { grid-template-columns: 1fr; }
  .rules { margin-top: 10px; max-width: 460px; }
  .wanted { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 30px 22px minmax(0, 1fr) auto 56px; }
  .rank-posts { display: none; }
}
@media (max-width: 700px) {
  .pg { padding-top: 30px; }
  .pg-hero { margin-bottom: 28px; }
  .pg-hl { box-shadow: 4px 4px 0 #0e0e10; }
  .pg-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .podium { gap: 8px; }
  .podium-card { padding: 22px 6px 12px; }
  .rank-1 .podium-card { padding-top: 26px; }
  .podium-av, .rank-1 .podium-av { width: 44px; height: 44px; font-size: 14px; }
  .podium-name { font-size: 11.5px; }
  .podium-score, .rank-1 .podium-score { font-size: 34px; }
  .podium-stats, .podium-signoff { display: none; }
  .podium-medal { font-size: 12px; padding: 2px 8px; }
  .rank-1 .podium-medal { font-size: 14px; }
  .podium-block { font-size: 40px; }
  .rank-1 .podium-block { height: 80px; } .rank-2 .podium-block { height: 56px; } .rank-3 .podium-block { height: 40px; }
  .rank-row { grid-template-columns: 26px 22px minmax(0, 1fr) 50px; gap: 8px; padding: 9px 10px; }
  .rank-stats { display: none; }
  .rank-who small { display: none; }
  .best-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .best-pi { min-height: 170px; padding: 24px 12px 12px; }
  .best-title { font-size: 15px; }
  .best-rx { display: none; }
  .wanted-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .wanted-go { display: none; }
  .wanted-n { font-size: 34px; }
  .how-kinds { gap: 18px 12px; }
  .how-kind { min-height: 0; padding: 22px 12px 14px; }
  .how-kind-title { font-size: 18px; }
  .how-kind-body { font-size: 13px; }
  .how-step { grid-template-columns: 1fr; gap: 6px; padding: 14px 14px 14px; transform: none; }
  .how-step-n { font-size: 44px; }
  .rules { transform: rotate(1deg); margin-inline: 4px; padding: 24px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-layer.is-enter .pg { animation: none; }
}

/* deeper small-label grey so mono captions pass AA on paper */
:root #page-layer { --ink-3: #5f5f67; }

/* ----- polish: press + touch ----- */
.how-cta:active, .wanted-row:active { transform: translate(2px, 2px); box-shadow: none; }
@media (pointer: coarse) {
  .pg .btn, .how-cta { min-height: 42px; }
  .faq-q { min-height: 48px; }
}

/* =====================================================================
   Responsive pass (phone <= 700, tablet 701-1024, touch)
   ===================================================================== */
/* hover lifts only where a real pointer hovers; on touch they stick after a tap */
@media (hover: none) {
  .best-pi:hover, .how-kind:hover { transform: rotate(var(--rot)); box-shadow: var(--shadow-postit); }
  .wanted-row:hover { transform: none; box-shadow: 4px 4px 0 var(--c); }
  .faq-q:hover { background: none; }
}
@media (min-width: 701px) and (max-width: 1024px) {
  .pg { padding-top: 40px; }
  .how-split .rules { max-width: none; transform: rotate(1deg); }
  .best-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pg { padding-top: 26px; padding-bottom: calc(var(--nav-h, 0px) + 32px); }
  .pg-kicker { font-size: 11px; letter-spacing: 0.1em; }
  .pg-title { font-size: clamp(54px, 17vw, 84px); line-height: 0.86; }
  .pg-lede { font-size: 16px; margin-top: 18px; }
  .pg-ctas { gap: 10px; }
  .pg-ctas .btn { flex: 1 1 100%; height: 48px; }
  .pg-sec { margin-top: 42px; }
  .pg-sec-head { gap: 10px; margin-bottom: 18px; }
  .pg-sec-title { font-size: clamp(30px, 9vw, 40px); }
  .pg-sec-sub { font-size: 12px; }
  .pg-note { font-size: 12.5px; }
  .pg-note-cta .btn { width: 100%; justify-content: center; }
  .pg-empty { padding: 28px 16px; font-size: 19px; }
  /* podium: three narrow columns that still read as a podium */
  .podium { gap: 6px; padding-top: 18px; }
  .podium-card { box-shadow: 3px 0 0 var(--c); }
  .podium-name { font-size: 12px; max-width: 100%; }
  .podium-name .pg-you { display: block; width: max-content; margin: 3px auto 0; }
  .podium-score small { font-size: 10px; }
  .rank-list { margin-top: 22px; }
  .rank-row { min-height: 48px; }
  .rank-who b { overflow: hidden; text-overflow: ellipsis; }
  .best-pi { min-height: 150px; }
  .best-short { display: none; }
  .wanted-row { padding: 12px; min-height: 64px; grid-template-columns: 30px minmax(0, 1fr); row-gap: 8px; align-items: start; }
  .wanted-n { grid-row: span 2; align-self: center; }
  .wanted-meta { grid-column: 2; justify-self: start; }
  .wanted-pitch { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .how-step { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 14px 14px 14px 10px; }
  .how-step-n { font-size: 40px; -webkit-text-stroke-width: 1.5px; }
  .how-step-title { font-size: 18px; }
  .how-step-body { font-size: 14.5px; }
  .how-cta { min-height: 44px; padding: 8px 14px; }
  .faq-q { font-size: 15px; padding: 12px 14px; min-height: 52px; }
  .faq-a { font-size: 14.5px; padding: 0 14px 14px; }
  .how-split { gap: 30px; }
  .rules { max-width: none; margin-top: 4px; }
  .rules-title { font-size: 26px; }
  .pg-foot { margin-top: 56px; padding-top: 24px; }
  .pg-foot-big { font-size: 38px; }
}
@media (max-width: 380px) {
  .podium-medal { padding: 2px 6px; font-size: 11px; }
  .podium-score, .rank-1 .podium-score { font-size: 30px; }
  .best-grid { gap: 16px 10px; padding-inline: 2px; }
  .how-kinds { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .how-kind { padding: 20px 10px 12px; }
}
