/* Most Likely To — a yearbook superlatives page: cream paper, navy ink, gold-foil seals, red ribbon. */
.ml-page { --ink: #1d2a52; --ink-2: #5a6385; --paper: #fbf3e2; --paper-2: #f3e6c9; --gold: #d9a520; --gold-2: #a87b0f; --red: #c8343c; }
.ml-page [hidden] { display: none !important; }
.ml-title { font-family: 'Abril Fatface', Georgia, serif; font-weight: 400; color: var(--ink); letter-spacing: 0; }

.cbx-card.ml-card { --cbx-full-pad: 22px; position: relative; padding: 24px 22px 22px; color: var(--ink); overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(29, 42, 82, .05) 31px 32px), var(--paper);
  box-shadow: 0 0 0 6px var(--ink), 0 0 0 9px var(--gold), 0 30px 60px -24px rgba(29, 42, 82, .6); }
.cbx-card.ml-card::before { content: ''; position: absolute; inset: 10px; border: 2px solid rgba(217, 165, 32, .55); border-radius: 14px; pointer-events: none; }
.cbx-card.ml-card p { color: inherit; }
.ml-banner, .cbx-card.ml-card .ml-banner { position: relative; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font: 800 14px/1.45 var(--cbx-body); color: var(--paper); background: var(--ink); }
.ml-banner b { color: var(--gold); }

