#hobby-games,.hobby-choice-list{display:grid;gap:10px} .hobby-game{border:1px solid rgba(180,155,95,.25);border-radius:10px;padding:12px;background:rgba(255,255,255,.025)} .hobby-check{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:500} .hobby-check input{accent-color:#c6a15a;width:17px;height:17px;flex:none} .hobby-game-details{padding:12px 0 0 26px} .hobby-roles,.hobby-factions{display:flex;flex-wrap:wrap;gap:10px 18px} .hobby-game-details .small-muted{margin:12px 0 8px} #hobby-activities,#hobby-content-types{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));padding:12px;border:1px solid rgba(180,155,95,.25);border-radius:10px} .hobby-public{margin:14px 0;display:grid;gap:10px} .hobby-public-group{padding:12px;border:1px solid rgba(180,155,95,.25);border-radius:10px} .hobby-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.hobby-tag{border:1px solid rgba(180,155,95,.4);border-radius:16px;padding:4px 10px;font-size:.85rem} .hobby-tag small{opacity:.75}
/* Compact responsive hobby selection cards: 3 desktop, 2 tablet, 1 mobile. */
#hobby-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
#hobby-games .hobby-game {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}
#hobby-games .hobby-game > .hobby-check {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  margin: 0;
  line-height: 1.35;
}
#hobby-games .hobby-game > .hobby-check span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#hobby-games .hobby-game > .hobby-check input {
  margin: 0;
  flex: none;
}
#hobby-games .hobby-game:has(> .hobby-check input:checked) {
  border-color: rgba(218, 165, 65, .7);
}
#hobby-games .hobby-game-details {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(180,155,95,.2);
}
#hobby-games .hobby-roles,
#hobby-games .hobby-factions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}
#hobby-games .hobby-roles .hobby-check,
#hobby-games .hobby-factions .hobby-check {
  min-width: 0;
  font-size: .9rem;
}
#hobby-games .hobby-roles .hobby-check span,
#hobby-games .hobby-factions .hobby-check span {overflow-wrap: anywhere;}
#hobby-activities,
#hobby-content-types {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}
#hobby-activities > .hobby-check,
#hobby-content-types > .hobby-check {
  flex-direction: row-reverse;
  justify-content: space-between;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(180,155,95,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
#hobby-activities > .hobby-check span,
#hobby-content-types > .hobby-check span {flex: 1;min-width: 0;overflow-wrap: anywhere;}
#hobby-activities > .hobby-check input,
#hobby-content-types > .hobby-check input {margin: 0;}
@media (max-width: 900px) {
  #hobby-games,#hobby-activities,#hobby-content-types {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media (max-width: 560px) {
  #hobby-games,#hobby-activities,#hobby-content-types {grid-template-columns: minmax(0,1fr);}
}


/* Hobby Interests is the exception to the 640px profile form limit.
   Keep other profile forms at their existing widths. */
.profile-section #hobby-preferences-form {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#hobby-preferences-form #hobby-game-search {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
#hobby-preferences-form #hobby-games,
#hobby-preferences-form #hobby-activities,
#hobby-preferences-form #hobby-content-types {
  width: 100%;
  max-width: none;
  min-width: 0;
}
#hobby-preferences-form #hobby-activities > .hobby-check,
#hobby-preferences-form #hobby-content-types > .hobby-check {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#hobby-preferences-form .hobby-check > input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 17px;
}
#hobby-preferences-form .hobby-check > span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Compact game activities; factions live in their own selector below. */
#hobby-games .hobby-game-details {padding: 10px 14px 14px;}
#hobby-games .hobby-roles {display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding-top:0;}
#hobby-games .hobby-roles .hobby-check {display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:.88rem;white-space:nowrap;}
#hobby-games .hobby-roles .hobby-check input {margin:0;}
#hobby-games .hobby-roles .hobby-check span {flex:initial;}
#hobby-preferences-form .hobby-faction-section {width:100%;max-width:none;min-width:0;}
#hobby-faction-system {width:100%;max-width:none;box-sizing:border-box;margin:0 0 12px;}
#hobby-faction-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
#hobby-faction-options > .hobby-check {display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;min-width:0;min-height:54px;padding:12px 14px;border:1px solid rgba(180,155,95,.25);border-radius:10px;background:rgba(255,255,255,.025);}
#hobby-faction-options > .hobby-check span {flex:1;min-width:0;overflow-wrap:anywhere;}
@media(max-width:900px){#hobby-faction-options{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){#hobby-faction-options{grid-template-columns:minmax(0,1fr);}}

/* Match 360v8 dark selects rather than the browser's native grey control. */
#hobby-preferences-form #hobby-faction-system {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 46px 10px 14px;
  margin: 0 0 12px;
  color: #fff;
  background-color: #1c1916;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dba744' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  border: 1px solid rgba(180,155,95,.45);
  border-radius: 9px;
  box-shadow: none;
  font: inherit;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#hobby-preferences-form #hobby-faction-system:focus-visible {
  outline: 2px solid #dba744;
  outline-offset: 2px;
}
#hobby-preferences-form #hobby-faction-system option {
  color: #fff;
  background: #211e1a;
}
/* Compact content preference heading and help text: no empty-looking gap. */
#hobby-preferences-form > h3:has(+ p.small-muted + #hobby-content-types) {
  margin-bottom: 0;
}
#hobby-preferences-form > h3 + p.small-muted:has(+ #hobby-content-types) {
  margin: 0 0 4px;
  padding: 0;
  min-height: 0;
}
#hobby-preferences-form #hobby-content-types {
  margin-top: 0;
}
