/* Game Preferences: the ranking and content editors, and the group table's choice cells. */

/* Ranking editor (class and role) */
.ranking-layout { padding: 28px var(--gutter) 30px; }
.ranking-labels { display: flex; justify-content: space-between; padding: 0 1px 9px; color: #a9b6c0; font-size: 14px; letter-spacing: .19em; font-weight: 700; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-card { min-height: 68px; background: var(--raised); border: 1px solid #3a4b58; border-radius: 4px; display: flex; align-items: center; padding: 0 13px 0 18px; position: relative; transition: border-color .15s, background .15s; }
.rank-card:first-child { border-color: #a9834c; background: #29323a; }
.rank-card:hover { border-color: #a88d5d; }
.rank-card.dragging { z-index: 3; background: #2a3d4c; border-color: #e3bb70; box-shadow: 0 12px 28px #060b12a6; transition: none; }
.rank-number { font: 600 19px var(--font-serif); color: #9da6ae; width: 44px; }
.rank-card:first-child .rank-number { color: #e5bd72; }
.category-name { font-size: 21px; font-weight: 600; color: var(--text); flex: 1; }
.rank-actions { display: flex; gap: 1px; align-items: center; }
.move-button, .drag-handle { display: grid; place-items: center; border: 0; background: transparent; color: #a5b3bc; height: 40px; width: 38px; padding: 0; font-size: 24px; }
.move-button:hover, .drag-handle:hover { color: #f5d28e; }
.drag-handle { font-size: 30px; cursor: grab; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.exclude-button { display: grid; place-items: center; flex: 0 0 40px; height: 40px; margin-left: 5px; border: 1px solid #805c5b; border-radius: 3px; background: #342c33; color: #f0b5a9; font-size: 27px; line-height: 1; }
.exclude-button:hover { background: #58383b; color: #ffe1d8; }
.least-label { color: #8896a1; font-size: 14px; letter-spacing: .18em; font-weight: 700; padding-top: 13px; }
.rank-empty { color: #a5b2bc; font-size: 18px; margin: 8px 0 0; }

/* Unranked ("No preference") categories below the ranking */
.excluded-section { margin-top: 27px; border-top: 1px solid #3b4852; padding-top: 22px; }
.excluded-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.excluded-heading strong { color: #e7d1c9; font: 600 22px var(--font-serif); }
.excluded-heading span { color: #c3948a; font-size: 14px; font-weight: 700; letter-spacing: .13em; }
.excluded-section > p { margin: 8px 0 17px; color: #aab6be; font-size: 17px; line-height: 1.5; }
.excluded-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.excluded-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 61px; padding: 9px 13px 9px 18px; border: 1px dashed #675452; border-radius: 4px; background: #252b34; }
.excluded-card .category-name { color: #b7afb0; }
.excluded-tag { color: #c59b90; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.restore-button { border: 1px solid #75654f; border-radius: 3px; background: #29343d; color: #ead0a0; padding: 7px 10px; font-size: 16px; font-weight: 700; }
.restore-button:hover { background: #3a4650; }
.excluded-section .excluded-empty { margin: 0; color: #8797a2; font-size: 16px; }

/* Content editor (Yes / Maybe / No) */
.content-list { display: grid; gap: 9px; padding: 27px var(--gutter) 30px; }
.content-row { min-height: 64px; background: var(--raised); border: 1px solid #3a4b58; border-radius: 4px; padding: 10px 15px 10px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.content-name { color: var(--text); font-size: 21px; font-weight: 600; }
.content-options { display: flex; flex: 0 0 auto; gap: 5px; }
.content-option { min-width: 80px; min-height: 44px; border: 1px solid #53616d; border-radius: 3px; background: #172634; color: #aebbc5; font-size: 18px; font-weight: 700; }
.content-option:hover { border-color: #b99b68; color: #fff; }

/* Yes / Maybe / No colors, shared by the editor buttons and the group table */
.content-option.selected.yes { border-color: #82b99b; }
.content-option.selected.maybe { border-color: #c5a86b; }
.content-option.selected.no { border-color: #a9807c; }
.content-option.selected.yes, .content-table-choice.yes { background: #28493e; color: #cdf2d8; }
.content-option.selected.maybe, .content-table-choice.maybe { background: #4a4030; color: #f1deb2; }
.content-option.selected.no, .content-table-choice.no { background: #493736; color: #f2cfca; }

/* Group preferences table */
.person-cell { display: grid; gap: 3px; }
.person-name { color: var(--text); }
.person-cell small { display: inline-block; font-size: 12px; letter-spacing: .08em; color: #d8b879; margin-left: 7px; }
.table-choice { color: #cbd3d7; }
.table-choice.first { color: #f0cf8d; font-weight: 700; }
.content-table-choice { display: inline-block; min-width: 68px; text-align: center; border-radius: 3px; padding: 5px 8px; font-size: 16px; font-weight: 700; }

@media (max-width: 560px) {
  .content-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .content-options { width: 100%; }
  .content-option { flex: 1; min-width: 0; }
  .rank-card { padding-left: 10px; padding-right: 8px; }
  .rank-number { width: 34px; }
  .rank-actions { display: grid; grid-template-columns: repeat(2, 34px); gap: 2px; }
  .move-button, .drag-handle, .exclude-button { width: 34px; height: 34px; }
  .exclude-button { margin-left: 0; }
}