.ml-hello { position: relative; text-align: center; max-width: 460px; margin: 4px auto 0; }
.ml-hello h2 { margin: 8px 0 4px; } .ml-seal + h2 { margin-top: 36px; } .ml-hello h2 { font: 400 clamp(28px, 7.4vw, 38px)/1.08 'Abril Fatface', Georgia, serif; color: var(--ink); }
.cbx-card .ml-hello p { margin: 0; font: 800 15.5px/1.45 var(--cbx-body); color: var(--ink-2); }
.ml-seal { position: relative; display: grid; place-content: center; width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #f6d36b, var(--gold) 55%, var(--gold-2)); box-shadow: inset 0 0 0 7px rgba(251, 243, 226, .35), 0 6px 0 rgba(29, 42, 82, .18); text-align: center; line-height: .95; transform: rotate(-8deg); }
.ml-seal::before { content: ''; position: absolute; inset: 11px; border: 2px dashed rgba(251, 243, 226, .8); border-radius: 50%; }
.ml-seal::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 56px; height: 40px; margin-left: -28px; z-index: -1; background: linear-gradient(90deg, var(--red) 50%, #a52a31 50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 72%, 50% 100%, 25% 72%, 0 100%); }
.ml-seal b { font: 400 25px 'Abril Fatface', serif; } .ml-seal small { font: 900 12px var(--cbx-body); letter-spacing: .14em; }

/* the group list */
.ml-names { list-style: none; display: grid; gap: 8px; max-width: 440px; margin: 26px auto 0; padding: 0; }
.ml-names li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(29, 42, 82, .12), 0 6px 14px -10px rgba(29, 42, 82, .5); animation: ml-in .25s ease-out both; }
.ml-names .n { flex: 1; font: 900 18px var(--cbx-body); color: var(--ink); }
.ml-names .n i, .ml-opt .n i { font: 900 11px var(--cbx-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-left: 4px; }
.ml-names .x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--paper-2); color: var(--ink); font: 900 20px/1 var(--cbx-body); cursor: pointer; }
.i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--seal, var(--gold)); color: #fff; font: 400 20px 'Abril Fatface', serif; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.ml-add { display: flex; gap: 8px; max-width: 440px; margin: 10px auto 0; }
.ml-add input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 2px dashed rgba(29, 42, 82, .35); border-radius: 14px; background: rgba(255, 255, 255, .6); color: var(--ink); font: 900 17px var(--cbx-body); }
.ml-add input:focus { outline: none; border-style: solid; border-color: var(--ink); background: #fff; }
.ml-add-b { min-width: 76px; border: 0; border-radius: 14px; background: var(--ink); color: var(--paper); font: 900 16px var(--cbx-body); cursor: pointer; }
.ml-add-b:disabled, .ml-add input:disabled { opacity: .45; cursor: default; }
.cbx-card .ml-hint { max-width: 440px; margin: 8px auto 0; text-align: center; font: 800 14px var(--cbx-body); color: var(--ink-2); }

.ml-card .cbx-btn { border-radius: 16px; font-weight: 900; min-height: 56px; }
.ml-card .cbx-btn.ml-go { position: relative; max-width: 440px; margin: 14px auto 0; border: 0; color: #fff; font-size: 18px; background: linear-gradient(180deg, #d9464e, var(--red)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 5px 0 #8e2128; }
.ml-card .cbx-btn.ml-go:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 #8e2128; }
.ml-card .cbx-btn.ml-go:disabled { opacity: .45; transform: none; }
.ml-card .cbx-btn.ml-img { max-width: 440px; margin: 10px auto 0; border: 0; color: var(--ink); background: linear-gradient(180deg, #f2cd62, var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 5px 0 var(--gold-2); }
.ml-link { border: 0; background: none; padding: 10px 12px; color: var(--ink); font: 900 15px var(--cbx-body); text-decoration: underline; text-decoration-color: rgba(29, 42, 82, .3); text-underline-offset: 4px; cursor: pointer; }
.ml-center { display: block; margin: 8px auto 0; }
.ml-mine { max-width: 440px; margin: 20px auto 0; }
.cbx-card .ml-mine-h { margin: 0 0 6px; font: 900 12px var(--cbx-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ml-mine-b { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 900 15px var(--cbx-body); cursor: pointer; text-align: left; box-shadow: 0 1px 0 rgba(29, 42, 82, .12); }
.ml-mine-b i { flex: none; font-style: normal; font-size: 13px; color: var(--red); }

/* name buttons: who are you, and every vote */
.ml-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 520px; margin: 16px auto 0; }
.ml-opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); text-align: left; cursor: pointer;
  box-shadow: 0 1px 0 rgba(29, 42, 82, .12), 0 4px 0 rgba(29, 42, 82, .14); transition: transform .12s, box-shadow .12s; }
.ml-opt .n { font: 900 17px/1.15 var(--cbx-body); overflow-wrap: anywhere; }
.ml-opt .ok { position: absolute; top: 6px; right: 8px; font: 900 11px var(--cbx-body); color: #2f6f6a; }
.ml-opt:hover { transform: translateY(-2px); }
.ml-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(29, 42, 82, .12); }
.ml-opt.was { box-shadow: inset 0 0 0 3px var(--seal), 0 4px 0 rgba(29, 42, 82, .14); }
.ml-opt.picked { background: var(--seal); color: #fff; transform: scale(1.04) rotate(-1deg); box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--seal); }
.ml-opt.picked .i { background: #fff; color: var(--seal); }
.ml-opt.picked .n i { color: #fff; }
.ml-pick.in .ml-opt { animation: ml-in .3s cubic-bezier(.2, .9, .3, 1.2) both; }
.ml-pick.in .ml-opt:nth-child(2) { animation-delay: .03s; } .ml-pick.in .ml-opt:nth-child(3) { animation-delay: .06s; } .ml-pick.in .ml-opt:nth-child(4) { animation-delay: .09s; }
.ml-pick.in .ml-opt:nth-child(5) { animation-delay: .12s; } .ml-pick.in .ml-opt:nth-child(n+6) { animation-delay: .15s; }
@keyframes ml-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.ml-top { position: relative; display: flex; justify-content: space-between; gap: 10px; max-width: 520px; margin: 0 auto; font: 900 12px var(--cbx-body); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ml-as { color: var(--ink-2); letter-spacing: .04em; text-transform: none; font-size: 13px; }
.ml-dots { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 520px; margin: 8px auto 0; }
.ml-dots i { height: 8px; border-radius: 99px; background: rgba(29, 42, 82, .14); }
.ml-dots i.ok { background: var(--ink); } .ml-dots i.cur { background: var(--gold); }
.ml-q { position: relative; max-width: 520px; margin: 18px auto 0; text-align: center; font: 400 clamp(28px, 7.6vw, 40px)/1.1 'Abril Fatface', Georgia, serif; color: var(--ink); text-wrap: balance; }
.ml-q small { display: block; margin-bottom: 6px; font: 900 14px var(--cbx-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ml-tools { position: relative; display: flex; justify-content: space-between; max-width: 520px; margin: 10px auto 0; }
.ml-tools #skip { margin-left: auto; }

/* results */
.ml-voters { position: relative; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; margin: 12px auto 0; padding: 0; }
.ml-voters li { padding: 5px 11px; border-radius: 999px; border: 2px dashed rgba(29, 42, 82, .3); font: 900 13px var(--cbx-body); color: var(--ink-2); }
.ml-voters li.in { border: 2px solid var(--seal); background: var(--seal); color: #fff; }
.ml-acts { position: relative; max-width: 520px; margin: 14px auto 0; }
.ml-h { position: relative; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 22px auto 8px; font: 400 24px 'Abril Fatface', serif; color: var(--ink); }
.ml-h::after { content: ''; flex: 1; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.ml-results { position: relative; list-style: none; display: grid; gap: 10px; max-width: 520px; margin: 0 auto; padding: 0; }
.ml-results > li { padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(29, 42, 82, .12); }
.cbx-card .ml-r-q { margin: 0; font: 800 14px/1.35 var(--cbx-body); color: var(--ink-2); }
.ml-r-q b { color: var(--ink); }
.cbx-card .ml-r-w { margin: 2px 0 6px; font: 400 23px/1.15 'Abril Fatface', serif; color: var(--ink); }
.ml-r-w i { font: 900 11px var(--cbx-body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--red); vertical-align: middle; }
.ml-bars { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.ml-bars li { position: relative; display: flex; justify-content: space-between; padding: 3px 9px; border-radius: 8px; font: 900 13px var(--cbx-body); color: var(--ink); background: var(--paper-2); overflow: hidden; }
.ml-bars li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--seal); opacity: .28; }
.ml-bars span, .ml-bars b { position: relative; }
.ml-book { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 520px; margin: 0 auto; }
.ml-yb { margin: 0; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(29, 42, 82, .14), 0 10px 20px -14px rgba(29, 42, 82, .6); text-align: center; }
.ml-yb:nth-child(odd) { transform: rotate(-1.2deg); } .ml-yb:nth-child(even) { transform: rotate(1deg); }
.ml-yb .ph { display: grid; place-items: center; aspect-ratio: 1 / .8; border-radius: 4px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--seal) 70%, #fff), var(--seal)); color: #fff; font: 400 54px 'Abril Fatface', serif; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5); }
.ml-yb figcaption { display: grid; gap: 4px; margin-top: 8px; }
.ml-yb b { font: 400 21px 'Abril Fatface', serif; color: var(--ink); overflow-wrap: anywhere; }
.ml-yb span { font: 900 12.5px/1.3 var(--cbx-body); color: var(--red); }
.ml-yb span + span { color: var(--ink-2); }
.ml-yb .none { color: var(--ink-2); font-weight: 800; }
.ml-card .cb-appcard { position: relative; max-width: 520px; margin: 16px auto 0; }
@media (prefers-reduced-motion: reduce) { .ml-pick.in .ml-opt, .ml-names li { animation: none; } .ml-opt { transition: none; } }
.cbx-card.ml-card ul, .cbx-card.ml-card ol { padding-left: 0; }
