.demo-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: #fff7d1; border: 2px dashed #ffb020; color: #7a4a00; font-weight: 700; font-size: 14px; }
.demo-note strong { padding: 3px 9px; border-radius: 8px; background: #ffb020; color: #fff; font: 400 14px/1.2 var(--display); letter-spacing: .03em; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.cat-card {
  --c: var(--blue);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px;
  border-radius: 18px; background: #fff; border: 3px solid transparent;
  box-shadow: 0 5px 0 #c3e2f5, 0 14px 24px -18px rgba(13, 63, 106, .5);
  transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), box-shadow .18s, border-color .18s;
}
.cat-card:hover { transform: translateY(-4px) rotate(-1deg); }
.cat-card[aria-selected="true"] { border-color: var(--c); box-shadow: 0 6px 0 var(--c), 0 18px 30px -16px var(--c); transform: translateY(-3px); }
.cat-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: color-mix(in srgb, var(--c) 18%, #fff); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.cat-icon svg { width: 42px; height: 42px; }
.cat-card:hover .cat-icon, .cat-card[aria-selected="true"] .cat-icon { transform: scale(1.1) rotate(-6deg); }
.cat-name { font: 400 16px/1.1 var(--display); text-align: center; }

/* Board */
.board { --c: var(--blue); border-radius: 26px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 0 #c3e2f5, var(--shadow); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #fff), #fff 70%); }
.board-title { display: flex; align-items: center; gap: 14px; }
.board-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, #fff); animation: bob 3s ease-in-out infinite; }
.board-icon svg { width: 46px; height: 46px; }
.board-title h2 { font-size: clamp(24px, 3vw, 32px); }
.board-title p { color: var(--muted); font-size: 15px; }
.board .tabs button[aria-selected="true"] { background: var(--c); }
.board.swap .podium-zone, .board.swap .rank-list { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

.job-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 6px; }
.job-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); border: 2px solid var(--line); font-weight: 800; font-size: 14px; color: var(--muted); }
.job-chips button img { width: 28px; height: 22px; object-fit: contain; }
.job-chips button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--text); }

/* Podium */
.podium-zone { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 14px; padding: 26px 40px 0; max-width: 760px; margin: 0 auto; }
.pod-spot { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod-player { position: relative; height: 170px; display: flex; align-items: flex-end; justify-content: center; }
.pod-player img { height: 160px; width: auto; filter: drop-shadow(0 10px 10px rgba(13, 63, 106, .3)); image-rendering: pixelated; transition: transform .3s cubic-bezier(.2, 1.6, .4, 1); }
.pod-spot:hover .pod-player img { transform: translateY(-6px) rotate(-3deg); }
.p1 .pod-player { height: 200px; }
.p1 .pod-player img { height: 190px; }
.pod-crown { position: absolute; top: -18px; left: 50%; translate: -50% 0; z-index: 1; animation: bob 2.6s ease-in-out infinite; }
.pod-crown svg { width: 48px; height: 48px; }
.pod-name { margin-top: 8px; font: 400 19px/1.1 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-value { margin: 6px 0 10px; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--text); font-weight: 900; font-size: 14px; }
.pod-block { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 10px; border: 3px solid #0d3f6a; border-bottom: 0; }
.pod-block span { font: 400 40px/1 var(--display); color: #fff; text-shadow: 0 3px 0 rgba(13, 63, 106, .45); }
.p1 .pod-block { height: 120px; background: linear-gradient(180deg, #ffe36b, #ffb020); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08); }
.p2 .pod-block { height: 86px; background: linear-gradient(180deg, #eef5ff, #a9bde0); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .06); }
.p3 .pod-block { height: 64px; background: linear-gradient(180deg, #ffc49a, #e0884a); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08); }
.pod-spot.is-me .pod-name::after { content: ' (toi)'; color: var(--gold-2); }

/* List */
.list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 24px 10px; border-top: 3px solid #0d3f6a; background: var(--surface-2); }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #fff; border: 2px solid var(--line-2); }
.search svg { width: 20px; height: 20px; color: var(--dim); }
.search input { flex: 1; border: 0; outline: 0; padding: 11px 0; background: none; font-weight: 700; }
.search:focus-within { border-color: var(--c); }
.list-tools .hint { margin-left: auto; }

.rank-list { list-style: none; margin: 0; padding: 6px 24px 24px; background: var(--surface-2); display: grid; gap: 8px; max-height: 620px; overflow-y: auto; }
.rank-row {
  display: grid; grid-template-columns: 44px 36px minmax(90px, 180px) 1fr auto; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; border: 2px solid transparent; box-shadow: 0 3px 0 #d6ebf8;
  transition: transform .15s, border-color .15s;
}
.rank-row:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--c) 50%, #fff); }
.rank-pos { display: grid; place-items: center; height: 34px; border-radius: 10px; background: var(--surface-2); font: 400 17px/1 var(--display); color: var(--muted); }
.rank-head { width: 36px; height: 36px; border-radius: 9px; image-rendering: pixelated; background: var(--surface-2); }
.rank-name { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); animation: grow .7s cubic-bezier(.2, .9, .3, 1); }
@keyframes grow { from { width: 0; } }
.rank-value { font: 400 16px/1 var(--display); color: var(--text); white-space: nowrap; }
.rank-row.is-me { border-color: var(--gold-2); background: #fff7d1; }
.rank-row.is-me .rank-name::after { content: ' (toi)'; color: var(--gold-2); }
.empty { padding: 0 24px 24px; background: var(--surface-2); color: var(--muted); font-weight: 700; text-align: center; }

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .cat-card { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(10, 110px); }
  .podium-zone { padding: 18px 12px 0; gap: 8px; }
  .pod-player, .p1 .pod-player { height: 130px; }
  .pod-player img { height: 120px; }
  .p1 .pod-player img { height: 130px; }
  .pod-name { font-size: 15px; }
  .pod-value { font-size: 12px; }
  .rank-row { grid-template-columns: 36px 30px 1fr auto; gap: 8px; }
  .rank-bar { display: none; }
  .rank-head { width: 30px; height: 30px; }
  .board-head, .list-tools, .rank-list, .job-chips { padding-left: 14px; padding-right: 14px; }
  .list-tools .hint { margin-left: 0; }
}
