/* =========================================================================
   Colouring Contest -- results pages (/colouring-contest...)
   Loaded only on these pages (layouts/main.php $extraCss), after style.css.
   Bright and playful like the judges' "Kids Edition" report: sky, clouds, a
   rainbow, crayon colours and rounded Fredoka letters. Every animation stops
   for visitors who ask for less motion.
   ========================================================================= */

body.contest {
  --cc-ink: #1e2a4a;
  --cc-ink-soft: #55607d;
  --cc-sky: #bfe6ff;
  --cc-cream: #fff8e8;
  --cc-red: #ff6b6b;
  --cc-orange: #ff9f1c;
  --cc-yellow: #ffc93c;
  --cc-green: #2ec4a0;
  --cc-blue: #3b9dff;
  --cc-purple: #8b5cf6;
  --cc-pink: #ff5fa2;
  --cc-gold: #f5b301;
  --cc-display: 'Fredoka', 'Figtree', system-ui, sans-serif;
  background: var(--cc-cream);
}
body.contest main { overflow-x: clip; }
.cc-js .contest [data-reveal] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); transition-delay: calc(var(--d, 0) * 90ms); }
.cc-js .contest [data-reveal].is-in { opacity: 1; transform: none; }

.cc-eyebrow { display: inline-block; font-family: var(--cc-display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-red); }
.cc-pill { display: inline-block; background: #fff; color: var(--cc-blue); font-family: var(--cc-display); font-weight: 600; letter-spacing: .18em; font-size: 13px; padding: 7px 18px; border-radius: 999px; box-shadow: 0 4px 0 rgba(30,42,74,.08); }
.cc-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cc-display); font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 16px; background: var(--cc-red); color: #fff; border: 0; box-shadow: 0 5px 0 #d94a4a; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.cc-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 #d94a4a; }
.cc-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #d94a4a; }
.cc-btn--ghost { background: #fff; color: var(--cc-ink); box-shadow: 0 5px 0 #dfe4ef; }
.cc-btn--ghost:hover { color: var(--cc-ink); box-shadow: 0 7px 0 #dfe4ef; }
.cc-btn--wa { background: #25d366; box-shadow: 0 5px 0 #1aa34f; }
.cc-btn--wa:hover { box-shadow: 0 7px 0 #1aa34f; }

/* ------------------------------------------------------------------ hero -- */
.cc-hero, .cc-ahead { position: relative; overflow: hidden; background: linear-gradient(180deg, #a9dcff 0%, #cdeeff 45%, #fff3d6 100%); }
.cc-hero { padding: 42px 0 70px; text-align: center; }
/* The rainbow melts into the next section instead of ending on a hard line. */
.cc-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(255,243,214,0), #fff3d6); }
.cc-hero__inner { position: relative; z-index: 2; }
.cc-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cc-cloud { position: absolute; z-index: 1; width: 150px; height: 46px; background: #fff; border-radius: 50px; opacity: .95; animation: cc-drift 38s linear infinite; }
.cc-cloud::before, .cc-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cc-cloud::before { width: 64px; height: 64px; top: -32px; left: 24px; }
.cc-cloud::after { width: 82px; height: 82px; top: -44px; right: 22px; }
.cc-cloud--1 { top: 70px; left: -170px; }
.cc-cloud--2 { top: 190px; left: -170px; transform: scale(.7); animation-duration: 52s; animation-delay: -18s; }
.cc-cloud--3 { top: 34%; left: -170px; transform: scale(.85); animation-duration: 46s; animation-delay: -32s; }
@keyframes cc-drift { from { translate: 0 0; } to { translate: calc(100vw + 340px) 0; } }

.cc-rainbow { position: absolute; z-index: 0; left: 50%; bottom: -330px; width: 900px; height: 900px; translate: -50% 0; animation: cc-rise 1.4s cubic-bezier(.2,.8,.2,1) both; }
.cc-rainbow span { position: absolute; inset: calc(var(--k) * 34px); border-radius: 50%; border: 34px solid var(--c); border-bottom-color: transparent; border-left-color: var(--c); border-right-color: var(--c); }
.cc-rainbow span:nth-child(1) { --k: 0; --c: #ff6b6b; }
.cc-rainbow span:nth-child(2) { --k: 1; --c: #ff9f1c; }
.cc-rainbow span:nth-child(3) { --k: 2; --c: #ffd23f; }
.cc-rainbow span:nth-child(4) { --k: 3; --c: #2ec4a0; }
.cc-rainbow span:nth-child(5) { --k: 4; --c: #3b9dff; }
.cc-rainbow span:nth-child(6) { --k: 5; --c: #8b5cf6; }
.cc-rainbow { opacity: .55; -webkit-mask: linear-gradient(180deg, #000 55%, transparent 75%); mask: linear-gradient(180deg, #000 55%, transparent 75%); }
@keyframes cc-rise { from { transform: translateY(160px) scale(.9); opacity: 0; } to { transform: none; } }

.cc-title { font-family: var(--cc-display); font-weight: 700; line-height: .95; margin: 18px 0 10px; color: var(--cc-blue); display: flex; flex-direction: column; align-items: center; }
.cc-title__word { font-size: clamp(48px, 11vw, 96px); letter-spacing: -.01em; text-shadow: 0 4px 0 rgba(30,42,74,.12); }
.cc-title__word span { display: inline-block; animation: cc-pop .7s cubic-bezier(.3,1.6,.5,1) both, cc-bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms), calc(.8s + var(--i) * 120ms); }
.cc-title__word--2 { color: var(--cc-blue); animation: cc-pop .7s .55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cc-pop { from { transform: translateY(40px) scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.cc-ribbon { margin-top: 10px; background: var(--cc-red); color: #fff; font-size: clamp(26px, 5.5vw, 42px); padding: 8px 34px 10px; border-radius: 14px; transform: rotate(-2.5deg); box-shadow: 0 6px 0 #d94a4a; animation: cc-stamp .6s 1s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes cc-stamp { from { transform: rotate(-2.5deg) scale(2.2); opacity: 0; } to { transform: rotate(-2.5deg) scale(1); opacity: 1; } }
.cc-lede { max-width: 640px; margin: 14px auto 26px; color: var(--cc-ink-soft); font-size: 17px; }
.cc-lede strong { color: var(--cc-ink); }

.cc-champ { max-width: 560px; margin: 0 auto; }
.cc-champ__frame { display: block; position: relative; margin: 0 auto -26px; width: min(78%, 380px); background: #fff; padding: 12px; border-radius: 22px; border: 8px solid var(--cc-yellow); box-shadow: 0 18px 40px rgba(30,42,74,.18); transform: rotate(-3deg); animation: cc-float 5s ease-in-out infinite; z-index: 1; }
.cc-champ__frame img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 12px; background: #f3f8ff; }
.cc-champ__tag { position: absolute; top: -14px; left: -14px; background: var(--cc-red); color: #fff; font-family: var(--cc-display); font-weight: 600; font-size: 13px; padding: 5px 14px; border-radius: 10px; transform: rotate(-6deg); }
@keyframes cc-float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-8px); } }
.cc-champ__card { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 6px solid var(--cc-yellow); border-radius: 22px; padding: 14px 18px; box-shadow: 0 8px 0 #e2a400; }
.cc-champ__trophy { font-size: 40px; animation: cc-wiggle 2.4s ease-in-out infinite; }
@keyframes cc-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg) scale(1.1); } 40% { transform: rotate(10deg) scale(1.1); } 60% { transform: rotate(0); } }
.cc-champ__name { display: block; font-family: var(--cc-display); font-weight: 700; font-size: clamp(20px, 4.5vw, 28px); color: var(--cc-ink); text-decoration: none; line-height: 1.1; }
.cc-points { margin-left: auto; background: var(--cc-yellow); border-radius: 16px; padding: 8px 14px; text-align: center; font-family: var(--cc-display); color: #5a3d00; line-height: 1; }
.cc-points strong { display: block; font-size: 30px; }
.cc-points small { font-size: 11px; letter-spacing: .1em; }

.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 22px auto 0; }
.cc-stat { border-radius: 20px; padding: 14px 8px; color: #fff; font-family: var(--cc-display); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.cc-stat strong { display: block; font-size: clamp(28px, 6vw, 40px); line-height: 1; }
.cc-stat span { font-size: 13px; font-weight: 500; }
.cc-stat--blue { background: var(--cc-blue); }
.cc-stat--pink { background: var(--cc-pink); }
.cc-stat--green { background: var(--cc-green); }
.cc-scroll { display: inline-block; margin-top: 26px; width: 30px; height: 48px; border: 3px solid var(--cc-ink); border-radius: 20px; position: relative; opacity: .5; }
.cc-scroll span { position: absolute; left: 50%; top: 8px; width: 6px; height: 10px; margin-left: -3px; border-radius: 3px; background: var(--cc-ink); animation: cc-wheel 1.6s ease-in-out infinite; }
@keyframes cc-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* -------------------------------------------------------------- sections -- */
.cc-section { padding: 64px 0; }
.cc-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.cc-head h2, .cc-h2 { font-family: var(--cc-display); font-weight: 700; color: var(--cc-ink); font-size: clamp(28px, 5vw, 40px); margin: 6px 0; line-height: 1.1; }
.cc-head p { color: var(--cc-ink-soft); margin: 0; }
.cc-winners { background: linear-gradient(180deg, #fff3d6, var(--cc-cream)); }

/* podium */
.cc-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; max-width: 820px; margin: 0 auto; }
.cc-podium__col { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--cc-ink); }
.cc-podium__pic { position: relative; width: 100%; max-width: 200px; aspect-ratio: 3 / 4; background: #fff; border-radius: 20px; padding: 8px; box-shadow: 0 12px 26px rgba(30,42,74,.14); transition: transform .25s; }
.cc-podium__col:hover .cc-podium__pic { transform: translateY(-6px) rotate(-2deg); }
.cc-podium__pic img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; border-radius: 14px; }
.cc-podium__medal { position: absolute; bottom: -18px; left: 50%; translate: -50% 0; font-size: 40px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); animation: cc-spin 4s ease-in-out infinite; }
@keyframes cc-spin { 0%, 80%, 100% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } }
.cc-podium__name { font-family: var(--cc-display); font-weight: 700; font-size: clamp(14px, 2.6vw, 20px); margin-top: 26px; line-height: 1.15; }
.cc-podium__pts { color: var(--cc-ink-soft); font-size: 14px; margin-bottom: 10px; }
.cc-podium__block { width: 100%; border-radius: 18px 18px 6px 6px; display: flex; align-items: flex-start; justify-content: center; color: #fff; font-family: var(--cc-display); font-weight: 700; font-size: 44px; padding-top: 10px; transform-origin: bottom; }
.cc-podium__col--1 .cc-podium__block { height: 150px; background: linear-gradient(180deg, #ffd23f, #f5b301); }
.cc-podium__col--2 .cc-podium__block { height: 110px; background: linear-gradient(180deg, #c9d3e6, #9aa8c4); }
.cc-podium__col--3 .cc-podium__block { height: 80px; background: linear-gradient(180deg, #ffb27a, #e0874b); }
.cc-podium__col--1 .cc-podium__pic { max-width: 230px; border: 5px solid var(--cc-yellow); }
.cc-js .cc-podium__col.is-in .cc-podium__block { animation: cc-grow .9s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d, 0) * 150ms + .2s); }
@keyframes cc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* scoreboard */
.cc-board-wrap { background: #fff; }
.cc-board { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; gap: 10px; }
.cc-board__row { display: grid; grid-template-columns: 46px minmax(0, 1.2fr) minmax(0, 1fr) 56px 16px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--cc-cream); border: 2px solid #f1e6c8; text-decoration: none; color: var(--cc-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cc-board__row:hover { transform: translateX(4px); border-color: var(--cc-blue); box-shadow: 0 8px 18px rgba(59,157,255,.15); color: var(--cc-ink); }
.cc-board__row.is-top--1 { background: #fff7d6; border-color: #ffd23f; }
.cc-board__row.is-top--2 { background: #f1f4fa; border-color: #c9d3e6; }
.cc-board__row.is-top--3 { background: #fff0e4; border-color: #ffb27a; }
.cc-board__rank { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--cc-display); font-weight: 700; font-size: 18px; box-shadow: 0 3px 0 rgba(0,0,0,.06); }
.cc-board__row.is-top .cc-board__rank { font-size: 26px; background: transparent; box-shadow: none; }
.cc-board__name { display: block; font-family: var(--cc-display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.cc-board__meta { display: block; font-size: 12.5px; color: var(--cc-ink-soft); }
.cc-board__bar { height: 12px; background: #eceff6; border-radius: 8px; overflow: hidden; }
.cc-board__bar span { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, var(--cc-green), var(--cc-blue), var(--cc-purple)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.cc-board__pts { font-family: var(--cc-display); font-weight: 700; font-size: 20px; text-align: right; }
.cc-board__go { color: var(--cc-ink-soft); font-size: 22px; }

/* how it works */
.cc-how { background: linear-gradient(180deg, #eaf6ff, #fff); }
.cc-formula { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.cc-formula__box { min-width: 120px; padding: 14px 18px; border-radius: 20px; color: #fff; text-align: center; font-family: var(--cc-display); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.cc-formula__box strong { display: block; font-size: 40px; line-height: 1; }
.cc-formula__box span { font-size: 13px; }
.cc-formula__box--total { background: var(--cc-red); }
.cc-formula__box--sketch { background: var(--cc-yellow); color: #5a3d00; }
.cc-formula__box--colour { background: var(--cc-green); }
.cc-formula__op { font-family: var(--cc-display); font-size: 36px; color: var(--cc-ink); }
.cc-how__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.cc-how__card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 10px 28px rgba(30,42,74,.08); border: 2px solid #e6f1ff; }
.cc-how__card h3 { font-family: var(--cc-display); font-weight: 700; color: var(--cc-ink); font-size: 21px; display: flex; align-items: center; gap: 10px; }
.cc-how__card h3 span { width: 32px; height: 32px; border-radius: 50%; background: var(--cc-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.cc-how__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.cc-how__list li { background: var(--cc-cream); border-radius: 12px; padding: 9px 12px; }
.cc-skills4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cc-skills4 div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; background: var(--cc-cream); border-radius: 14px; padding: 10px; }
.cc-skills4 i { grid-row: span 2; }
.cc-skills4 b { font-family: var(--cc-display); font-weight: 600; color: var(--cc-ink); }
.cc-skills4 span { font-size: 12.5px; color: var(--cc-ink-soft); }
.cc-note { text-align: center; color: var(--cc-ink-soft); font-size: 14px; max-width: 720px; margin: 20px auto 0; }

/* skill icons: simple drawn shapes, no image files */
.cc-ico { display: inline-flex; width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; position: relative; }
.cc-ico::after { content: ''; position: absolute; inset: 9px; border-radius: 4px; }
.cc-ico--lines { background: #e3f1ff; } .cc-ico--lines::after { border: 3px dashed var(--cc-blue); border-radius: 5px; }
.cc-ico--friends { background: #ffe6f0; } .cc-ico--friends::after { background: radial-gradient(circle at 30% 50%, var(--cc-pink) 0 32%, transparent 34%), radial-gradient(circle at 70% 50%, #ffa8c9 0 32%, transparent 34%); }
.cc-ico--shade { background: #efe7ff; } .cc-ico--shade::after { border-radius: 50%; background: linear-gradient(90deg, var(--cc-purple) 50%, #d9c8ff 50%); }
.cc-ico--finish { background: #dcf7ef; } .cc-ico--finish::after { border-radius: 50%; background: var(--cc-green); -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%); mask: radial-gradient(circle, #000 64%, transparent 66%); }

/* artist cards */
.cc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cc-card { background: #fff; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--cc-ink); box-shadow: 0 10px 26px rgba(30,42,74,.09); border: 2px solid #f0f2f8; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.cc-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 36px rgba(30,42,74,.16); border-color: var(--cc-yellow); color: var(--cc-ink); }
/* overflow:hidden + an absolutely placed picture: a tall sketch can no longer stretch the box past its ratio */
.cc-card__pic { position: relative; aspect-ratio: 4 / 3.6; background: #f3f8ff; overflow: hidden; }
.cc-card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cc-card:hover .cc-card__pic img { transform: scale(1.06); }
.cc-card__place { position: absolute; top: 10px; left: 10px; background: var(--cc-purple); color: #fff; font-family: var(--cc-display); font-weight: 600; padding: 4px 12px; border-radius: 12px; font-size: 14px; }
.cc-card__pts { position: absolute; top: 10px; right: 10px; background: var(--cc-yellow); color: #5a3d00; font-family: var(--cc-display); font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.cc-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.cc-card__name { font-family: var(--cc-display); font-weight: 700; font-size: 18px; line-height: 1.15; }
.cc-card__meta { font-size: 12.5px; color: var(--cc-ink-soft); margin: 2px 0 10px; }
.cc-card__skills { display: grid; gap: 6px; }
.cc-card__skills span { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; }
.cc-card__skills .cc-ico { width: 22px; height: 22px; border-radius: 7px; }
.cc-card__skills .cc-ico::after { inset: 5px; border-width: 2px; }
.cc-card__skills b { display: block; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--cc-green), var(--cc-blue)); width: var(--w); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.cc-card__go { margin-top: auto; padding-top: 12px; font-family: var(--cc-display); font-weight: 600; color: var(--cc-blue); }

/* end */
.cc-end__card { text-align: center; background: linear-gradient(135deg, #ffe08a, #ffb3c9 55%, #b9dcff); border-radius: 30px; padding: 40px 22px; box-shadow: 0 14px 34px rgba(30,42,74,.12); }
.cc-end__stars { font-size: 30px; letter-spacing: 6px; animation: cc-bob 2.6s ease-in-out infinite; }
.cc-end__card h2 { font-family: var(--cc-display); font-weight: 700; color: var(--cc-ink); font-size: clamp(26px, 5vw, 38px); }
.cc-end__card p { max-width: 560px; margin: 0 auto 20px; color: var(--cc-ink); }
.cc-end__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cc-end__more { margin-top: 18px; font-size: 14px; }
.cc-end__more a { margin-left: 8px; font-weight: 700; color: var(--cc-ink); }

/* ------------------------------------------------------------ artist page -- */
.cc-ahead { padding: 22px 0 34px; }
.cc-ahead .container { position: relative; z-index: 2; }
.cc-back { display: inline-block; font-weight: 600; color: var(--cc-ink); text-decoration: none; background: rgba(255,255,255,.7); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.cc-ahead__row { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.cc-medal { width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--cc-display); color: #fff; border: 8px solid #fff; box-shadow: 0 10px 26px rgba(30,42,74,.18); }
.cc-medal small { font-size: 13px; letter-spacing: .14em; opacity: .9; }
.cc-medal strong { font-size: 56px; line-height: 1; }
.cc-medal--1 { background: radial-gradient(circle at 35% 30%, #ffe27a, #f5b301); }
.cc-medal--2 { background: radial-gradient(circle at 35% 30%, #e8eef8, #9aa8c4); }
.cc-medal--3 { background: radial-gradient(circle at 35% 30%, #ffc99e, #e0874b); }
.cc-medal--4 { background: radial-gradient(circle at 35% 30%, #c4a8ff, var(--cc-purple)); }
.cc-js .cc-medal.is-in { animation: cc-medal .9s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cc-medal { from { transform: scale(.2) rotate(-180deg); } to { transform: none; } }
.cc-ahead__who h1 { font-family: var(--cc-display); font-weight: 700; color: var(--cc-ink); font-size: clamp(30px, 6vw, 52px); margin: 2px 0 10px; line-height: 1.05; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chips span { background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--cc-ink); box-shadow: 0 3px 0 rgba(30,42,74,.07); }

.cc-asec { padding-top: 26px; }
.cc-pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.cc-pcard { border-radius: 22px; padding: 14px 16px; color: #fff; text-align: center; font-family: var(--cc-display); box-shadow: 0 7px 0 rgba(0,0,0,.13); }
.cc-pcard small { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .95; }
.cc-pcard strong { font-size: clamp(30px, 5vw, 42px); line-height: 1.05; }
.cc-pcard em { font-style: normal; font-size: 15px; opacity: .85; margin-left: 4px; }
.cc-pcard--gold { background: #f2a900; }
.cc-pcard--green { background: var(--cc-green); }
.cc-pcard--red { background: var(--cc-red); }
.cc-pcard--purple { background: var(--cc-purple); }

.cc-acols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
.cc-h2 { font-size: clamp(22px, 3.6vw, 28px) !important; margin-bottom: 14px !important; }
.cc-h2--center { text-align: center; }
.cc-sub { text-align: center; color: var(--cc-ink-soft); margin: -6px auto 22px; max-width: 600px; }
.cc-skills { display: grid; gap: 10px; }
.cc-skill { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 38px; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 10px 14px; border: 2px solid #eef1f7; }
.cc-skill__txt b { display: block; font-family: var(--cc-display); font-weight: 600; color: var(--cc-ink); }
.cc-skill__txt small { color: var(--cc-ink-soft); font-size: 12px; }
.cc-skill > strong { font-family: var(--cc-display); font-size: 19px; color: var(--cc-ink); text-align: right; }

/* stars: an empty row with a filled row on top, cut to the score */
.cc-stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; color: #e5e8f0; white-space: nowrap; }
.cc-stars::before { content: '★★★★★'; }
.cc-stars__fill { position: absolute; inset: 0; overflow: hidden; width: var(--w); color: var(--cc-yellow); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.cc-stars__fill::before { content: '★★★★★'; }
/* With the script running, bars and stars start empty and fill when seen. */
.cc-js .contest [data-bar]:not(.is-on), .cc-js .contest .cc-stars:not(.is-on) .cc-stars__fill { width: 0; }
.cc-stars--lines .cc-stars__fill { color: var(--cc-blue); }
.cc-stars--friends .cc-stars__fill { color: var(--cc-pink); }
.cc-stars--shade .cc-stars__fill { color: var(--cc-purple); }
.cc-stars--finish .cc-stars__fill { color: var(--cc-green); }

.cc-bubble { position: relative; margin-top: 20px; background: #eef7ff; border: 3px solid var(--cc-blue); border-radius: 20px; padding: 14px 18px; }
.cc-bubble::before { content: ''; position: absolute; top: -14px; left: 34px; width: 22px; height: 22px; background: #eef7ff; border-left: 3px solid var(--cc-blue); border-top: 3px solid var(--cc-blue); transform: rotate(45deg); }
.cc-bubble .cc-eyebrow { color: var(--cc-blue); }
.cc-bubble p { margin: 6px 0 0; color: var(--cc-ink); font-size: 16px; line-height: 1.55; }
.cc-twochips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cc-twochips div { border-radius: 16px; padding: 10px 14px; }
.cc-twochips small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cc-twochips b { font-family: var(--cc-display); font-size: 17px; }
.cc-twochips__a { background: #dcf7ef; color: #11745d; }
.cc-twochips__b { background: #fff1d6; color: #8a5a00; }

.cc-starframe { display: block; position: relative; background: #fff; border: 10px solid var(--cc-yellow); border-radius: 26px; padding: 14px; box-shadow: 0 10px 0 #e2a400, 0 22px 40px rgba(30,42,74,.12); transition: transform .3s; }
.cc-starframe:hover { transform: rotate(-1.2deg) scale(1.01); }
.cc-starframe img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 12px; background: #f3f8ff; }
.cc-starframe__tag { position: absolute; z-index: 2; top: -16px; left: -12px; background: var(--cc-red); color: #fff; font-family: var(--cc-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 6px 14px; border-radius: 10px; transform: rotate(-5deg); box-shadow: 0 4px 0 #d94a4a; }
.cc-starcap { text-align: center; margin-top: 16px; }
.cc-starcap b { display: block; font-family: var(--cc-display); font-size: 19px; color: var(--cc-ink); }
.cc-starcap span { color: var(--cc-ink-soft); font-size: 14px; }

.cc-sketches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.cc-sk { position: relative; background: #fff; border-radius: 26px; padding: 16px 18px 18px; border: 6px solid var(--tone); box-shadow: 0 10px 24px rgba(30,42,74,.08); }
.cc-sk--red { --tone: var(--cc-red); }
.cc-sk--blue { --tone: var(--cc-blue); }
.cc-sk--green { --tone: var(--cc-green); }
.cc-sk--purple { --tone: var(--cc-purple); }
.cc-sk.is-best { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--cc-yellow), 0 14px 30px rgba(30,42,74,.12); }
.cc-sk__n { position: absolute; top: 14px; left: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--tone); color: #fff; font-family: var(--cc-display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cc-sk__score { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--cc-yellow); color: #5a3d00; font-family: var(--cc-display); font-weight: 700; padding: 4px 12px; border-radius: 12px; }
.cc-sk__pic { display: block; border-radius: 16px; overflow: hidden; background: #f3f8ff; aspect-ratio: 4 / 3.4; cursor: zoom-in; }
.cc-sk__pic { position: relative; }
.cc-sk__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .45s; }
.cc-sk__pic:hover img { transform: scale(1.05); }
.cc-sk h3 { font-family: var(--cc-display); font-weight: 700; color: var(--cc-ink); font-size: 20px; margin: 14px 0 10px; }
.cc-badge { font-size: 12px; background: #fff1d6; color: #8a5a00; padding: 3px 9px; border-radius: 9px; vertical-align: middle; }
.cc-sk__skills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 12px; }
.cc-sk__skills div { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.cc-sk__skills .cc-ico { width: 24px; height: 24px; border-radius: 8px; grid-row: span 2; }
.cc-sk__skills .cc-ico::after { inset: 6px; border-width: 2px; }
.cc-sk__skills span:not(.cc-stars):not(.cc-stars__fill) { font-size: 12px; font-weight: 600; color: var(--cc-ink-soft); line-height: 1.1; }
.cc-sk__skills .cc-stars { font-size: 14px; }
.cc-sk__good, .cc-sk__try { border-radius: 14px; padding: 10px 12px; margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--cc-ink); }
.cc-sk__good { background: #e3f8ef; }
.cc-sk__good b { color: #11845f; }
.cc-sk__try { background: #fff2dc; }
.cc-sk__try b { color: #b26a00; }

.cc-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border-radius: 24px; padding: 18px 20px; margin: 40px 0 22px; box-shadow: 0 10px 24px rgba(30,42,74,.08); border: 2px solid #e3f8ef; }
.cc-share > div { flex: 1 1 260px; }
.cc-share b { display: block; font-family: var(--cc-display); font-size: 19px; color: var(--cc-ink); }
.cc-share span { color: var(--cc-ink-soft); font-size: 14px; }
.cc-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.cc-pager__a { background: #fff; border-radius: 18px; padding: 12px 16px; text-decoration: none; color: var(--cc-ink); border: 2px solid #eef1f7; transition: border-color .2s, transform .2s; }
.cc-pager__a:hover { border-color: var(--cc-blue); color: var(--cc-ink); transform: translateY(-2px); }
.cc-pager__a small { display: block; color: var(--cc-ink-soft); font-weight: 600; }
.cc-pager__a b { font-family: var(--cc-display); font-size: 17px; }
.cc-pager__a--next { text-align: right; }
.cc-pager__all { font-family: var(--cc-display); font-weight: 600; color: var(--cc-blue); text-decoration: none; }
.cc-star-note { text-align: center; color: var(--cc-ink-soft); margin: 26px 0 0; font-family: var(--cc-display); font-size: 18px; }

/* lightbox (built by contest.js) */
.cc-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(18,24,44,.9); display: flex; align-items: center; justify-content: center; padding: 56px 14px 70px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cc-lb.is-open { opacity: 1; pointer-events: auto; }
.cc-lb img { max-width: 100%; max-height: 100%; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.92); transition: transform .3s; }
.cc-lb.is-open img { transform: none; }
.cc-lb__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-family: var(--cc-display); font-size: 18px; padding: 0 60px; }
.cc-lb button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.cc-lb button:hover { background: rgba(255,255,255,.3); }
.cc-lb__close { top: 12px; right: 12px; }
.cc-lb__prev { left: 12px; top: 50%; margin-top: -23px; }
.cc-lb__next { right: 12px; top: 50%; margin-top: -23px; }
.cc-toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--cc-ink); color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 9999; font-weight: 600; animation: cc-pop .4s both; }

/* -------------------------------------------------------------- phones -- */
@media (max-width: 991px) {
  .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-how__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cc-section { padding: 46px 0; }
  .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cc-card__body { padding: 10px 12px 12px; }
  .cc-card__name { font-size: 15.5px; }
  .cc-card__skills { display: none; }
  .cc-podium { gap: 8px; }
  .cc-podium__medal { font-size: 30px; bottom: -14px; }
  .cc-podium__block { font-size: 32px; }
  .cc-podium__col--1 .cc-podium__block { height: 110px; }
  .cc-podium__col--2 .cc-podium__block { height: 80px; }
  .cc-podium__col--3 .cc-podium__block { height: 58px; }
  .cc-board__row { grid-template-columns: 38px minmax(0, 1fr) 48px; gap: 10px; padding: 10px 12px; }
  .cc-board__bar, .cc-board__go { display: none; }
  .cc-board__rank { width: 34px; height: 34px; font-size: 16px; }
  .cc-stats { gap: 8px; }
  .cc-stat span { font-size: 11.5px; }
  .cc-skills4 { grid-template-columns: 1fr; }
  .cc-rainbow { width: 640px; height: 640px; bottom: -240px; }
  .cc-rainbow span { inset: calc(var(--k) * 24px); border-width: 24px; }
  .cc-ahead__row { gap: 14px; }
  .cc-medal { width: 92px; height: 92px; border-width: 6px; }
  .cc-medal strong { font-size: 40px; }
  .cc-medal small { font-size: 10px; }
  .cc-pcards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cc-acols { grid-template-columns: 1fr; }
  .cc-sketches { grid-template-columns: 1fr; }
  .cc-skill { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .cc-skill > strong { display: none; }
  .cc-pager { grid-template-columns: 1fr 1fr; }
  .cc-pager__all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .cc-champ__card { padding: 12px; gap: 10px; }
  .cc-champ__trophy { font-size: 30px; }
  .cc-points strong { font-size: 24px; }
}

/* ----------------------------------------------------- children's photos -- */
/* Cut-out photos (transparent background) sit on a bright disc, so every child
   looks like they were photographed in the same happy studio. */
.cc-av { --ring: conic-gradient(var(--cc-red), var(--cc-yellow), var(--cc-green), var(--cc-blue), var(--cc-purple), var(--cc-pink), var(--cc-red));
  display: inline-flex; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; padding: 3px; background: var(--ring);
  box-shadow: 0 4px 10px rgba(30,42,74,.15); }
.cc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
  background: radial-gradient(circle at 50% 35%, #fffbe6 0%, #ffe08a 55%, #ffc93c 100%); }
.cc-av--sm { width: 40px; height: 40px; }
.cc-av--lg { width: 64px; height: 64px; padding: 4px; }
.cc-av--card { position: absolute; left: 12px; bottom: -22px; width: 58px; height: 58px; z-index: 2; border: 3px solid #fff; padding: 3px; }
.cc-card__pic { overflow: visible !important; }
.cc-card__pic img:not(.cc-av img) { border-radius: 20px 20px 0 0; }
.cc-card__body { padding-top: 26px; }
.cc-av--podium { width: 70px; height: 70px; margin-top: 26px; margin-bottom: -18px; padding: 4px; animation: cc-bob 3s ease-in-out infinite; }
.cc-board__row .cc-av { margin-right: -4px; }
.cc-board__row { grid-template-columns: 46px auto minmax(0, 1.2fr) minmax(0, 1fr) 56px 16px; }
.cc-board__row:not(:has(.cc-av)) { grid-template-columns: 46px minmax(0, 1.2fr) minmax(0, 1fr) 56px 16px; }

.cc-champ__face { position: relative; display: inline-flex; }
.cc-champ__cup { position: absolute; right: -8px; bottom: -6px; font-size: 24px; animation: cc-wiggle 2.4s ease-in-out infinite; }

/* "Milein in chamakte sitaron se" -- a row of big smiling cut-outs */
.cc-stars-row { background: linear-gradient(180deg, var(--cc-cream), #eaf6ff); }
.cc-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cc-face { position: relative; width: 190px; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--cc-ink); }
.cc-face__bg { position: absolute; top: 18px; left: 50%; width: 170px; height: 170px; translate: -50% 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--c1) 0 15deg, var(--c2) 15deg 30deg); box-shadow: 0 0 0 6px #fff, 0 14px 30px rgba(30,42,74,.18);
  animation: cc-turn 30s linear infinite; }
.cc-face--0 { --c1: #ffd23f; --c2: #ffe684; }
.cc-face--1 { --c1: #7cc8ff; --c2: #a9dcff; }
.cc-face--2 { --c1: #ff8fb8; --c2: #ffb3cf; }
.cc-face--3 { --c1: #6fe0c0; --c2: #a3eed8; }
.cc-face--4 { --c1: #b69cff; --c2: #d2c2ff; }
@keyframes cc-turn { to { rotate: 360deg; } }
.cc-face img { position: relative; z-index: 1; width: 176px; height: 196px; object-fit: contain; object-position: 50% 100%;
  -webkit-mask: radial-gradient(circle at 50% 107px, #000 85px, transparent 86px), linear-gradient(#000 0 0) top / 100% 60% no-repeat;
          mask: radial-gradient(circle at 50% 107px, #000 85px, transparent 86px), linear-gradient(#000 0 0) top / 100% 60% no-repeat;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 100%; }
.cc-face:hover img { transform: scale(1.07) rotate(-2deg); }
.cc-face__place { position: absolute; top: 8px; right: 6px; z-index: 2; background: var(--cc-red); color: #fff; font-family: var(--cc-display);
  font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 12px; transform: rotate(8deg); box-shadow: 0 3px 0 #d94a4a; }
.cc-face__name { margin-top: 12px; font-family: var(--cc-display); font-weight: 700; font-size: 18px; text-align: center; line-height: 1.15;
  background: #fff; padding: 6px 14px; border-radius: 14px; box-shadow: 0 4px 0 #e8ecf4; }
.cc-face__note { font-size: 12px; color: var(--cc-ink-soft); margin-top: 4px; }

/* the artist page portrait */
.cc-ahead__row { flex-wrap: wrap; }
.cc-portrait { position: relative; margin: 0 0 0 auto; width: 230px; height: 230px; flex-shrink: 0; }
.cc-portrait__sun { position: absolute; inset: 14px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffd23f 0 12deg, #ffe89a 12deg 24deg); box-shadow: 0 0 0 8px #fff, 0 16px 34px rgba(30,42,74,.18);
  animation: cc-turn 40s linear infinite; }
.cc-portrait--2 .cc-portrait__sun { background: repeating-conic-gradient(from 0deg, #c9d3e6 0 12deg, #e8eef8 12deg 24deg); }
.cc-portrait--3 .cc-portrait__sun { background: repeating-conic-gradient(from 0deg, #ffb27a 0 12deg, #ffd6b8 12deg 24deg); }
.cc-portrait--4 .cc-portrait__sun { background: repeating-conic-gradient(from 0deg, #7cc8ff 0 12deg, #b9e1ff 12deg 24deg); }
.cc-portrait img { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; width: 210px; height: 240px; object-fit: contain; object-position: 50% 100%;
  -webkit-mask: radial-gradient(circle at 50% 125px, #000 101px, transparent 102px), linear-gradient(#000 0 0) top / 100% 55% no-repeat;
          mask: radial-gradient(circle at 50% 125px, #000 101px, transparent 102px), linear-gradient(#000 0 0) top / 100% 55% no-repeat; }
.cc-portrait figcaption { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; white-space: nowrap; background: #fff; color: var(--cc-ink);
  font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 0 rgba(30,42,74,.08); z-index: 2; }
.cc-portrait__spark { position: absolute; z-index: 2; color: var(--cc-yellow); font-size: 26px; text-shadow: 0 2px 0 rgba(0,0,0,.08); animation: cc-twinkle 2.4s ease-in-out infinite; }
.cc-portrait__spark--1 { top: 4px; left: 10px; }
.cc-portrait__spark--2 { top: 30px; right: 0; color: var(--cc-pink); font-size: 22px; animation-delay: .8s; }
.cc-portrait__spark--3 { bottom: 40px; left: -4px; color: var(--cc-blue); font-size: 20px; animation-delay: 1.5s; }
@keyframes cc-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(25deg); opacity: .5; } }

@media (max-width: 767px) {
  .cc-board__row { grid-template-columns: 38px auto minmax(0, 1fr) 48px; }
  .cc-board__row:not(:has(.cc-av)) { grid-template-columns: 38px minmax(0, 1fr) 48px; }
  .cc-board__row .cc-av { width: 34px; height: 34px; padding: 2px; }
  .cc-faces { gap: 14px; }
  .cc-face { width: 150px; }
  .cc-face__bg { width: 136px; height: 136px; }
  .cc-face img { width: 140px; height: 158px;
    -webkit-mask: radial-gradient(circle at 50% 86px, #000 68px, transparent 69px), linear-gradient(#000 0 0) top / 100% 60% no-repeat;
            mask: radial-gradient(circle at 50% 86px, #000 68px, transparent 69px), linear-gradient(#000 0 0) top / 100% 60% no-repeat; }
  .cc-face__name { font-size: 15px; }
  .cc-portrait { margin: 18px auto 6px; width: 200px; height: 200px; }
  .cc-portrait img { width: 184px; height: 210px;
    -webkit-mask: radial-gradient(circle at 50% 110px, #000 87px, transparent 88px), linear-gradient(#000 0 0) top / 100% 55% no-repeat;
            mask: radial-gradient(circle at 50% 110px, #000 87px, transparent 88px), linear-gradient(#000 0 0) top / 100% 55% no-repeat; }
  .cc-av--card { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .contest *, .contest *::before, .contest *::after { animation: none !important; transition: none !important; }
  .cc-js .contest [data-reveal] { opacity: 1; transform: none; }
  .cc-js .contest [data-bar]:not(.is-on), .cc-js .contest .cc-stars:not(.is-on) .cc-stars__fill { width: var(--w); }
  .cc-cloud { display: none; }
}
