.cwhp-card{min-width:0;color:inherit}.cwhp-image{display:block;overflow:hidden}.cwhp-rank{font-weight:700}.cwhp-label,.cwhp-preview-note{font-size:12px;line-height:1.6;margin:4px 0 16px}.cwhp-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.cwhp-actions button,.cwhp-actions a{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;min-height:42px;border:1px solid #b08c61;border-radius:9px;padding:8px 12px;background:#f7efe2;color:#2b2118;text-decoration:none;font:500 13px/1.3 Manrope,Arial,sans-serif;cursor:pointer}.cwhp-actions .cwhp-use{background:#f08a3c;border-color:#f08a3c;color:#20170e}.cwhp-actions button[aria-pressed=true]{background:#e9b65c;color:#2b2118}.cwhp-detail-link{font-size:12px;line-height:1.5;color:inherit;margin-top:12px;text-underline-offset:3px;align-self:flex-start}
@media(max-width:1000px){.cwhp-detail-layout{gap:28px}}
@media(max-width:640px){.cwhp-detail-header{padding:18px 16px;gap:16px}.cwhp-detail-header nav{gap:12px;font-size:12px}.cwhp-detail-header nav a:first-child{display:none}.cwhp-detail-main{padding:0 16px}.cwhp-detail-layout{grid-template-columns:1fr;gap:28px}.cwhp-detail-layout h1{font-size:30px}.cwhp-views img{height:220px}}
.cwhp-detail{margin:0;background:#faf9f6;color:#252728;font-family:Manrope,Arial,sans-serif}.cwhp-detail-header{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:24px max(24px,calc((100vw - 1280px)/2));border-bottom:1px solid #ddd}.cwhp-detail-header a{color:inherit;text-decoration:none}.cwhp-detail-header nav{display:flex;gap:24px;font-size:14px}.cwhp-detail-main{max-width:1280px;margin:30px auto 80px;padding:0 24px}.cwhp-detail-main>a{font-size:13px;color:inherit}.cwhp-detail-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:64px;margin-top:28px;align-items:start}.cwhp-main-image{display:block;width:100%;max-height:580px;object-fit:contain;background:#eeece6;border-radius:12px}.cwhp-detail-layout h1{font-size:36px;line-height:1.2;margin:12px 0}.cwhp-detail-layout h2{font-size:16px;margin-top:36px}.cwhp-detail-layout p{line-height:1.7}.cwhp-detail-layout .cwhp-actions{margin-top:28px}.cwhp-views{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:20px}.cwhp-views figure{margin:0;min-width:0}.cwhp-views img{height:280px;width:100%;object-fit:contain;background:white}.cwhp-views figcaption{font-size:13px;padding:8px 0}.cwhp-banner-button{display:inline-flex!important;align-items:center;justify-content:center;background:#ff914d!important;color:#1d2025!important;padding:12px 22px!important;border:1px solid #ff914d!important;border-radius:9px!important;text-decoration:none!important;min-height:44px!important;margin:10px 8px 0!important;font-weight:650!important}[data-notice-tone="halloween-contest"]{cursor:pointer}.hw-products{align-items:start}.hw-product img{object-fit:contain!important}.hw-product h3{overflow-wrap:anywhere}.hw-product{min-width:0}
/* Campaign flip cards: equal surfaces and deterministic podium, with static SSR fronts. */
[data-hw-leaderboard] .cwhp-grid{display:block!important;margin:28px 0;overflow:visible}
.cwhp-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:20px;max-width:1000px;margin:0 auto 32px}
.cwhp-place{min-width:0}.cwhp-step{display:flex;align-items:center;justify-content:center;height:52px;margin-top:12px;background:#f7efe2;color:#9d450f;font:700 34px/1 Georgia,serif;border-radius:8px 8px 0 0;box-shadow:0 10px 24px #0002}.cwhp-place[data-rank="1"] .cwhp-step{height:110px}.cwhp-place[data-rank="2"] .cwhp-step{height:80px}
.cwhp-flip{position:relative!important;perspective:1200px;display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0;transform:none!important;margin:0!important;color:#2b2118!important}
.cwhp-flip-inner{position:relative;min-height:420px;transition:transform .4s ease;transform-style:preserve-3d}.cwhp-flip.is-flipped .cwhp-flip-inner{transform:rotateY(180deg)}
.cwhp-front,.cwhp-back{box-sizing:border-box;position:absolute;inset:0;border:1px solid #e2d3bd;border-radius:12px;background:#f7efe2;box-shadow:0 8px 20px #0002;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.cwhp-back{transform:rotateY(180deg);padding:22px;display:flex;flex-direction:column;gap:10px}.cwhp-flip-toggle{width:100%;height:100%;border:0;background:transparent;color:inherit;text-align:left;padding:14px;cursor:pointer;display:flex;flex-direction:column;font:inherit}.cwhp-flip-toggle .cwhp-image{width:100%;flex:1;min-height:0;aspect-ratio:auto;background:#eee8df;border-radius:7px}.cwhp-flip-toggle .cwhp-image img{width:100%;height:100%;object-fit:contain;padding:6px}.cwhp-flip-toggle .cwhp-rank{position:absolute;top:22px;left:22px;padding:5px 9px;border-radius:99px;background:#f08a3c;color:#2b2118}.cwhp-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;margin:12px 0 5px;font-size:17px;font-weight:650;line-height:1.35}.cwhp-vote-count{font-size:13px;font-weight:650}.cwhp-turn-hint{font-size:11px;margin-top:6px;color:#6c5140}.cwhp-back h3{font:650 18px/1.35 Manrope,Arial,sans-serif;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cwhp-creator{font-size:12px;margin:0;color:#725941}.cwhp-description{font-size:13px;line-height:1.65;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.cwhp-back .cwhp-actions{margin-top:auto}.cwhp-back .cwhp-actions button,.cwhp-back .cwhp-actions a,.cwhp-detail .cwhp-actions a{border:1px solid #b08c61;background:#f7efe2;color:#2b2118;font:600 12px/1.4 Manrope,Arial,sans-serif;min-height:40px;white-space:normal}.cwhp-back .cwhp-actions .cwhp-use,.cwhp-detail .cwhp-actions .cwhp-use{background:#f08a3c;color:#20170e;border-color:#f08a3c}.cwhp-back .cwhp-detail-link{display:block;text-align:center;padding:8px 10px;border:1px solid #b08c61;border-radius:7px;margin:0;align-self:stretch;text-decoration:none;min-height:36px;box-sizing:border-box}.cwhp-return{padding:4px;background:transparent;border:0;text-decoration:underline;color:#62452c;font:12px/1.5 Manrope,Arial,sans-serif;cursor:pointer}.cwhp-flip button:focus-visible,.cwhp-flip a:focus-visible{outline:3px solid #bb510b;outline-offset:2px}
[data-hw-leaderboard] .hw-other-entries{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:12px!important;max-width:none!important;margin:0!important;overflow:visible}
.hw-other-entries .cwhp-flip-inner{min-height:295px}.hw-other-entries .cwhp-flip-toggle{padding:9px}.hw-other-entries .cwhp-title{font-size:12px;line-height:1.4;min-height:2.8em}.hw-other-entries .cwhp-turn-hint{font-size:9px}.hw-other-entries .cwhp-flip-toggle .cwhp-rank{top:15px;left:15px;font-size:11px;padding:4px 6px}.hw-other-entries .cwhp-back{padding:12px;gap:7px}.hw-other-entries .cwhp-back h3{font-size:12px}.hw-other-entries .cwhp-description{font-size:11px;-webkit-line-clamp:3}.hw-other-entries .cwhp-back .cwhp-actions{gap:4px;display:flex;flex-direction:column}.hw-other-entries .cwhp-back .cwhp-actions>*{font-size:10px;padding:5px;min-height:30px}.hw-other-entries .cwhp-detail-link{font-size:10px;padding:4px;min-height:28px}.hw-other-entries .cwhp-return{font-size:10px}
#view-community .cwhp-feature{display:block!important;max-width:620px;width:100%;background:transparent;border:0;overflow:visible;justify-self:center}#view-community .cwhp-feature .cwhp-flip-inner{min-height:580px}#view-community .cwhp-feature .cwhp-back{padding:35px}#view-community .cwhp-feature .cwhp-back h3{font-size:28px}#view-community .cwhp-feature .cwhp-description{font-size:16px;-webkit-line-clamp:7}#view-community .cwhp-feature .cwhp-actions .cwhp-use{background:#f08a3c;color:#20170e;border-color:#f08a3c}#view-community .cwhp-feature .cwhp-actions button{background:#f7efe2;color:#2b2118;border-color:#b08c61}
@media(max-width:1100px){[data-hw-leaderboard] .hw-other-entries{display:flex!important;overflow-x:auto!important;padding-bottom:12px;scroll-snap-type:x mandatory}.hw-other-entries .cwhp-flip{flex:0 0 180px;scroll-snap-align:start}.cwhp-podium{gap:14px}.cwhp-flip-inner{min-height:390px}.cwhp-back{padding:16px}.cwhp-back .cwhp-actions{flex-direction:column}}
@media(max-width:640px){.cwhp-podium{display:flex;overflow:auto;gap:14px;align-items:flex-end;scroll-snap-type:x mandatory;padding-bottom:10px}.cwhp-place{flex:0 0 78%;scroll-snap-align:center}.cwhp-place[data-rank="1"]{order:-1}.cwhp-place .cwhp-step,.cwhp-place[data-rank="1"] .cwhp-step,.cwhp-place[data-rank="2"] .cwhp-step{height:48px}.cwhp-flip-inner{min-height:420px}.cwhp-title{font-size:16px}#view-community .cwhp-feature .cwhp-flip-inner{min-height:440px}#view-community .cwhp-feature .cwhp-back{padding:22px}#view-community .cwhp-feature .cwhp-back h3{font-size:23px}#view-community .cwhp-feature .cwhp-description{font-size:13px}}
@media(prefers-reduced-motion:reduce){.cwhp-flip-inner{transition:none!important}}
@media(max-width:640px){.cwhp-podium{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:14px}.cwhp-place{min-width:0}.cwhp-place[data-rank="1"]{grid-column:1/-1;width:100%;max-width:390px;justify-self:center;order:-1}.cwhp-place:not([data-rank="1"]) .cwhp-flip-inner{min-height:315px}.cwhp-place:not([data-rank="1"]) .cwhp-flip-toggle{padding:9px}.cwhp-place:not([data-rank="1"]) .cwhp-title{font-size:12px}.cwhp-place:not([data-rank="1"]) .cwhp-back{padding:10px;gap:6px}.cwhp-place:not([data-rank="1"]) .cwhp-back h3{font-size:13px}.cwhp-place:not([data-rank="1"]) .cwhp-description{font-size:11px;-webkit-line-clamp:3}.cwhp-place:not([data-rank="1"]) .cwhp-actions>*{min-height:28px;font-size:10px;padding:4px}.cwhp-place:not([data-rank="1"]) .cwhp-return{font-size:10px}}
@media(max-width:640px){.cwhp-grid[data-mobile-podium="true"] .cwhp-podium{display:block;overflow:visible}.cwhp-grid[data-mobile-podium="true"] .cwhp-place[hidden]{display:none}.cwhp-grid[data-mobile-podium="true"] .cwhp-place[data-rank="1"]{max-width:390px;margin:auto}.cwhp-grid[data-mobile-podium="true"] .hw-other-entries .cwhp-flip-inner{min-height:310px}}

body#typewriterWorkshop #view-community.cw-community-page #communityHalloweenRanking.cd-campaign-toggle:not([hidden]){display:inline-flex!important;align-items:center;min-height:36px;padding:7px 12px;border:1px solid #dededb;border-radius:7px;background:transparent;color:inherit;font:inherit;cursor:pointer}
#view-community #communityHalloweenRanking[aria-pressed="true"]{background:#252728;color:white}
/* Podium refinement: winner frame rises; image and text baselines stay shared. */
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-step{display:none!important}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium{grid-template-columns:1fr 1.1fr 1fr;align-items:end}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-flip-inner{height:400px;min-height:400px}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-place[data-rank="1"] .cwhp-flip-inner{height:426px;min-height:426px}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-flip-toggle{display:flex;flex-direction:column;justify-content:flex-end;padding:14px}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-image{height:250px;flex:0 0 250px}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-title{height:40.5px;min-height:40.5px;flex:0 0 40.5px;margin:12px 0 6px;font-size:15px;line-height:20.25px}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-vote-count{height:18px;line-height:18px;align-self:stretch}
.hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-turn-hint{height:15px;line-height:15px;margin-top:6px}
@media(max-width:640px){
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium{display:block;margin-bottom:14px}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-place[data-rank="1"]{max-width:none;width:100%}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-place[data-rank="1"] .cwhp-flip-inner{height:350px;min-height:350px}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-podium .cwhp-image{height:210px;flex-basis:210px}
 .hw-campaign #hw-main [data-hw-leaderboard] .hw-other-entries .cwhp-flip{flex:0 0 45vw;scroll-snap-align:start}
 .hw-campaign #hw-main [data-hw-leaderboard] .hw-other-entries .cwhp-flip-inner{height:330px;min-height:330px}
 .hw-campaign #hw-main [data-hw-leaderboard] .hw-other-entries .cwhp-image{height:170px;flex:0 0 170px}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-back{overflow-y:auto}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-back button,
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-back a{min-height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
 .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-back .cwhp-actions{flex-shrink:0}
}

body#typewriterWorkshop #view-community.cw-community-page .cd-periods{max-width:100%;overflow-x:auto;flex-wrap:nowrap;gap:4px;scrollbar-width:thin}
body#typewriterWorkshop #view-community.cw-community-page #communityHalloweenRanking.cd-campaign-toggle:not([hidden]){display:inline-flex!important;gap:6px;flex-shrink:0;min-height:38px;border:1px solid #d96c26;border-radius:99px;padding:8px 12px;color:#9b4211;background:#fff4e8;font-weight:700}
body#typewriterWorkshop #view-community.cw-community-page #communityHalloweenRanking.cd-campaign-toggle[aria-pressed="true"]{color:#24180f;background:#f08a3c;border-color:#f08a3c}
body#typewriterWorkshop #view-community.cw-community-page .cd-rank-tools{min-width:0;max-width:100%}

/* HALLOWEEN-MOBILE-CC / RANK-GRID-20261015 v2: phones show #2-#10 as an even
   3x3 grid (no hidden sideways rail); compact, consistent back-face actions. */
@media (max-width: 640px) {
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    overflow: visible !important;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip { grid-column: auto; flex: none; min-width: 0; width: auto; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-flip-inner { height: 236px; min-height: 236px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-flip-toggle { padding: 6px 6px 8px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-image { height: 104px; flex: 0 0 104px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-image img { padding: 4px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-rank { font-size: 11px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-title { font-size: 12px; line-height: 1.3; min-height: 2.6em; margin-top: 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-vote-count { font-size: 11px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-turn-hint { font-size: 10px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back { padding: 10px 8px; gap: 6px; justify-content: center; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back h3 { font-size: 12px; line-height: 1.3; margin: 0 0 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip :is(.cwhp-creator, .cwhp-description) { display: none; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back .cwhp-actions { display: flex; flex-direction: column; gap: 6px; margin: 0; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back :is(.cwhp-actions > button, .cwhp-actions > a, .cwhp-detail-link) {
    box-sizing: border-box; height: 34px; min-height: 34px; margin: 0; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    border-width: 1px; border-radius: 8px; box-shadow: none;
    font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back .cwhp-return { min-height: 32px; height: 32px; padding: 0; font-size: 11px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back :is(button, a):focus:not(:focus-visible) { outline: none; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back :is(button, a):focus-visible { outline: 2px solid #f0923d; outline-offset: 1px; }
}

/* RANK-GRID-20261015 v2 (CC): very narrow phones (<360px) keep back actions inside the card. */
@media (max-width: 359px) {
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back { padding: 10px 6px; }
  .hw-campaign #hw-main [data-hw-leaderboard] .cwhp-grid[data-mobile-podium="true"] .hw-other-entries > .cwhp-flip .cwhp-back :is(.cwhp-actions > button, .cwhp-actions > a, .cwhp-detail-link) { padding: 0 3px; font-size: 10px; }
}
